File tree 2 files changed +8
-2
lines changed
2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
10
10
11
11
## \[ Unreleased\]
12
12
13
+ ### Fixed
14
+
15
+ - Fix issue #76 . Make ` Alert.dataframe ` succeed even when there are no previous sources.
16
+
17
+ ## \[ v0.3.12\] - 2025-03-07
18
+
13
19
### Added
14
20
15
21
- Data listings and references for LSST
Original file line number Diff line number Diff line change @@ -298,9 +298,9 @@ def dataframe(self) -> "pd.DataFrame":
298
298
import pandas as pd # always lazy-load pandas. it hogs memory on cloud functions and run
299
299
300
300
# sources and previous sources are expected to have the same fields
301
- sources_df = pd .DataFrame ([self .get ("source" )] + self .get ("prv_sources" , []))
301
+ sources_df = pd .DataFrame ([self .get ("source" )] + ( self .get ("prv_sources" ) or []))
302
302
# sources and forced sources may have different fields
303
- forced_df = pd .DataFrame (self .get ("prv_forced_sources" , []) )
303
+ forced_df = pd .DataFrame (self .get ("prv_forced_sources" ) or [] )
304
304
305
305
# use nullable integer data type to avoid converting ints to floats
306
306
# for columns in one dataframe but not the other
You can’t perform that action at this time.
0 commit comments