Skip to content

Commit 13665fc

Browse files
committed
Add Debug Prints
1 parent cd68a28 commit 13665fc

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

openpmd_viewer/openpmd_timeseries/data_reader/io_reader/particle_reader.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ def read_species_data(series, iteration, species_name, component_name,
3737
extensions: list of strings
3838
The extensions that the current OpenPMDTimeSeries complies with
3939
"""
40+
print(f"species_name={species_name}, component_name={component_name}")
41+
4042
it = series.iterations[iteration]
4143

4244
# Translate the record component to the openPMD format

openpmd_viewer/openpmd_timeseries/data_reader/io_reader/utilities.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,12 @@ def get_data(series, record_component, i_slice=None, pos_slice=None,
5959

6060
# read whole data set
6161
if pos_slice is None:
62+
print(f"record_component: {record_component}, {record_component.shape}, {record_component.dtype}")
6263
# mask invalid regions with NaN
6364
data = np.full_like(record_component, np.nan)
6465
for chunk in chunks:
6566
chunk_slice = chunk_to_slice(chunk)
67+
print(f"chunk: {chunk}, {chunk_slice}")
6668
# read only valid region
6769
x = record_component[chunk_slice]
6870
series.flush()

0 commit comments

Comments
 (0)