How to import data to jupyter lab from maxwell
talkinggamja
Member Posts: 2
**
Now I got trouble for get data from Maxwell to python console.
I use this code to get data
torque = M2D.post.get_solution_data("Moving1.Torque",variations={"Time":["All"]}, primary_sweep_variable="Time")
torque.plot()
And this code work but I want average value of "Moving1.Torque" by int value.
but
numpy.mean(torque) doesn't work
It said it is not callable data
So, how to get value(avg value of output from Maxwell)?
Tagged:
0
Answers
-
@Massimo can you offer some help here?
0 -
@talkinggamja This method returns an object. You can get the value:
torque.data_real()
If you want to check the properties and methods available:
dir(torque)
1 -
Thank you and also I have solved problem.
0