scmdata.pyam_compat

Imports and classes required to ensure compatibility with Pyam is intelligently handled.

LongDatetimeIamDataFrame

class LongDatetimeIamDataFrame(data, meta=None, index=['model', 'scenario'], **kwargs)[source]

Bases: IamDataFrame

Custom implementation of pyam.IamDataFrame which handles long datetime data.

This custom implementation allows the data frame to handle times outside panda’s limited time range of 1677-09-22 00:12:43.145225 to 2262-04-11 23:47:16.854775807, see this discussion.

TODO: use np.datetime64 instead