Skip to content

Commit

Permalink
update average and max/min when converting to new area type
Browse files Browse the repository at this point in the history
  • Loading branch information
struan committed Dec 11, 2023
1 parent 1223d4f commit df639aa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hub/transformers.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ def create_data_for_new_con(self, old_dt, df):
},
)
dt.data_set.areas_available.add(self.new_con_at)
dt.update_average()
dt.update_max_min()

def convert_datatype_to_new_geography(self, dt):
df = self.get_df_from_datatype(dt)
Expand Down

0 comments on commit df639aa

Please sign in to comment.