Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix smoke test #760

Merged
merged 2 commits into from
Dec 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion include/eigen
Submodule eigen updated from c01ff4 to 6d829e
2 changes: 1 addition & 1 deletion lib/pybind11
Submodule pybind11 updated 222 files
26 changes: 14 additions & 12 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,16 @@ classifiers = [
]
dynamic = ["version"]
dependencies = [
"astropy>=6.1",
"astroquery>=0.4.7",
"dask[array]>=2024.4.1", # Needed for astropy library dependency
"astropy>=5.1",
"astroquery>=0.4.6",
"jax",
"jaxlib",
"matplotlib>=3.9",
"numpy>=2.0",
"pandas>=2.2", # Needed for scikit_learn
"joblib>=1.4",
"matplotlib>=3.5",
"numpy<2.0",
"pandas>=1.5.1",
"reproject",
"scipy>=1.13",
"scikit_learn>=1.5.0",
"scipy>=1.9.2",
"scikit_learn>=1.0.0",
"koffi>=0.1.1",
"jplephem",
"PyYAML>=6.0"
Expand All @@ -56,12 +55,15 @@ Changelog = "https://epyc.astro.washington.edu/~kbmod/project_details/release_no

[project.optional-dependencies]
analysis = [
"ephem>=4.1",
"tensorflow>=2.9",
"matplotlib>=3.6.1",
"ipywidgets>=8.0",
"ephem>=4.1"
]
docs = [
"sphinx>=8.0",
"sphinx-gallery",
"sphinx",
# https://github.com/spatialaudio/nbsphinx/issues/655
"sphinx-gallery<0.11",
"sphinx-codeautolink",
"sphinx-design",
"numpydoc",
Expand Down
1 change: 0 additions & 1 deletion tests/test_results.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,6 @@ def test_is_empty_value(self):
self.assertFalse(np.any(nums_is_empty))

pairs_is_empty = table.is_empty_value("pairs")
print(pairs_is_empty)
self.assertTrue(np.array_equal(pairs_is_empty, expected))

def test_filter_by_index(self):
Expand Down
8 changes: 8 additions & 0 deletions tests/utils/mock_fits.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,14 @@ def get_fits(self, fits_idx, spoof_data=False):
warnings.filterwarnings("ignore", category=AstropyUserWarning)
for hdr_idx, HDUClass in enumerate(self.hdu_types):
hdr = HDUClass()

# Remove the cards that know we will reinsert them below and
# require a specific order. We rely on the file order.
for key in ["GCOUNT", "NAXIS", "NAXIS1", "NAXIS2", "PCOUNT"]:
if key in hdr.header:
del hdr.header[key]

# Insert all the cards from the file.
for k, v, f in hdu_group.groups[hdr_idx]["keyword", "value", "format"]:
hdr.header[k] = self.lexical_cast(v, f)
hdul.append(hdr)
Expand Down