Skip to content

Commit 3cd7df7

Browse files
Some fixes for openpmd-pipe (#1379)
1 parent 0f8c3aa commit 3cd7df7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/binding/python/openpmd_api/pipe/__main__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,9 @@ def run(self):
223223
self.outconfig)
224224
print("Opened input and output on rank {}.".format(self.comm.rank))
225225
sys.stdout.flush()
226+
# In Linear read mode, global attributes are only present after calling
227+
# this method to access the first iteration
228+
inseries.read_iterations()
226229
self.__copy(inseries, outseries)
227230

228231
def __copy(self, src, dest, current_path="/data/"):

0 commit comments

Comments
 (0)