Skip to content

Commit

Permalink
fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
brisvag committed Dec 1, 2023
1 parent 38a5c45 commit 36a0f91
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/blik/reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,10 @@ def _construct_positions_layer(
else pd.DataFrame()
)
feat_defaults["orientation"] = np.array(Rotation.identity(), dtype=object)
if coords is not None:
coords = invert_xyz(coords)
return (
invert_xyz(coords),
coords,
{
"name": f"{exp_id} - particle positions",
"features": features,
Expand Down Expand Up @@ -138,9 +140,9 @@ def read_particles(particles):
px_size = 1

if particles.shift is not None:
coords = coords + particles.shifts
coords = coords + particles.shift
shift_cols = ["shift_x", "shift_y", "shift_z"]
features[shift_cols] = particles.shifts
features[shift_cols] = particles.shift
if particles.orientation is not None:
features["orientation"] = np.asarray(particles.orientation, dtype=object)

Expand Down

0 comments on commit 36a0f91

Please sign in to comment.