diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 9c90c39..ceaffea 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -27,7 +27,6 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - python -m pip install --upgrade setuptools python -m pip install flake8 pytest - name: Install package run: | diff --git a/.gitignore b/.gitignore index 42345c4..2bef6c7 100644 --- a/.gitignore +++ b/.gitignore @@ -1,20 +1,22 @@ *.pyc .DS_Store .coverage +coverage.xml +src/gaiaxpy/_version.py +tox.ini +query_tests.py .eggs/ .env/ .env10/ .idea/ .pytest_cache/ .svn/ -GaiaXPy.egg-info/ +.tox/ __pycache__/ build/ dist/ docs/_build/ +GaiaXPy.egg-info/ htmlcov/ junit/ -src/gaiaxpy/_version.py tests_output_files/ -coverage.xml -query_tests.py diff --git a/pyproject.toml b/pyproject.toml index 3a52b71..68bea25 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,7 +6,7 @@ build-backend = 'setuptools.build_meta' name = 'GaiaXPy' dependencies = [ 'aenum', - 'astropy', + 'astropy<=6.1.7', 'astroquery', 'fastavro', 'hdfs', diff --git a/src/gaiaxpy/file_parser/cast.py b/src/gaiaxpy/file_parser/cast.py index aab826a..a092bd3 100644 --- a/src/gaiaxpy/file_parser/cast.py +++ b/src/gaiaxpy/file_parser/cast.py @@ -65,7 +65,7 @@ def _cast(df): except KeyError: continue # Not every key is available in every case except ValueError as err: - if np.isnan(np.sum(df[column].values)): + if df[column].isna().any(): pass # There can be nan values, do nothing with them at this step else: # This is an actual error