slac207 / cs207project

MIT License
0 stars 4 forks source link

P8-Produce class SMTimeSeries #60

Closed cocochrane closed 7 years ago

cocochrane commented 7 years ago

Inherit from your SizedContainerTimeSeriesInterface a new class, SMTimeSeries. The SM stands for StorageManager. The normal constructor for a time series (which we have not specified to be part of the standard interface) would take times and values lists as arguments. Now we have two possible choices for construction:

  1. init: times and values, and an optional id (the storage manager should autogenerate one if an id is not provided), which then ought to store the time series into a storage manager.

  2. classmethod SMTimeSeries.from_db(id): a method with an id to look up and fetch from the storage manager, having the manager allocate the time series in memory.