yt.utilities.on_demand_imports module

class yt.utilities.on_demand_imports.NotAModule(pkg_name, exc: BaseException | None = None)[source]

Bases: object

A class to implement an informative error message that will be outputted if someone tries to use an on-demand import without having the requisite package installed.

class yt.utilities.on_demand_imports.NotCartopy(pkg_name, exc: BaseException | None = None)[source]

Bases: NotAModule

A custom class to return error messages dependent on system installation for cartopy imports.

class yt.utilities.on_demand_imports.NotMiniball(pkg_name)[source]

Bases: NotAModule

class yt.utilities.on_demand_imports.OnDemand[source]

Bases: object

class yt.utilities.on_demand_imports.astropy_imports[source]

Bases: OnDemand

property WCS
property conv
property log
property pyfits
property pywcs
property time
property units
property wcsaxes
class yt.utilities.on_demand_imports.cartopy_imports[source]

Bases: OnDemand

property crs
class yt.utilities.on_demand_imports.f90nml_imports[source]

Bases: OnDemand

property Namelist
property read
class yt.utilities.on_demand_imports.firefly_imports[source]

Bases: OnDemand

property data_reader
property server
class yt.utilities.on_demand_imports.h5py_imports[source]

Bases: OnDemand

property Dataset
property File
property Group
property get_config
property h5d
property h5f
property h5p
property h5s
class yt.utilities.on_demand_imports.libconf_imports[source]

Bases: OnDemand

property load
class yt.utilities.on_demand_imports.miniball_imports[source]

Bases: OnDemand

property Miniball
class yt.utilities.on_demand_imports.netCDF4_imports[source]

Bases: OnDemand

property Dataset
class yt.utilities.on_demand_imports.nose_imports[source]

Bases: OnDemand

property run
class yt.utilities.on_demand_imports.pandas_imports[source]

Bases: OnDemand

property DataFrame
property NA
property concat
property read_csv
class yt.utilities.on_demand_imports.pooch_imports[source]

Bases: OnDemand

property HTTPDownloader
property create
property utils
class yt.utilities.on_demand_imports.pyart_imports[source]

Bases: OnDemand

property io
property map
class yt.utilities.on_demand_imports.ratarmount_imports[source]

Bases: OnDemand

property TarMount
property fuse
class yt.utilities.on_demand_imports.regions_imports[source]

Bases: OnDemand

property Regions
class yt.utilities.on_demand_imports.requests_imports[source]

Bases: OnDemand

property codes
property exceptions
property get
property post
property put
yt.utilities.on_demand_imports.safe_import(func)[source]
class yt.utilities.on_demand_imports.scipy_imports[source]

Bases: OnDemand

property ndimage
property optimize
property signal
property spatial
class yt.utilities.on_demand_imports.xarray_imports[source]

Bases: OnDemand

property open_dataset
class yt.utilities.on_demand_imports.yaml_imports[source]

Bases: OnDemand

property FullLoader
property load