-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fixes #275 #276
fixes #275 #276
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks fine to me bar the debugging relic but I will leave it to Landman to test in earnest.
Sorry, got distracted by FFTs. Something is not working. If I have the following in a config file inputs:
ms:
dtype: List[URI]
required: true
abbreviation: ms
info:
Path to measurement set
outputs:
{} I now get
Should I change something in the config? |
Adding the following inputs:
ms:
dtype: List[URI]
required: true
abbreviation: ms
info:
Path to measurement set
policies:
repeat: '[]' fixes the problem but it is a little annoying having to add it for every parameter. I kind of like |
Not really. That would be I would prefer Note that it's a a completely separate question from what should be the default when going in the opposite direction (converting a stimela params dict to CLI arguments). Currently, there is a hard check for an explicit repeat policy here. I would argue that this should stay in place. Which raises a related question. Cabs have an optional cab-level |
Guess I'm blind to this because of my aversion to positional arguments. It is very handy that clickify_parameters makes it possible to pass in arbitrary length lists.
I would prefer the latter but it's not a very strong preference.
This would be handy. Maybe as a keyword argument to clickify_parameters? Alternatively, I guess I could also add it to this file if it's easier? |
All right, I also vote
I shall make it thus. |
Awesome, thanks. Once you have it going I will test the changes in earnest and finish my review |
All right, please test and re-review so we can merge this. |
scabha/schema_utils.py
Outdated
|
||
# if name == 'catalogs': |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you mean to leave this in here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All seems to be working in pfb, thanks. Just that one stray comment that you might not want to leave in there
Thanks @landmanbester. Please reapprove, my last commit invalidated your review. |
@landmanbester could you please test that this branch does not break pfb-clean CLIs?
The change is that
policies.repeat
is now properly honoured for List and Tuple types, to accommodate the different styles of passing multiple values. As per documentation:repeat: list
uses--option X Y
repeat: repeat
uses--option X --option Y
repeat: '[]'
uses--option [X,Y]
repeat: ','
(or any other separator string) uses--option X,Y
There is no default for the repeat policy, and
clickify_parameters
will raise an error if this is not explicitly specified for List and Tuple types. This may perhaps be an annoyance, and I'm open to using a default instead, but which one?