Skip to content

Commit

Permalink
update distribution paths (#156)
Browse files Browse the repository at this point in the history
  • Loading branch information
ilkilic authored Jul 10, 2024
1 parent 3a380d4 commit 41f9090
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
5 changes: 2 additions & 3 deletions bluepyemodel/access_point/forge_access_point.py
Original file line number Diff line number Diff line change
Expand Up @@ -628,9 +628,8 @@ def dump_json_and_get_distributions(object_, class_name, metadata_str, seed=None
path_json = f"{CLASS_TO_RESOURCE_NAME[class_name]}__{metadata_str}"
if seed is not None:
path_json += f"__{seed}"
path_json = str(
(pathlib.Path("./nexus_temp") / metadata_str / f"{path_json}.json").resolve()
)
iteration = metadata_str.split("__iteration=")[1].split("__")[0]
path_json = str((pathlib.Path("./nexus_temp") / iteration / f"{path_json}.json").resolve())

distributions = [path_json]
json_payload.pop("nexus_images", None) # remove nexus_images from payload
Expand Down
3 changes: 1 addition & 2 deletions bluepyemodel/access_point/nexus.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,7 @@ def __init__(

self.pipeline_settings = self.get_pipeline_settings(strict=False)

directory_name = self.emodel_metadata.as_string()
(pathlib.Path("./nexus_temp/") / directory_name).mkdir(parents=True, exist_ok=True)
self.download_directory.mkdir(parents=True, exist_ok=True)

self.sleep_time = sleep_time

Expand Down

0 comments on commit 41f9090

Please sign in to comment.