3 Commits

Author SHA1 Message Date
f55d840b8e new version
Some checks failed
Release / test (3.10) (push) Has been cancelled
Release / test (3.11) (push) Has been cancelled
Release / test (3.12) (push) Has been cancelled
Release / test (3.13) (push) Has been cancelled
Release / test (3.8) (push) Has been cancelled
Release / test (3.9) (push) Has been cancelled
Release / build-ubuntu-latest (push) Has been cancelled
Release / build-windows (push) Has been cancelled
Release / release (push) Has been cancelled
2026-02-20 13:57:50 +01:00
327d6a0ff8 Fix indentation error 2026-02-20 13:53:54 +01:00
22943bc513 Run tests before any release 2026-02-20 13:51:07 +01:00
4 changed files with 73 additions and 43 deletions

View File

@@ -22,7 +22,36 @@ on:
- all_incl_release
jobs:
test:
runs-on: ubuntu-22.04
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13']
fail-fast: false
steps:
- uses: actions/checkout@v4
with:
lfs: 'true'
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest
pip install -r requirements.txt
- name: Test with pytest
run: |
python -m pytest tests
build-ubuntu-latest:
needs: [test]
runs-on: ubuntu-latest
if: ${{ (github.event_name != 'workflow_dispatch') || (contains(fromJson('["all", "linux", "all_incl_release"]'), github.event.inputs.build-items)) }}
permissions:
@@ -55,6 +84,7 @@ jobs:
skip-existing: true
build-windows:
needs: [test]
runs-on: windows-latest
if: ${{ (github.event_name != 'workflow_dispatch') || (contains(fromJson('["all", "windows", "all_incl_release"]'), github.event.inputs.build-items)) }}

View File

@@ -1,38 +1,38 @@
name: Unit Testing
on:
push:
branches:
- main
pull_request:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-22.04
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
fail-fast: false
steps:
- uses: actions/checkout@v4
with:
lfs: 'true'
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest
pip install -r requirements.txt
- name: Test with pytest
run: |
python -m pytest tests
name: Unit Testing
on:
push:
branches:
- main
pull_request:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-22.04
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
fail-fast: false
steps:
- uses: actions/checkout@v4
with:
lfs: 'true'
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest
pip install -r requirements.txt
- name: Test with pytest
run: |
python -m pytest tests

View File

@@ -2,5 +2,5 @@
Package to handle data redction at AMOR instrument to be used by __main__.py script.
"""
__version__ = '3.1.0'
__date__ = '2026-02-20'
__version__ = '3.1.1'
__date__ = '2026-02-26'

View File

@@ -74,11 +74,11 @@ class AmorHeader:
logging.warning(f" parameter {key} not found, relpace by zero")
return dtype(0)
def get_hdf_single_entry(self, path):
if not np.shape(self.hdf['entry1/title']):
def get_hdf_single_entry(self, path):
if not np.shape(self.hdf['entry1/title']):
return self.hdf[path][()].decode('utf-8')
else:
# format until 2025
# format until 2025
return self.hdf[path][0].decode('utf-8')
def read_header_info(self):