def create_pilot_data_from_dict(cls, pd_dict): pd = PilotData() for i in pd_dict.keys(): pd.__setattr__(i, pd_dict[i]) pd.initialize_pilot_data() logger.debug("created pd " + str(pd)) return pd
def create_pilot_data_from_dict(cls, ps_dict): ps = PilotData() for i in ps_dict.keys(): ps.__setattr__(i, ps_dict[i]) ps.initialize_pilot_data() logger.debug("created ps " + str(ps)) return ps