Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
appukuttan-shailesh committed May 12, 2022
1 parent 1464ee2 commit f60f84e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions basalunit/tests/test_eFELFeaturesTest.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,13 +102,12 @@ def nested_set(dic, keys, value):
observations_new = copy.deepcopy(self.observation)
protcols_new = copy.deepcopy(self.protocol_definitions)

model.model_hash = model.hash
cache_path = os.path.abspath(os.path.join(self.path_test_output, "../cache", model.model_hash))
cache_path = os.path.abspath(os.path.join(self.path_test_output, "../cache", model.model_uuid))
cached_traces = {}
cached_features = {}
if self.use_cache:
if not os.path.exists(os.path.join(cache_path)):
print("Note: no cached data for this model specification (hash)!")
print("Note: no cached data for this model specification (model_uuid)!")
else:
print("***** Using cache to retrieve relevant model data *****")
print("Cached data found for following protocols: ")
Expand Down
2 changes: 1 addition & 1 deletion basalunit/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ def create(self, cell_type=None, morph_path=None, mechs_path=None, params_path=N

def load_mod_files(self):
os.chdir(self.base_path)
libpath = "x86_64/.libs/libnrnmech.so.0"
libpath = "x86_64/.libs/libnrnmech.so"
#if not os.path.isfile(os.path.join(self.base_path, libpath)):
os.system("nrnivmodl mechanisms") # do nrnivmodl in mechanisms directory
if not os.path.isfile(os.path.join(self.base_path, libpath)):
Expand Down

0 comments on commit f60f84e

Please sign in to comment.