Skip to content

Commit

Permalink
#132 Merge pull request from deshima-dev/astropenguin/issue130
Browse files Browse the repository at this point in the history
Fix to handle cases where fit errors are None
  • Loading branch information
astropenguin authored Jul 3, 2024
2 parents 6441725 + 501735a commit 2268cdb
Show file tree
Hide file tree
Showing 9 changed files with 138 additions and 119 deletions.
12 changes: 8 additions & 4 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
{
"name": "demerge",
"image":"python:3.11",
"runArgs": [
"--name=demerge"
],
"features": {
"ghcr.io/devcontainers-contrib/features/poetry:2": {
"version": "1.8.3"
}
},
"containerEnv": {
"POETRY_VIRTUALENVS_CREATE": "false"
},
"onCreateCommand": "pip install poetry==1.8.3",
"runArgs": [
"--name=demerge"
],
"postCreateCommand": "poetry install",
"customizations": {
"vscode": {
Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,9 @@ on:
push:
branches:
- main
- deshima2.0
pull_request:
branches:
- main
- deshima2.0

jobs:
job:
Expand All @@ -21,13 +19,16 @@ jobs:
matrix:
python: ["3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- run: pip install poetry==1.7.1 && poetry install
- uses: abatilo/actions-poetry@v3
with:
poetry-version: "1.8.3"
- run: poetry install
- run: black --check demerge
- run: deshima-rawdata download 20231108052231 -e
- run: demerge 20231108052231 --measure brightness --debug
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.1
date-released: '2024-07-02'
version: 3.0.2
date-released: '2024-07-03'
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.1
pip install demerge==3.0.2
```

## 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.1"
__version__ = "3.0.2"


# standard library
Expand Down
3 changes: 3 additions & 0 deletions demerge/reduce/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,18 +61,21 @@ def reduce(
with TemporaryDirectory() as work_dir:
run(
["python", SCRIPTS / "Configure.py", data_dir, reduced_dir],
check=True,
cwd=work_dir,
# False if logging is implemented
capture_output=True,
)
run(
["python", SCRIPTS / "FitSweep.py"],
check=True,
cwd=work_dir,
# False if logging is implemented
capture_output=True,
)
run(
["python", SCRIPTS / "SaveFits.py"],
check=True,
cwd=work_dir,
# False if logging is implemented
capture_output=True,
Expand Down
217 changes: 114 additions & 103 deletions poetry.lock

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "demerge"
version = "3.0.1"
version = "3.0.2"
description = "DESHIMA merge code for observed datasets"
authors = [
"Tatsuya Takekoshi <[email protected]>",
Expand Down Expand Up @@ -36,7 +36,7 @@ zarr = "^2.14"

[tool.poetry.group.dev.dependencies]
black = "^24.4"
deshima-rawdata = "^2024.4.2"
deshima-rawdata = "^2024.4"
ipython = "^8.18"

[tool.poetry.scripts]
Expand Down

0 comments on commit 2268cdb

Please sign in to comment.