File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33from graphnet .utilities .imports import has_torch_package
44
55from .sqlite_dataconverter import SQLiteDataConverter
6- from .sqlite_utilities import (
7- run_sql_code ,
8- save_to_sql ,
9- create_table ,
10- create_table_and_save_to_sql ,
11- )
6+ from .sqlite_utilities import create_table_and_save_to_sql
127
138if has_torch_package ():
149 from .sqlite_dataset import SQLiteDataset
Original file line number Diff line number Diff line change 2020from pisa .analysis .analysis import Analysis
2121from pisa import ureg
2222
23- from graphnet .data .sqlite import save_to_sql , create_table
23+ from graphnet .data .sqlite import create_table_and_save_to_sql
2424
2525mpl .use ("pdf" )
2626plt .rc ("font" , family = "serif" )
@@ -157,8 +157,9 @@ def fit_weights(
157157 results = results .append (data )
158158
159159 if add_to_database :
160- create_table (results .columns , weight_name , self ._database_path )
161- save_to_sql (results , weight_name , self ._database_path )
160+ create_table_and_save_to_sql (
161+ results .columns , weight_name , self ._database_path
162+ )
162163 return results .sort_values ("event_no" ).reset_index (drop = True )
163164
164165 def _make_config (
You can’t perform that action at this time.
0 commit comments