Skip to content

Commit 4d9a15a

Browse files
committed
debug
1 parent 2956507 commit 4d9a15a

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.github/workflows/test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,4 +116,4 @@ jobs:
116116
run: echo "Running on $(nproc) cores"
117117
- name: Run tests with pytest
118118
run: |
119-
uv run mpiexec --timeout 120 --use-hwthread-cpus -n 4 pytest -m parallel test/parallel -x
119+
uv run mpiexec --timeout 120 --use-hwthread-cpus -n 4 pytest -m parallel test/parallel/test_lc_mpi.py::test_write_some_missing -s

src/opencosmo/io/writers.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ def write(self, file: h5py.File | h5py.Group):
8585
child_names = list(self.children.keys())
8686
child_names.sort()
8787
for name in child_names:
88+
print(f"Writing dataset {name}")
8889
self.children[name].write(file[name])
8990

9091

@@ -114,7 +115,9 @@ def write(self, group: h5py.Group):
114115
names = list(self.columns.keys())
115116
names.sort()
116117
for colname in names:
118+
print(f"Writing column {colname}")
117119
self.columns[colname].write(data_group)
120+
print("writing links")
118121
if self.links:
119122
link_group = group["data_linked"]
120123
link_names = list(self.links.keys())
@@ -123,9 +126,11 @@ def write(self, group: h5py.Group):
123126
for name in link_names:
124127
self.links[name].write(link_group)
125128

129+
print("writing spatial index")
126130
if self.spatial_index is not None:
127131
index_group = group["index"]
128132
self.spatial_index.write(index_group)
133+
print("done")
129134

130135

131136
class EmptyColumnWriter:

0 commit comments

Comments
 (0)