Closed daviesje closed 3 months ago
@daviesje I'm worried that this small change is breaking so many tests. What parameter is now getting passed through differently?
@daviesje I'm worried that this small change is breaking so many tests. What parameter is now getting passed through differently?
Yeah this was unexpected, I'm looking into the way the parameters are setup in the integration tests, something might be fetching a default when it isn't meant to
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 82.51%. Comparing base (
a16376c
) to head (ade25a8
). Report is 26 commits behind head on master.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
In
_setup_params
which is called for every output structure, if a certain parameter structure is not provided it will not be returned, however the default parameter structure is still passed intovalidate_inputs
. This means that for structures which don't require some of the input parameters (InitialConditions and PertrubedField which don't need astro params). If the other provided structures conflict with the defaults (not the actual provided parameters), then an error will be raised or unexpected behaviour will occur.This PR makes the small change that parameter structures which are not requested from the funcion are not passed into
validate_inputs
.