Stopping exceptions being thrown in getRequirements()
Conversion function seemed to be expecting a DoubleTimeSeries rather than a HistoricalTimeSeries from the database. I have preserved the old behaviour while adding the ability to handle HistoricalTimeSeries