Skip to content

Commit 33f6097

Browse files
authored
Merge pull request #73 from ECCCO-mission/allow-py39
avoid type union problems in 3.9
2 parents 839f206 + 2482075 commit 33f6097

File tree

8 files changed

+17
-4
lines changed

8 files changed

+17
-4
lines changed

.github/workflows/CI.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
strategy:
2020
fail-fast: false
2121
matrix:
22-
python-version: ["3.10", "3.11", "3.12"]
22+
python-version: ["3.9", "3.10", "3.11", "3.12"]
2323

2424
steps:
2525
- uses: actions/checkout@v3

overlappogram/cli.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from __future__ import annotations
2+
13
import os
24

35
NUMPY_THREAD_COUNT = 1

overlappogram/io.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from __future__ import annotations
2+
13
from datetime import datetime
24

35
from astropy.io import fits
@@ -19,7 +21,9 @@
1921
'ELECDIST']
2022

2123

22-
def load_overlappogram(image_path: str, weights_path: str | None = None, mask_path: str | None = None) -> NDCube:
24+
def load_overlappogram(image_path: str,
25+
weights_path: str | None = None,
26+
mask_path: str | None = None) -> NDCube:
2327
with fits.open(image_path) as image_hdul:
2428
image = image_hdul[0].data
2529
header = image_hdul[0].header

overlappogram/response.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from __future__ import annotations
2+
13
import numpy as np
24
from ndcube import NDCube
35

overlappogram/spectral.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
from __future__ import annotations
12

23
import astropy.wcs as wcs
34
import numpy as np

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ requires = ["setuptools",
55

66
[project]
77
name = "overlappogram"
8-
version = "0.0.7"
8+
version = "0.0.8"
99
dependencies = ["numpy<2.0.0",
1010
"astropy",
1111
"scikit-learn",
@@ -19,7 +19,7 @@ dependencies = ["numpy<2.0.0",
1919
"click",
2020
"tqdm"
2121
]
22-
requires-python = ">=3.10"
22+
requires-python = ">=3.9"
2323
authors = [
2424
{name = "J. Marcus Hughes", email = "hughes.jmb@gmail.com"},
2525
{name = "Dyana Beabout", email = "dyana.l.beabout@nasa.gov"},

tests/test_inversion.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from __future__ import annotations
2+
13
import os
24

35
import numpy as np

tests/test_spectral.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from __future__ import annotations
2+
13
import os
24

35
import toml

0 commit comments

Comments
 (0)