roman-corgi / corgidrp

Data Reduction Pipeline for the Roman Coronagraph Instrument
BSD 3-Clause "New" or "Revised" License
5 stars 4 forks source link

Fix upcoming pandas deprecation in caldb #161

Closed semaphoreP closed 3 months ago

semaphoreP commented 3 months ago

Describe the bug /usr/local/lib/python3.10/dist-packages/corgidrp/caldb.py:183: FutureWarning: The behavior of DataFrame concatenation with empty or all-NA entries is deprecated. In a future version, this will no longer exclude empty or all-NA columns when determining the result dtypes. To retain the old behavior, exclude the relevant entries before the concat operation. self._db = pd.concat([self._db, new_entry], ignore_index=True)

/usr/local/lib/python3.10/dist-packages/corgidrp/caldb.py:179: FutureWarning: Setting an item of incompatible dtype is deprecated and will raise an error in a future version of pandas. Value '-5747262447240794608' has dtype incompatible with int64, please explicitly cast to a compatible dtype first. self._db.loc[row_index, self.columns] = new_row

To Reproduce Run pytest

Expected behavior These warnings should not appear

corgidrp version: v0.1.2