Skip to content

Commit

Permalink
Fix pandas deprecation in lvmguider.extraction
Browse files Browse the repository at this point in the history
  • Loading branch information
albireox committed Feb 1, 2024
1 parent 2a33481 commit b332fb5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@

* Upgraded `astropy` to 6.0.0. The docker image now tries (but continues if it fails) to update the `astropy-iers-data` package before running the actor and internally `lvmguider` should never try to download IERS data over the internet.

### 🔧 Fixed

* Fixed `pandas` deprecation in `lvmguider.extraction`.


## 0.4.1 - November 5, 2023

Expand Down
2 changes: 1 addition & 1 deletion src/lvmguider/extraction.py
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@ def extract_sources(filename: str | pathlib.Path, subtract_dark: bool = True):

xy = sources.loc[:, ["x", "y"]].to_numpy()
ff_locs, _ = ag_to_full_frame(f"{telescope}-{camname[0]}", xy)
sources.loc[:, ["x_ff", "z_ff"]] = ff_locs
sources.loc[:, ["x_ff", "z_ff"]] = numpy.array(ff_locs, dtype="float32")

hdul.close()

Expand Down

0 comments on commit b332fb5

Please sign in to comment.