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
ObsPlus currently implements a few custom datatypes in a bit of a wonky way (in junction with the DataFrameExtractor). Examples of these include 'ops_datetime' which calls a custom function to instantiate an ObsPy.UTCDateTime object, then converts it to a numpy.datetime64[ns]. Although this isn't ideal, it is very useful for wedding UTCDateTime with np.datetime64.
We should look into actually using Pandas' machinery for extending dtypes to remove some of this complexity from ObsPlus. Docs can be found here. We wouldn't need a new dtype per say, but rather a custom constructor so maybe subclassing an existing dtype would do what we need.
The text was updated successfully, but these errors were encountered:
ObsPlus currently implements a few custom datatypes in a bit of a wonky way (in junction with the
DataFrameExtractor
). Examples of these include 'ops_datetime' which calls a custom function to instantiate anObsPy.UTCDateTime
object, then converts it to anumpy.datetime64[ns]
. Although this isn't ideal, it is very useful for weddingUTCDateTime
withnp.datetime64
.We should look into actually using Pandas' machinery for extending dtypes to remove some of this complexity from ObsPlus. Docs can be found here. We wouldn't need a new dtype per say, but rather a custom constructor so maybe subclassing an existing dtype would do what we need.
The text was updated successfully, but these errors were encountered: