Skip to content

Include function-argument fields in greedy '*' parameter load - #5401

Merged
cdcapano merged 1 commit into
gwastro:masterfrom
ahnitz:fix-star-excludes-function-args
Aug 19, 2026
Merged

Include function-argument fields in greedy '*' parameter load#5401
cdcapano merged 1 commit into
gwastro:masterfrom
ahnitz:fix-star-excludes-function-args

Conversation

@ahnitz

@ahnitz ahnitz commented Aug 11, 2026

Copy link
Copy Markdown
Member

When '--parameters' is given a function of fields together with '', e.g. "'mchirp_from_mass1_q(mass1, q)' ''", the greedy wildcard previously excluded every field that appeared as an argument to a function (here mass1 and q), because the exclusion set was built from FieldArray.parse_parameters, which returns the fields needed to evaluate the requested expressions.

Only parameters requested explicitly as their own output column (i.e. given as a bare field name) should be excluded from the wildcard, so that fields used only as function arguments are still loaded. Update the help text accordingly.

@ahnitz
ahnitz requested a review from cdcapano August 11, 2026 20:49
@ahnitz
ahnitz force-pushed the fix-star-excludes-function-args branch from 0116f3d to a8b7159 Compare August 11, 2026 20:51
When '--parameters' is given a function of fields together with '*', e.g.
"'mchirp_from_mass1_q(mass1, q)' '*'", the greedy wildcard previously excluded
every field that appeared as an argument to a function (here mass1 and q),
because the exclusion set was built from FieldArray.parse_parameters, which
returns the fields *needed to evaluate* the requested expressions.

Only parameters requested explicitly as their own output column (i.e. given as
a bare field name) should be excluded from the wildcard, so that fields used
only as function arguments are still loaded. Update the help text accordingly.
@ahnitz
ahnitz force-pushed the fix-star-excludes-function-args branch from a8b7159 to c48d063 Compare August 11, 2026 21:55
@ahnitz

ahnitz commented Aug 13, 2026

Copy link
Copy Markdown
Member Author

The initial failure looked like a network timeout (at least for the basic tests) so I'm rerunning

@cdcapano cdcapano left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We did this in group meeting together with Claude. Looks good. I think there might be some documentation that needs to be updated in the tutorials repo for this, but strictly speaking this doesn't break that, so approving.

@cdcapano
cdcapano merged commit a12e716 into gwastro:master Aug 19, 2026
34 of 44 checks passed
@cdcapano
cdcapano deleted the fix-star-excludes-function-args branch August 19, 2026 21:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants