Skip to content

Commit

Permalink
Merge pull request #73 from ECCCO-mission/allow-py39
Browse files Browse the repository at this point in the history
avoid type union problems in 3.9
  • Loading branch information
jmbhughes committed Jun 27, 2024
2 parents 839f206 + 2482075 commit 33f6097
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12"]
python-version: ["3.9", "3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v3
Expand Down
2 changes: 2 additions & 0 deletions overlappogram/cli.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import annotations

import os

NUMPY_THREAD_COUNT = 1
Expand Down
6 changes: 5 additions & 1 deletion overlappogram/io.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import annotations

from datetime import datetime

from astropy.io import fits
Expand All @@ -19,7 +21,9 @@
'ELECDIST']


def load_overlappogram(image_path: str, weights_path: str | None = None, mask_path: str | None = None) -> NDCube:
def load_overlappogram(image_path: str,
weights_path: str | None = None,
mask_path: str | None = None) -> NDCube:
with fits.open(image_path) as image_hdul:
image = image_hdul[0].data
header = image_hdul[0].header
Expand Down
2 changes: 2 additions & 0 deletions overlappogram/response.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import annotations

import numpy as np
from ndcube import NDCube

Expand Down
1 change: 1 addition & 0 deletions overlappogram/spectral.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from __future__ import annotations

import astropy.wcs as wcs
import numpy as np
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ requires = ["setuptools",

[project]
name = "overlappogram"
version = "0.0.7"
version = "0.0.8"
dependencies = ["numpy<2.0.0",
"astropy",
"scikit-learn",
Expand All @@ -19,7 +19,7 @@ dependencies = ["numpy<2.0.0",
"click",
"tqdm"
]
requires-python = ">=3.10"
requires-python = ">=3.9"
authors = [
{name = "J. Marcus Hughes", email = "hughes.jmb@gmail.com"},
{name = "Dyana Beabout", email = "dyana.l.beabout@nasa.gov"},
Expand Down
2 changes: 2 additions & 0 deletions tests/test_inversion.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import annotations

import os

import numpy as np
Expand Down
2 changes: 2 additions & 0 deletions tests/test_spectral.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import annotations

import os

import toml
Expand Down

0 comments on commit 33f6097

Please sign in to comment.