Skip to content

Commit

Permalink
Merge pull request #184 from will-moore/populate_metadata_Image_dtype
Browse files Browse the repository at this point in the history
Populate metadata Image dtype
  • Loading branch information
joshmoore authored Jun 25, 2021
2 parents d75f050 + b30a032 commit b8fd012
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions omero/import_scripts/Populate_Metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
'Screen',
'Dataset',
'Project',
'Image',
)
DEPRECATED = ""

Expand Down Expand Up @@ -106,6 +107,12 @@ def populate_metadata(client, conn, script_params):
object_ids = script_params["IDs"]
object_id = object_ids[0]
data_type = script_params["Data_Type"]

if data_type == "Image":
try:
from omero_metadata.populate import ImageWrapper # noqa: F401
except ImportError:
return "Please update omero-metadata to support Image type"
file_ann_id = None
if "File_Annotation" in script_params:
file_ann_id = int(script_params["File_Annotation"])
Expand Down Expand Up @@ -146,11 +153,11 @@ def run_script():
client = scripts.client(
'Populate_Metadata.py',
"""
This script processes a CSV file, attached to a container,
converting it to an OMERO.table, with one row per Image or Well.
This script processes a CSV file, using it to
'populate' an OMERO.table, with one row per Image, Well or ROI.
The table data can then be displayed in the OMERO clients.
For full details of the supported CSV format, see
https://github.com/ome/omero-metadata/
https://github.com/ome/omero-metadata/#populate
""" + DEPRECATED,
scripts.String(
"Data_Type", optional=False, grouping="1",
Expand Down

0 comments on commit b8fd012

Please sign in to comment.