Skip to content

Commit

Permalink
fixed dataset containing no fileset
Browse files Browse the repository at this point in the history
  • Loading branch information
hamshkhawar committed Apr 23, 2024
1 parent 98ac45f commit 30d5f2b
Show file tree
Hide file tree
Showing 8 changed files with 175 additions and 130 deletions.
8 changes: 4 additions & 4 deletions utils/omero-download-tool/plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@
"required": "False"
},
{
"name": "id",
"name": "objectId",
"type": "integer",
"title": "id",
"title": "objectId",
"description": "Identifier of the object to be downloaded.",
"required": "False"
},
Expand Down Expand Up @@ -79,9 +79,9 @@
"required": "False"
},
{
"key": "inputs.id",
"key": "inputs.objectId",
"type": "integer",
"title": "id",
"title": "objectId",
"description": "Identifier of the object to be downloaded.",
"required": "False"
},
Expand Down
4 changes: 2 additions & 2 deletions utils/omero-download-tool/run-plugin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ echo ${datapath}
# Inputs
out_dir=${datapath}/out
dataType="well"
id=1084
objectId=1084


# #Show the help options
Expand All @@ -17,5 +17,5 @@ docker run -v ${datapath}:${datapath} \
polusai/omero-download-tool:${version} \
--dataType ${dataType} \
--name ${name} \
--id ${name} \
--objectId ${name} \
--outDir ${out_dir}

Large diffs are not rendered by default.

7 changes: 6 additions & 1 deletion utils/omero-download-tool/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
from typing import Union

import pytest
from polus.images.utils.omero_download.omero_download import DATATYPE


def pytest_addoption(parser: pytest.Parser) -> None:
Expand Down Expand Up @@ -37,7 +38,11 @@ def output_directory() -> Union[str, Path]:

@pytest.fixture(
params=[
("well", None, 1084),
(DATATYPE.WELL, None, 1084),
(DATATYPE.DATASET, "211129_pyomero", None),
(DATATYPE.SCREEN, "Inae_timeseries", None),
(DATATYPE.PROJECT, "NCI_IMS", None),
(DATATYPE.PLATE, None, 60),
],
)
def get_params(request: pytest.FixtureRequest) -> pytest.FixtureRequest:
Expand Down
1 change: 0 additions & 1 deletion utils/omero-download-tool/tests/test_omero_download.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ def test_omero_download(
out_dir=output_directory,
)
model.get_data()

assert any(output_directory.iterdir()) is True

clean_directories()

0 comments on commit 30d5f2b

Please sign in to comment.