See:
|
def unfiltered_data(self, dataframe: DataFrame): |
|
# fill missing values of MRD and MSLP in the OFCL advisory |
|
if "OFCL" in self.advisories: |
|
tracks = separate_tracks(dataframe) |
|
if all(adv in tracks for adv in ["OFCL", "CARQ"]): |
|
tracks = correct_ofcl_based_on_carq_n_hollandb(tracks) |
|
dataframe = combine_tracks(tracks) |
The separate_tracks call changes the type from object to int64, but if the condition is not satisfied (i.e. OFCL and CARQ are not in the file) then the dataframes with modified forecast_hours type is ignored.
See:
StormEvents/stormevents/nhc/track.py
Lines 1041 to 1047 in ee51dd1
The
separate_trackscall changes the type fromobjecttoint64, but if the condition is not satisfied (i.e.OFCLandCARQare not in the file) then the dataframes with modifiedforecast_hourstype is ignored.