Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update ndcube #273

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/data_types/raster.rst
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ As before, we will add the timestamps and exposure times as extra coordinates.
>>> from datetime import datetime, timedelta
>>> from astropy.time import Time
>>> from sunraster import SpectrogramCube
>>> from sunraster.meta import Meta
>>> from ndcube.meta import NDMeta

>>> # Define primary data array and WCS object.
>>> data = np.ones((3, 4, 5))
Expand All @@ -50,7 +50,7 @@ As before, we will add the timestamps and exposure times as extra coordinates.
>>> mask = np.zeros(data.shape, dtype=bool)
>>> # Define some RasterSequence metadata.
>>> exposure_times = np.ones(data.shape[0])/2 * u.s
>>> scan_meta = Meta({"exposure time": exposure_times}, axes={"exposure time": 0},
>>> scan_meta = NDMeta({"exposure time": exposure_times}, axes={"exposure time": 0},
... data_shape=data.shape)
>>> seq_meta = {"description": "This is a RasterSequence.", "exposure time" : exposure_times}

Expand Down
4 changes: 2 additions & 2 deletions docs/data_types/spectrogram.rst
Original file line number Diff line number Diff line change
Expand Up @@ -164,11 +164,11 @@ Let's recreate our spectrogram object again, but this time with exposure times o
.. code-block:: python

>>> import astropy.units as u
>>> from sunraster.meta import Meta
>>> from ndcube.meta import NDMeta
>>> exposure_times = np.ones(data.shape[0])/2 * u.s
>>> # Create a metadata instance to hold the exposure times.
>>> # We must also assign the exposure time to the time axis, in this case, the 0th array axis.
>>> metadata = Meta({"exposure time": exposure_times}, axes={"exposure time": 0},
>>> metadata = NDMeta({"exposure time": exposure_times}, axes={"exposure time": 0},
... data_shape=data.shape)
>>> my_spectrograms = SpectrogramCube(data, input_wcs, uncertainty=uncertainties,
... mask=mask, meta=metadata, unit=u.ct)
Expand Down
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ authors = [
{ name = "The SunPy Community", email = "[email protected]" },
]
dependencies = [
"numpy>=1.24",
"astropy>=5.2",
"ndcube[plotting]>=2.1.2"
"numpy>=1.23.0",
"astropy>=5.0.6,!=5.1.0",
"ndcube[all]>=2.3.0rc1"
]
dynamic = ["version"]

Expand Down
Empty file removed sunraster/extern/__init__.py
Empty file.
238 changes: 0 additions & 238 deletions sunraster/extern/meta.py

This file was deleted.

Empty file removed sunraster/extern/tests/__init__.py
Empty file.
Loading
Loading