Skip to content
Snippets Groups Projects
Commit d3886b89 authored by wilsonm's avatar wilsonm
Browse files

update name of action which iterates runcard to properly reflect function

parent 542d6ea8
No related branches found
No related tags found
1 merge request!929Use API in vp-nextfitruncard
% Next runcard:
```yaml
{@next_effective_exponents_yaml@}
{@iterated_runcard_yaml@}
```
......@@ -401,7 +401,7 @@ fmt = lambda a: float(significant_digits(a, 4))
next_fit_eff_exps_table = collect("next_effective_exponents_table", ("fitpdfandbasis",))
def next_effective_exponents_yaml(
def iterated_runcard_yaml(
fit: FitSpec, next_fit_eff_exps_table, _updated_description=None
):
"""
......@@ -427,7 +427,7 @@ def next_effective_exponents_yaml(
be written to a file e.g
>>> from validphys.api import API
>>> yaml_output = API.next_effective_exponents_yaml(
>>> yaml_output = API.iterated_runcard_yaml(
... fit=<fit name>,
... _updated_description="My iterated fit"
... )
......
......@@ -101,7 +101,7 @@ def main():
updated_description = interactive_description(description)
iterated_runcard_yaml = API.next_effective_exponents_yaml(
iterated_runcard_yaml = API.iterated_runcard_yaml(
fit=input_fit, _updated_description=updated_description
)
......
......@@ -25,7 +25,7 @@ def test_next_runcard():
ite2_runcard.pop("pdf") # Removing the PDF key, it's an artefact of as_input
predicted_ite2_runcard = yaml.safe_load(
API.next_effective_exponents_yaml(fit=FIT)
API.iterated_runcard_yaml(fit=FIT)
)
# Remove all seed keys from the runcards since these are randomly generated
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment