You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried putting myself in the shoes of someone who's not so experienced with OpenGrid while trying to design an analysis. I want to do an analysis on monthly gas consumption, preferably in kWh.
gas_sensor.get_data(resample='M', unit='kWh') gives me UndefinedUnitError: 'M' is not defined in the unit registry, other combinations give me a range of ValueError, DimensionalityError, ...
Little did I know that I had to flag diff=False, only so I can do df.diff() afterwards to get a monthly gas consumption in kWh.
Anyhow... something we could work on this evening?
The text was updated successfully, but these errors were encountered:
I think the problem lies in sensor._unit_conversion_factor(), on lines like source = self.unit + '/' + resample, which works great when resample is something like 'min' or 'hour'. I just tried 'MS', which is start of month, but was interpreted as MegaSiemens... :-/
I tried putting myself in the shoes of someone who's not so experienced with OpenGrid while trying to design an analysis. I want to do an analysis on monthly gas consumption, preferably in kWh.
gas_sensor.get_data(resample='M', unit='kWh')
gives meUndefinedUnitError: 'M' is not defined in the unit registry
, other combinations give me a range ofValueError
,DimensionalityError
, ...Little did I know that I had to flag
diff=False
, only so I can dodf.diff()
afterwards to get a monthly gas consumption in kWh.Anyhow... something we could work on this evening?
The text was updated successfully, but these errors were encountered: