Skip to content

Commit

Permalink
#136 Merge pull request from deshima-dev/astropenguin/issue135
Browse files Browse the repository at this point in the history
Get observation table name from SET DES OBS_FILE
  • Loading branch information
astropenguin authored Jul 6, 2024
2 parents 6703b5b + 38929e5 commit 5270d3d
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@ keywords:
- spectroscopy
- deshima
license: MIT
version: 3.0.3
date-released: '2024-07-05'
version: 3.0.4
date-released: '2024-07-06'
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 merge code for observed datasets
## Installation

```shell
pip install demerge==3.0.3
pip install demerge==3.0.4
```

## Command line interface
Expand Down
2 changes: 1 addition & 1 deletion demerge/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
__all__ = ["demerge", "merge", "reduce"]
__version__ = "3.0.3"
__version__ = "3.0.4"


# standard library
Expand Down
6 changes: 3 additions & 3 deletions demerge/merge/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ def load_obsinst(obsinst: Path) -> dict[str, Any]:
for line in f:
if "SET ANTENNA_G EPOCH" in line:
epoch = line.split()[-1].strip("'JB")
elif "% OBS=" in line:
obs = line.split("=")[-1].strip()
elif "SET DES OBS_FILE" in line:
obs_file = line.split()[-1].strip("'")
elif "SET DES OBS_USER" in line:
obs_user = line.split()[-1].strip("'")
elif "SET DES PROJECT" in line:
Expand All @@ -102,7 +102,7 @@ def load_obsinst(obsinst: Path) -> dict[str, Any]:
ra, dec = 0.0, 0.0

return {
"observation": obs,
"observation": obs_file,
"observer": obs_user,
"project": project,
"object": src_name,
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "demerge"
version = "3.0.3"
version = "3.0.4"
description = "DESHIMA merge code for observed datasets"
authors = [
"Tatsuya Takekoshi <tatsuya.takekoshi@gmail.com>",
Expand Down

0 comments on commit 5270d3d

Please sign in to comment.