From 810d3b118390845ece5d0ee5fd508461c01e5d8e Mon Sep 17 00:00:00 2001 From: Denys Savchenko <56398430+dsavchenko@users.noreply.github.com> Date: Mon, 18 Nov 2024 23:16:20 +0100 Subject: [PATCH] binary data compatibility (#301) * binary data compatibility * check type * keep columns * typo back * revert changes * restrict astropy, setuptools * requirements * no setuptools restriction * try hisher ver * higher * syntax * le * ver6.1.5 * ver6.1.3 * ver6.1.4 * also restrict in pyproject.toml --- oda_api/data_products.py | 2 +- pyproject.toml | 2 +- requirements.txt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/oda_api/data_products.py b/oda_api/data_products.py index 9182e116..af146823 100644 --- a/oda_api/data_products.py +++ b/oda_api/data_products.py @@ -355,7 +355,7 @@ def _map_hdu_type(hdu): def new_hdu_from_data(self,data,hdu_type, header=None,units_dict=None): - self._chekc_hdu_type(hdu_type) + self._check_hdu_type(hdu_type) if hdu_type=='primary': h = pf.PrimaryHDU diff --git a/pyproject.toml b/pyproject.toml index 38443c1d..b4baef48 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -20,7 +20,7 @@ requires-python = ">=2.7" dependencies = [ "requests", "future", - "astropy>=3.2", + "astropy>=3.2,<=6.1.4", "json_tricks", "matplotlib", "numpy", diff --git a/requirements.txt b/requirements.txt index d0339578..bed92c6c 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,6 +1,6 @@ requests future -astropy +astropy<=6.1.4 json_tricks matplotlib numpy