diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 02bce075..5d96d175 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -18,11 +18,6 @@ jobs: python-version: 3.9 toxenv: build_docs - - name: Python 3.8 with minimal dependencies - os: ubuntu-latest - python-version: '3.8' - toxenv: py38-test - - name: Python 3.9 with minimal dependencies os: ubuntu-latest python-version: '3.9' @@ -33,6 +28,11 @@ jobs: python-version: '3.10' toxenv: py310-test + - name: Python 3.11 with minimal dependencies + os: ubuntu-latest + python-version: '3.11' + toxenv: py311-test + - name: Code style checks os: ubuntu-latest python-version: 3.9 diff --git a/CHANGES.md b/CHANGES.md index 6b47a016..5e7f5e27 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,3 +1,7 @@ +1.19.0 (2024-10-16) +------------------- +- Added the ability to read fits files that are pre downloaded and are already in memory + 1.18.4 (2024-10-18) ------------------- - Fix to the url of the observation portal in the deployment. diff --git a/banzai/utils/fits_utils.py b/banzai/utils/fits_utils.py index c6d57d77..7e64e510 100755 --- a/banzai/utils/fits_utils.py +++ b/banzai/utils/fits_utils.py @@ -142,7 +142,11 @@ def basename_search_in_archive(filename, dateobs, context, is_raw_frame=False): def open_fits_file(file_info, context, is_raw_frame=False): - if file_info.get('path') is not None and os.path.exists(file_info.get('path')): + if file_info.get('data_buffer') is not None: + filename = file_info.get('filename') + frame_id = None + buffer = file_info.get('data_buffer') + elif file_info.get('path') is not None and os.path.exists(file_info.get('path')): buffer = open(file_info.get('path'), 'rb') filename = os.path.basename(file_info.get('path')) frame_id = None