Skip to content

Commit

Permalink
fix(eyevolume.py): remove reformating of knot data in load - eyelab n…
Browse files Browse the repository at this point in the history
…ow does it if needed
  • Loading branch information
Oli4 committed Jun 3, 2022
1 parent 9699da5 commit 35060ab
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions eyepy/core/eyevolume.py
Original file line number Diff line number Diff line change
Expand Up @@ -453,13 +453,6 @@ def load(cls, path):
layer_annotations = np.load(layers_path / "layer_heights.npy")
with open(layers_path / "meta.json", "r") as meta_file:
layers_meta = json.load(meta_file)
# For compatibility with eyelab <= v0.2.0 if layer knots exist make sure they are
# organized like [[knots], [knots]] and not [knots]
for layer in layers_meta:
if "knots" in layer:
for slice in layer["knots"]:
if type(layer["knots"][slice][0]) is dict:
layer["knots"][slice] = [layer["knots"][slice]]

# Load Localizer and meta
localizer_path = tmpdirname / "localizer"
Expand Down

0 comments on commit 35060ab

Please sign in to comment.