[ENH]: Add junifer list-elements for listing out elements of an YAML's DataGrabber #323
Labels
No labels
CRITICAL
Stale
WIP
bug
concept
coordinate
dataset
dependencies
documentation
duplicate
enhancement
github_actions
good first issue
help wanted
invalid
maintenance
maps
marker
mask
on hold
parcellation
preprocess
question
ready
storage
template-space
triage
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
juaml/junifer!323
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/list-elements"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Are you requiring a new dataset or marker?
Which feature do you want to include?
I think it would be fantastic if junifer had a
list-elementscommand line function which can be run on a yaml file with a specific datagrabber, and that will then print out all available elements in the format that junifer likes for subsetting the element keys using the--element elements.txtcommand line option for queue.The workflow i imagine would have the advantage that i can very easily discover elements and subset them for testing using arbitrary command line filters, and then write them into a file for queing i.e.:
junifer list-elements <yaml> | tail -2 > elements.txtHow do you imagine this integrated in junifer?
as above
Do you have a sample code that implements this outside of junifer?
No response
Anything else to say?
No response
+1
excellent feature
We should implement this.
Maybe add a
-oparameter to specify the file (instead of stdout), so we can keep the logging in stdout.I think -o as an optional parameter is good, but i would like the option to go stdout as well for piping
Codecov Report
All modified and coverable lines are covered by tests ✅
Additional details and impacted files
100.00% <ø> (ø)Flags with carried forward coverage won't be shown. Click here to find out more.
@LeSasse @fraimondo I've kept both of your demands, and
junifer list-elementscan write to stdout (with a fancy blue colour, of course) and also write to a file (keeping stdout clean) with--output-fileor-ooption.Does this work?
If the command that @LeSasse needed works, then I'm good with it.
This is also excellent to debug/test, related to #319
This works very well for me, you have to set --verbose to 0 and run as
junifer list-elements smoothing.yaml --verbose 0 | tail -2 > test.txtbut I think that is reasonable
LGTM