Skip to content

Commit

Permalink
Fix bug in grid global offset introduced in (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
AngelFP committed Apr 20, 2023
1 parent 0dadba2 commit 3698599
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions wake_t/diagnostics/openpmd_diag.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,9 +307,7 @@ def _write_fields(self, it, wf_data):
fld.set_attribute(attr, val)
fld.axis_labels = wf_data[field]['grid']['labels']
fld.grid_spacing = wf_data[field]['grid']['spacing']
global_offset = deepcopy(wf_data[field]['grid']['global_offset'])
global_offset[-1] += self._current_z_pos
fld.grid_global_offset = global_offset
fld.grid_global_offset = wf_data[field]['grid']['global_offset']

def check_species_names(
self,
Expand Down

0 comments on commit 3698599

Please sign in to comment.