You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
>>> import pysvzerod
>>> my_unoptimized_config = {...}
>>> my_optimized_config = pysvzerod.calibrate(my_unoptimized_config)
Traceback (most recent call last):
File "<python-input-2>", line 1, in <module>
my_optimized_config = pysvzerod.calibrate(my_unoptimized_config)
TypeError: calibrate(): incompatible function arguments. The following argument types are supported:
1. (arg0: dict) -> json
Solution
The svZeroDCalibrator section needs to be improved. The initial discussion lacks very little useful detail.
The section should be reorganized, first discussing what the data to the svZeroDCalibrator is and its format.
A Python example can then be shown using an input variable with meaningful values for the configuration or show how to read a configuration file from the test cases
import pysvzerod
import json
with open("steadyFlow_calibration.json") as config_file:
config = json.load(config_file)
optimized_config = pysvzerod.calibrate(config)
And also
There is also no discussion about what the output of pysvzerod.calibrate() is
There is no discussion about how to use the C++ interface
Alternatives considered
none
Additional context
No response
Code of Conduct
I agree to follow this project's Code of Conduct and Contributing Guidelines
The text was updated successfully, but these errors were encountered:
Use Case
The 0D Solver svZeroDCalibrator section is a bit unclear about how to use the Python interface to
svzerodcalibrator
Problem
A new user may have difficulty understanding what the
my_unoptimized_config
variable actually represents in theIn Python
exampleActually running this produces
Solution
The svZeroDCalibrator section needs to be improved. The initial discussion lacks very little useful detail.
The section should be reorganized, first discussing what the data to the svZeroDCalibrator is and its format.
A Python example can then be shown using an input variable with meaningful values for the configuration or show how to read a configuration file from the test cases
And also
pysvzerod.calibrate()
isAlternatives considered
none
Additional context
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: