Closed 94zz94 closed 2 years ago
Hi Everyone, in performing a time series I encountered an error, declaring directly time and acceleration values:
WARNING choice of options for path series is invalid OpenSeesError: See stderr output
import openseespy.opensees as ops
...
timeSeriesTag = int(200) # this tag has not been used (unique) timeAcc is a List of float values timeHistory is a List of float values
ops.timeSeries('Path', timeSeriesTag, '-time', timeAcc, '-values', timeHistory)
even with a simple case like: ops.timeSeries('Path', timeSeriesTag, '-time', list([0., 0.05, 0.01]), '-values', list([0., 0.05, 0.01]))
OpenSeesError: See stderr output
type(timeAcc) Out[39]: list
len(timeAcc) Out[40]: 12394
type(timeHistory) Out[43]: list
len(timeHistory) Out[41]: 12394
If I use ops.timeSeries with File Path it works, but more time consuming reloading datasets
What could be the problem? Thank you in advance
@millen1m @zhuminjie
I'll close the issue.
Simply declare:
time = timeAcc values = timeHistory
and then
ops.timeSeries('Path', timeSeriesTag, '-time', time, '-values', values)
Not very elegant, but it works
Hi Everyone, in performing a time series I encountered an error, declaring directly time and acceleration values:
WARNING choice of options for path series is invalid OpenSeesError: See stderr output
import openseespy.opensees as ops
...
timeSeriesTag = int(200) # this tag has not been used (unique) timeAcc is a List of float values timeHistory is a List of float values
ops.timeSeries('Path', timeSeriesTag, '-time', timeAcc, '-values', timeHistory)
even with a simple case like: ops.timeSeries('Path', timeSeriesTag, '-time', list([0., 0.05, 0.01]), '-values', list([0., 0.05, 0.01]))
OpenSeesError: See stderr output
type(timeAcc) Out[39]: list
len(timeAcc) Out[40]: 12394
type(timeHistory) Out[43]: list
len(timeHistory) Out[41]: 12394
If I use ops.timeSeries with File Path it works, but more time consuming reloading datasets
What could be the problem? Thank you in advance
@millen1m @zhuminjie