Skip to content
Merged
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 CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@ keywords:
- spectroscopy
- submillimeter
license: MIT
version: 2025.6.0
date-released: '2025-06-16'
version: 2025.6.1
date-released: '2025-06-17'
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ DESHIMA measurement set by DataArray
## Installation

```shell
pip install dems==2025.6.0
pip install dems==2025.6.1
```

## Usage
Expand Down
2 changes: 1 addition & 1 deletion dems/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
__all__ = ["d1", "d2"]
__version__ = "2025.6.0"
__version__ = "2025.6.1"


# submodules
Expand Down
20 changes: 19 additions & 1 deletion dems/d2.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,18 @@ class Weight:
long_name: Attr[str] = "Data weights"


@dataclass
class CubeMask:
data: Data[Tuple[Ch, Lt, Ln], bool]
long_name: Attr[str] = "Data masks"


@dataclass
class CubeWeight:
data: Data[Tuple[Ch, Lt, Ln], float]
long_name: Attr[str] = "Data weights"


@dataclass
class Observation:
data: Data[Ti, Literal["U16"]]
Expand Down Expand Up @@ -450,15 +462,18 @@ class Cube(AsDataArray):

# data
data: Data[Tuple[Ch, Lt, Ln], Any]
mask: Coordof[CubeMask] = False
weight: Coordof[CubeWeight] = 1.0
long_name: Attr[str] = "Brightness"
units: Attr[str] = "K"
name: Name[str] = "Cube"
# dimensions
chan: Coordof[Chan_] = 0
lon: Coordof[Lon_] = 0.0
lat: Coordof[Lat_] = 0.0
# data information
# telescope pointing
frame: Coordof[Frame] = "altaz"
# data information
bandwidth: Coordof[Bandwidth] = 0.0
frequency: Coordof[Frequency] = 0.0
beam_major: Coordof[BeamMajor] = 0.0
Expand All @@ -468,6 +483,9 @@ class Cube(AsDataArray):
observer: Attr[str] = ""
project: Attr[str] = ""
object: Attr[str] = ""
telescope_name: Attr[str] = ""
telescope_diameter: Attr[float] = 0.0
telescope_coordinates: Attr[Tuple[float, float, float]] = 0.0, 0.0, 0.0
# ASTE specific
aste_obs_group: Attr[str] = ""
aste_obs_id: Attr[str] = ""
Expand Down
9 changes: 7 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "dems"
version = "2025.6.0"
version = "2025.6.1"
description = "DESHIMA Measurement Set"
readme = "README.md"
keywords = [
Expand Down Expand Up @@ -35,7 +35,12 @@ homepage = "https://github.com/deshima-dev/dems"
repository = "https://github.com/deshima-dev/dems"

[dependency-groups]
dev = ["black>=24.4", "ipython>=8.18", "pyright>=1.1", "pytest>=8.2"]
dev = [
"black>=25,<26",
"ipython>=8,<10",
"pyright>=1,<2",
"pytest>=8,<9",
]

[build-system]
requires = ["hatchling"]
Expand Down
10 changes: 5 additions & 5 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.