Skip to content

Add support for more stage-out data types; make xarray optional? #83

Description

@pont-us

Currently xcengine only automatically stages out xarray.Dataset instances. We should add other commonly used types. xarray.DataArray is an obvious candidate, but there are also (for example) iris.cube.Cube, pandas.DataFrame, geopandas.GeoDataFrame. This would require a more dynamic data type detection system than the current isinstance(thing, xr.Dataset) to avoid making every potential data library a hard dependency. Such a change could also involve making xarray itself optional -- no sense in having it as a dependency for a notebook that only uses e.g. pandas.

Somewhat related to #61 .

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions