Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions sourcefinder/utility/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,10 +160,10 @@ def construct_argument_parser():
"--structuring-element",
type=ast.literal_eval,
help="""
Structuring element for morphological operations, provided as a
Python-style nested list, e.g. '[[1,1,1], [1,1,1], [1,1,1]]' for
Structuring element for morphological operations, provided as a
Python-style nested list, e.g. '[[1,1,1], [1,1,1], [1,1,1]]' for
8-connectivity and '[[0,1,0], [1,1,1], [0,1,0]]' for 4-connectivity.
This is used for defining the connectivity in connected-component
This is used for defining the connectivity in connected-component
labelling.
""",
)
Expand Down Expand Up @@ -577,7 +577,7 @@ def run_sourcefinder(files, conf, mode):
if mode == "fixed":
# FIXME: conf.image.fixed_coords does not exist
Comment thread
tmillenaar marked this conversation as resolved.
Outdated
sr = imagedata.fit_fixed_positions(
conf.image.fixed_coords,
eval(conf.image.fixed_posns), # fixed_posns is a string, use eval to obtain it's contents
conf.image.ffbox * max(imagedata.beam[0:2]),
)

Expand Down
2 changes: 1 addition & 1 deletion test/test_scripts/test_pyse.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def test_pyse_export(tmpdir):
"--residuals",
"--islands",
]
extra_args = ["--detection-thr", "6", "--analysis-thr", "5", *export_args]
extra_args = ["--detection-thr", "6", "--analysis-thr", "5", "--fixed-posns", "[[136.896, 14.0222]]", *export_args]
nr_sources_per_image = run_pyse(files, extra_args, tmpdir)

for n in nr_sources_per_image:
Expand Down
Loading