Skip to content

Commit

Permalink
Temporarily avoid astropy 7.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
druzm committed Dec 2, 2024
1 parent 07408de commit 3436158
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
1 change: 0 additions & 1 deletion .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
10 changes: 6 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ build-backend = 'setuptools.build_meta'
name = 'GaiaXPy'
dependencies = [
'aenum',
'astropy',
'astropy<=6.1.7',
'astroquery',
'fastavro',
'hdfs',
Expand Down
2 changes: 1 addition & 1 deletion src/gaiaxpy/file_parser/cast.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3436158

Please sign in to comment.