Skip to content
This repository has been archived by the owner on Nov 7, 2024. It is now read-only.

Commit

Permalink
Adjusted so depends_on of len 1 are read correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
ggoneiESS committed Sep 13, 2023
1 parent 99c8646 commit 976ab11
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nexus_constructor/json/load_from_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -401,8 +401,8 @@ def _add_transform_and_shape_to_component(self, component, children_dict):
if depends_on not in DEPENDS_ON_IGNORE:
if depends_on[0] != "/":
# we are always in the NXtransformations group but the path could be anything
if len(depends_on.split("/")) == 2:
depends_on = "transformations/" + depends_on.split("/")[1]
if len(depends_on.split("/")) <= 2:
depends_on = "transformations/" + depends_on.split("/")[-1]
depends_on = component.absolute_path + depends_on
depends_on_id = TransformId(*get_component_and_transform_name(depends_on))
self._components_depends_on[component.name] = (component, depends_on_id)
Expand Down

0 comments on commit 976ab11

Please sign in to comment.