Open lixiliu opened 1 year ago
Currently, bsq object cannot be reinitialized without restarting jupyter notebook kernel. The following error occurs:
--------------------------------------------------------------------------- TypeError Traceback (most recent call last) Cell In[473], line 5 3 table = "2023-03-17-national-baseline-full" 4 workgroup = "rescore" ----> 5 bsq = BuildStockQuery(db_name=database, 6 table_name=table, 7 workgroup=workgroup, 8 buildstock_type='resstock') File [/opt/anaconda3/envs/bsb-query/lib/python3.11/site-packages/pydantic/decorator.py:40](https://file+.vscode-resource.vscode-cdn.net/opt/anaconda3/envs/bsb-query/lib/python3.11/site-packages/pydantic/decorator.py:40), in pydantic.decorator.validate_arguments.validate.wrapper_function() File [/opt/anaconda3/envs/bsb-query/lib/python3.11/site-packages/pydantic/decorator.py:134](https://file+.vscode-resource.vscode-cdn.net/opt/anaconda3/envs/bsb-query/lib/python3.11/site-packages/pydantic/decorator.py:134), in pydantic.decorator.ValidatedFunction.call() File [/opt/anaconda3/envs/bsb-query/lib/python3.11/site-packages/pydantic/decorator.py:206](https://file+.vscode-resource.vscode-cdn.net/opt/anaconda3/envs/bsb-query/lib/python3.11/site-packages/pydantic/decorator.py:206), in pydantic.decorator.ValidatedFunction.execute() File [~/Documents/GitHub/buildstock-query/buildstock_query/main.py:73](https://file+.vscode-resource.vscode-cdn.net/Users/lliu2/Documents/GitHub/resstock-analysis/visualization/~/Documents/GitHub/buildstock-query/buildstock_query/main.py:73), in BuildStockQuery.__init__(self, workgroup, db_name, table_name, buildstock_type, timestamp_column_name, building_id_column_name, sample_weight, region_name, execution_history, skip_reports) 61 self.params = BSQParams( 62 workgroup=workgroup, 63 db_name=db_name, (...) 70 execution_history=execution_history 71 ) 72 self.run_params = self.params.get_run_params() ---> 73 super().__init__(params=self.run_params) 74 #: `buildstock_query.report_query.BuildStockReport` object to perform report queries 75 self.report: BuildStockReport = BuildStockReport(self) TypeError: super(type, obj): obj must be an instance or subtype of type
Enhancement Request
Currently, bsq object cannot be reinitialized without restarting jupyter notebook kernel. The following error occurs:
Detailed Description
Possible Implementation