@@ -58,7 +58,7 @@ class SpectralIndices(NamedTuple):
5858 betas_err : np .ndarray
5959
6060
61- def combinate ( # codespell:ignore[combinate ]
61+ def combine ( # codespell:ignore[combine ]
6262 data : ArrayLike ,
6363) -> tuple [ArrayLike , ArrayLike ]:
6464 """Return all combinations of data with itself
@@ -69,8 +69,8 @@ def combinate( # codespell:ignore[combinate]
6969 Returns:
7070 Tuple[ArrayLike, ArrayLike]: Data_1 matched with Data_2
7171 """
72- ix , iy = np .triu_indices (data .shape [0 ], k = 1 )
73- idx = np .vstack ((ix , iy )).T
72+ ix , it = np .triu_indices (data .shape [0 ], k = 1 )
73+ idx = np .vstack ((ix , it )).T
7474 dx , dy = data [idx ].swapaxes (0 , 1 )
7575 return dx , dy
7676
@@ -684,7 +684,7 @@ def get_integration_time(cat: RMTable, field_col: Collection, sbid: int | None =
684684 ] * len (field_names )
685685 unique_field_names = list (set (field_names ))
686686
687- reutrn_vals = {"_id" : 0 , "SCAN_TINT" : 1 , "FIELD_NAME" : 1 , "SBID" : 1 }
687+ return_vals = {"_id" : 0 , "SCAN_TINT" : 1 , "FIELD_NAME" : 1 , "SBID" : 1 }
688688
689689 doc_count = field_col .count_documents (query )
690690
@@ -699,7 +699,7 @@ def get_integration_time(cat: RMTable, field_col: Collection, sbid: int | None =
699699 else :
700700 logger .warning ("Using SELECT=0 instead." )
701701
702- field_data = list (field_col .find (query , reutrn_vals ))
702+ field_data = list (field_col .find (query , return_vals ))
703703 tint_df = pd .DataFrame (field_data )
704704 tint_df .set_index ("FIELD_NAME" , inplace = True , drop = False )
705705
@@ -1033,7 +1033,7 @@ def main(
10331033
10341034 rmtab = RMTable ()
10351035 # Add items to main cat using RMtable standard
1036- for j , [name , typ , src , col , unit ] in enumerate (
1036+ for j , [name , typo , src , col , unit ] in enumerate (
10371037 tqdm (
10381038 zip (
10391039 columns_possum .output_cols ,
@@ -1067,7 +1067,7 @@ def main(
10671067 except KeyError as e :
10681068 logger .error (f"Island { src_id } does not have { col } " )
10691069 raise e
1070- new_col = Column (data = data , name = name , dtype = typ , unit = unit )
1070+ new_col = Column (data = data , name = name , dtype = typo , unit = unit )
10711071 rmtab .add_column (new_col )
10721072
10731073 if src == "synth" :
@@ -1076,13 +1076,13 @@ def main(
10761076 data += [comp ["rmclean_summary" ][col ]]
10771077 except KeyError :
10781078 data += [comp ["rmsynth_summary" ][col ]]
1079- new_col = Column (data = data , name = name , dtype = typ , unit = unit )
1079+ new_col = Column (data = data , name = name , dtype = typo , unit = unit )
10801080 rmtab .add_column (new_col )
10811081
10821082 if src == "header" :
10831083 for src_id , comp in comps_df .iterrows ():
10841084 data += [comp ["header" ][col ]]
1085- new_col = Column (data = data , name = name , dtype = typ , unit = unit )
1085+ new_col = Column (data = data , name = name , dtype = typo , unit = unit )
10861086 rmtab .add_column (new_col )
10871087
10881088 for selcol in tqdm (
0 commit comments