Skip to content

Commit

Permalink
Updated test
Browse files Browse the repository at this point in the history
  • Loading branch information
Hjorthmedh committed Oct 23, 2024
1 parent 16831a4 commit 72cb7be
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion snudda/init/init.py
Original file line number Diff line number Diff line change
Expand Up @@ -626,6 +626,7 @@ def get_morphologies(self, neuron_dir):
"""

parameter_file = os.path.join(neuron_dir, "parameters.json")
par_data = None

if os.path.isfile(parameter_file):

Expand All @@ -649,6 +650,7 @@ def get_morphologies(self, neuron_dir):
else:
print("No parameter.json file.")
has_meta = False
meta_file = None

if has_meta:

Expand Down Expand Up @@ -678,7 +680,7 @@ def get_morphologies(self, neuron_dir):
if len(missing_morphology_tag) > 0:
print(f"Missing morphology tag(s) for {', '.join(missing_morphology_tag)} in {meta_file}")

if len(missing_morph) == 0:
if len(missing_morph) > 0:
print(f"The following morphologies in {meta_file} are missing: {', '.join(missing_morph)}")

return snudda_simplify_path(morph_dir, self.snudda_data)
Expand Down

0 comments on commit 72cb7be

Please sign in to comment.