File tree Expand file tree Collapse file tree 1 file changed +10
-15
lines changed
Expand file tree Collapse file tree 1 file changed +10
-15
lines changed Original file line number Diff line number Diff line change 7373if 'deprecated' in obs_df :
7474 # drop rows with deprecated discovery observations
7575 obs_df .query ("deprecated != 'x' and deprecated != 'X'" , inplace = True )
76- # add columns if they are not present
77- str_cols = ['trx' , 'rcv' , 'sys' , 'selAst' ]
78- for col in str_cols :
79- if col not in obs_df :
80- obs_df [col ] = str (np .nan )
81- for col in ades_column_types :
82- if col not in obs_df :
83- obs_df [col ] = np .nan
84- # remove any columns that are not in ades_column_types
85- obs_df = obs_df [ades_column_types .keys ()]
86- # if verbose:
87- # source = "MPC" if optical_obs_file is None else "file"
88- # print(f"Read in {len(obs_df)} observations from the {source}.")
89- # _ades_mode_check(obs_df)
90-
76+ # # add columns if they are not present
77+ # str_cols = ['trx', 'rcv', 'sys', 'selAst']
78+ # for col in str_cols:
79+ # if col not in obs_df:
80+ # obs_df[col] = str(np.nan)
81+ # for col in ades_column_types:
82+ # if col not in obs_df:
83+ # obs_df[col] = np.nan
84+ # # remove any columns that are not in ades_column_types
85+ # obs_df = obs_df[ades_column_types.keys()]
You can’t perform that action at this time.
0 commit comments