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
Traceback (most recent call last):
File "F:\python\PythonProject\udf\FMPYceshi\ceshi.py", line 28, in
result = fmpy.simulate_fmu(
File "F:\python\PythonProject\udf.venv\lib\site-packages\fmpy\simulation.py", line 761, in simulate_fmu
result = simulateCS(model_description, fmu, start_time, stop_time, relative_tolerance, start_values, apply_default_start_values, input, output, output_interval, timeout, step_finished, set_input_derivatives, use_event_mode, early_return_allowed, validate, initialize, terminate, set_stop_time)
File "F:\python\PythonProject\udf.venv\lib\site-packages\fmpy\simulation.py", line 1209, in simulateCS
input.apply(time)
File "F:\python\PythonProject\udf.venv\lib\site-packages\fmpy\simulation.py", line 319, in apply
values[:], derivatives[:] = self.interpolate(time=time, t=self.t, table=table, discrete=False, after_event=after_event)
TypeError: only length-1 arrays can be converted to Python scalars Kneeling and pleading for assistance!!!
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
fmu version 3.0 has been uploaded
fmu_vector(2).zip
My python code is as follows:
Error reported as follows:
Traceback (most recent call last):
File "F:\python\PythonProject\udf\FMPYceshi\ceshi.py", line 28, in
result = fmpy.simulate_fmu(
File "F:\python\PythonProject\udf.venv\lib\site-packages\fmpy\simulation.py", line 761, in simulate_fmu
result = simulateCS(model_description, fmu, start_time, stop_time, relative_tolerance, start_values, apply_default_start_values, input, output, output_interval, timeout, step_finished, set_input_derivatives, use_event_mode, early_return_allowed, validate, initialize, terminate, set_stop_time)
File "F:\python\PythonProject\udf.venv\lib\site-packages\fmpy\simulation.py", line 1209, in simulateCS
input.apply(time)
File "F:\python\PythonProject\udf.venv\lib\site-packages\fmpy\simulation.py", line 319, in apply
values[:], derivatives[:] = self.interpolate(time=time, t=self.t, table=table, discrete=False, after_event=after_event)
TypeError: only length-1 arrays can be converted to Python scalars
Kneeling and pleading for assistance!!!
The text was updated successfully, but these errors were encountered: