Skip to content

Commit

Permalink
CELE-78 Change directory for db-raw-data on the bucket
Browse files Browse the repository at this point in the history
  • Loading branch information
aranega committed Sep 26, 2024
1 parent 91cf7c6 commit 5fcc821
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion ingestion/ingestion/storage/blob.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@


def fs_data_blob_name(dataset_id: str, p: Path, base_dir: Path) -> str:
return f"raw-data/{p.relative_to(base_dir)}"
return f"db-raw-data/{p.relative_to(base_dir)}"


def fs_segmentation_blob_name(dataset_id: str, p: Path) -> str:
Expand Down
8 changes: 4 additions & 4 deletions ingestion/tests/storage/test_blob.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,25 +20,25 @@
"witvliet_2020_1",
Path("./data/db-raw-data/neurons.json"),
Path("./data/db-raw-data"),
"raw-data/neurons.json",
"db-raw-data/neurons.json",
),
(
"witvliet_2020_1",
Path("./data/db-raw-data/datasets.json"),
Path("./data/db-raw-data"),
"raw-data/datasets.json",
"db-raw-data/datasets.json",
),
(
"witvliet_2020_1",
Path("./data/db-raw-data/connections/white_1986_whole.json"),
Path("./data/db-raw-data"),
"raw-data/connections/white_1986_whole.json",
"db-raw-data/connections/white_1986_whole.json",
),
(
"witvliet_2020_1",
Path("./data/db-raw-data/annotations/complete.annotations.json"),
Path("./data/db-raw-data"),
"raw-data/annotations/complete.annotations.json",
"db-raw-data/annotations/complete.annotations.json",
),
],
)
Expand Down
2 changes: 1 addition & 1 deletion ingestion/tests/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ def test__main_ingest_valid_data(
]
)

assert compare_directories(data_dir, celegans_dir / "raw-data")
assert compare_directories(data_dir, celegans_dir / "db-raw-data")

out, _ = capsys.readouterr()
assert _done_message("white_1986_jsh") in out
Expand Down

0 comments on commit 5fcc821

Please sign in to comment.