Extra inputs #1033
Unanswered
mars4049ai
asked this question in
Q&A
Extra inputs
#1033
Replies: 1 comment
-
As stated here https://torax.readthedocs.io/en/latest/tutorials.html "These tutorials are tested for TORAX v0.3.1 and are not guaranteed to work with later versions due to API changes." Please checkout v0.3.1 and retry. Thanks. Can close this issue if it works for you then. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I use ITER config from: torax/tutorials/torax_tutorial_exercises_with_solutions.ipynb. And i hace 8 problems whit extra inputs when i wun simulation.
Errors text:
ValidationError Traceback (most recent call last)
in <cell line: 0>()
12 config3 = modify_config(nbi_power=nbi_power3)
13
---> 14 out0 = run_sim(config0)
15 out1 = run_sim(config1)
16 out2 = run_sim(config2)
2 frames
/usr/local/lib/python3.11/dist-packages/pydantic/main.py in model_validate(cls, obj, strict, from_attributes, context, by_alias, by_name)
701 )
702
--> 703 return cls.pydantic_validator.validate_python(
704 obj, strict=strict, from_attributes=from_attributes, context=context, by_alias=by_alias, by_name=by_name
705 )
ValidationError: 8 validation errors for ToraxConfig
sources.ecrh
Extra inputs are not permitted [type=extra_forbidden, input_value={'gaussian_ec_power_densi...99: 0, 100: 20000000.0}}, input_type=dict]
For further information visit https://errors.pydantic.dev/2.11/v/extra_forbidden
sources.generic_heat
Extra inputs are not permitted [type=extra_forbidden, input_value={'rsource': 0.25, 'w': 0....el_heat_fraction': 0.66}, input_type=dict]
For further information visit https://errors.pydantic.dev/2.11/v/extra_forbidden
sources.generic_current
Extra inputs are not permitted [type=extra_forbidden, input_value={'use_absolute_current': ..., 99: 0.0, 100: 2.0625}}, input_type=dict]
For further information visit https://errors.pydantic.dev/2.11/v/extra_forbidden
sources.fusion
Extra inputs are not permitted [type=extra_forbidden, input_value={}, input_type=dict]
For further information visit https://errors.pydantic.dev/2.11/v/extra_forbidden
sources.ei_exchange
Extra inputs are not permitted [type=extra_forbidden, input_value={}, input_type=dict]
For further information visit https://errors.pydantic.dev/2.11/v/extra_forbidden
sources.ohmic
Extra inputs are not permitted [type=extra_forbidden, input_value={}, input_type=dict]
For further information visit https://errors.pydantic.dev/2.11/v/extra_forbidden
sources.cyclotron_radiation
Extra inputs are not permitted [type=extra_forbidden, input_value={}, input_type=dict]
For further information visit https://errors.pydantic.dev/2.11/v/extra_forbidden
sources.impurity_radiation
Extra inputs are not permitted [type=extra_forbidden, input_value={'model_function_name': '...iation_multiplier': 0.0}, input_type=dict]
For further information visit https://errors.pydantic.dev/2.11/v/extra_forbidden
Beta Was this translation helpful? Give feedback.
All reactions