Skip to content

Commit

Permalink
use median instead of unique
Browse files Browse the repository at this point in the history
  • Loading branch information
thorstenwagner committed Aug 18, 2023
1 parent 59f41ab commit e762088
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/box_manager/io/io_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ def _write_particle_data(

if "size" in meta:
boxsize = meta["size"][mask]
boxsize = np.unique(boxsize, axis=1)
boxsize = np.median(boxsize, axis=1)
else:
# For filaments
boxsize = np.array(meta["edge_width"])[mask]
Expand Down

0 comments on commit e762088

Please sign in to comment.