Skip to content

Commit

Permalink
Merge pull request #86 from dominikl/table_name
Browse files Browse the repository at this point in the history
Add tablename option
  • Loading branch information
jburel authored Oct 30, 2024
2 parents e2fc5ec + d222577 commit d3e9d3f
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/omero_metadata/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
from omero.constants import namespaces
from omero.gateway import BlitzGateway
import omero_metadata.populate
from omero_metadata.populate import DEFAULT_TABLE_NAME
from omero.util import populate_roi, pydict_text_io
from omero.util.metadata_utils import NSBULKANNOTATIONSCONFIG
from omero.util.metadata_utils import NSBULKANNOTATIONSRAW
Expand Down Expand Up @@ -244,10 +245,14 @@ def _configure(self, parser):
"--manual-header", "--manual_header", action="store_true", help=(
"Disable automatic header detection during population"))

populate.add_argument(
"--table-name", "--table_name", default=DEFAULT_TABLE_NAME,
help=(f"Name of the table (default: {DEFAULT_TABLE_NAME})")
)

populateroi.add_argument(
"--measurement", type=int, default=None,
help="Index of the measurement to populate. By default, all")

pixelsize.add_argument(
"--x", type=float, default=None, help="Physical pixel size X")
pixelsize.add_argument(
Expand Down Expand Up @@ -595,7 +600,8 @@ def populate(self, args):
cfg=args.cfg, cfgid=cfgid, attach=args.attach,
options=localcfg, batch_size=args.batch,
loops=loops, ms=ms, dry_run=args.dry_run,
allow_nan=args.allow_nan, column_types=header_type)
allow_nan=args.allow_nan, column_types=header_type,
table_name=args.table_name)
ctx.parse()

def rois(self, args):
Expand Down

0 comments on commit d3e9d3f

Please sign in to comment.