I am running the development DISCO version (the github repository) using the config.json file, cost database and OpenDSS model attached in the zip folder. (The config.json file paths for cost database, and OpenDSS model might need to be updated before running)
Steps to reproduce:
disco upgrade-cost-analysis run config.json -o output
I am seeing the following error:
2022-07-20 12:46:19,749 - ERROR [disco.cli.upgrade_cost_analysis upgrade_cost_analysis.py:232] : Unexpected error in upgrade cost analysis job=baseline_scenario
Traceback (most recent call last):
File "c:\gitrepos\disco\disco\cli\upgrade_cost_analysis.py", line 226, in run
run_job(job, config, jobs_output_dir, file_log_level)
File "c:\gitrepos\disco\disco\cli\upgrade_cost_analysis.py", line 313, in run_job
simulation.run(
File "c:\gitrepos\disco\disco\extensions\upgrade_simulation\upgrade_simulation.py", line 125, in run
determine_thermal_upgrades(
File "C:\DISCO\urbanopt-cli\example_files\python_deps\python-3.9\lib\site-packages\jade\utils\timing_utils.py", line 130, in timed_
return _timed_func(collector, func, *args, **kwargs)
File "C:\DISCO\urbanopt-cli\example_files\python_deps\python-3.9\lib\site-packages\jade\utils\timing_utils.py", line 139, in _timed_func
return func(*args, **kwargs)
File "c:\gitrepos\disco\disco\extensions\upgrade_simulation\upgrades\automated_thermal_upgrades.py", line 72, in determine_thermal_upgrades
orig_xfmrs_df = get_thermal_equipment_info(compute_loading=False, equipment_type="transformer")
File "C:\DISCO\urbanopt-cli\example_files\python_deps\python-3.9\lib\site-packages\jade\utils\timing_utils.py", line 130, in timed_
return _timed_func(collector, func, *args, **kwargs)
File "C:\DISCO\urbanopt-cli\example_files\python_deps\python-3.9\lib\site-packages\jade\utils\timing_utils.py", line 139, in _timed_func
return func(*args, **kwargs)
File "c:\gitrepos\disco\disco\extensions\upgrade_simulation\upgrades\common_functions.py", line 1004, in get_thermal_equipment_info
loading_df = get_all_transformer_info_instance(compute_loading=compute_loading, upper_limit=upper_limit)
File "c:\gitrepos\disco\disco\extensions\upgrade_simulation\upgrades\common_functions.py", line 804, in get_all_transformer_info_instance
all_df = all_df.loc[all_df["enabled"]]
File "C:\DISCO\urbanopt-cli\example_files\python_deps\python-3.9\lib\site-packages\pandas\core\indexing.py", line 931, in __getitem__
return self._getitem_axis(maybe_callable, axis=axis)
File "C:\DISCO\urbanopt-cli\example_files\python_deps\python-3.9\lib\site-packages\pandas\core\indexing.py", line 1153, in _getitem_axis
return self._getitem_iterable(key, axis=axis)
File "C:\DISCO\urbanopt-cli\example_files\python_deps\python-3.9\lib\site-packages\pandas\core\indexing.py", line 1093, in _getitem_iterable
keyarr, indexer = self._get_listlike_indexer(key, axis)
File "C:\DISCO\urbanopt-cli\example_files\python_deps\python-3.9\lib\site-packages\pandas\core\indexing.py", line 1314, in _get_listlike_indexer
self._validate_read_indexer(keyarr, indexer, axis)
File "C:\DISCO\urbanopt-cli\example_files\python_deps\python-3.9\lib\site-packages\pandas\core\indexing.py", line 1374, in _validate_read_indexer
raise KeyError(f"None of [{key}] are in the [{axis_name}]")
KeyError: "None of [Index(['Yes', 'Yes', 'Yes'], dtype='object')] are in the [index]"
I am running the development DISCO version (the github repository) using the config.json file, cost database and OpenDSS model attached in the zip folder. (The config.json file paths for cost database, and OpenDSS model might need to be updated before running)
Steps to reproduce:
disco upgrade-cost-analysis run config.json -o output
I am seeing the following error:
GitHub Issue.zip