Closed OnnoEbbens closed 3 years ago
Good idea!
Only problem I can see is that it might become confusing when the user is not getting back a pastas.TimeSeries object when retrieving data. But making it easy to add pastas.TimeSeries is probably worth that potential (minor) confusion.
The name still has to be passed individually, but timeseries and metadata can be taken from the pastas.TimeSeries object.
series = ps.read_dino(fname)
store.add_oseries(series, series.name)
Closed by #40
I think it would be nice to modify
PastaStore.add_oseries()
in such a way that theseries
argument can be apastas.timeseries.TimeSeries
object. Now only pandasDataFrame
andSeries
are supported. It can save you some code, for example when adding a Dino csv file to the store.Now:
Proposed change:
What are your thoughts on this?