Skip to content

Commit 927bada

Browse files
committed
dont replace empty ignition date if estimated
1 parent eee5b0e commit 927bada

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

src/dea_burn_severity/burn_severity_processing.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff 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
)

0 commit comments

Comments
 (0)