File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -66,6 +66,10 @@ def process_single_fire(
6666 )
6767
6868 fire_date : Any | None = attributes .get ("ignition_date" )
69+
70+ #this attribute is for the output shape, we want to retain empty value if value is none
71+ output_ig_date = fire_date
72+
6973 # use
7074 if not fire_date :
7175 fallback_raw = self ._first_valid_value (
@@ -343,8 +347,8 @@ def process_single_fire(
343347 if fire_id is not None :
344348 aggregated ["fire_id" ] = fire_id
345349 aggregated ["fire_name" ] = fire_name_value
346- aggregated ["ignition_date" ] = fire_date
347- aggregated ["extinguish_date" ] = extinguish_date
350+ aggregated ["ignition_date" ] = output_ig_date
351+ # aggregated["extinguish_date"] = extinguish_date
348352 fire_id_for_save , vector_filename = self ._build_vector_filename (
349353 fire_series = fire_series , attributes = attributes , fallback_slug = fire_slug
350354 )
You can’t perform that action at this time.
0 commit comments