Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Thermal Network IndexError #46

Closed
tanushree04 opened this issue Nov 12, 2024 · 3 comments
Closed

Thermal Network IndexError #46

tanushree04 opened this issue Nov 12, 2024 · 3 comments

Comments

@tanushree04
Copy link
Collaborator

tanushree04 commented Nov 12, 2024

Describe the bug

Getting an error when running TN 0.3.0 using the UO CLI

...ThermalNetwork found with specified version 0.3.0
...urbanopt-ditto-reader found with specified version 0.6.4
...NREL-disco found with specified version 0.5.1
...geojson-modelica-translator found with specified version 0.8.0
[14:05:12] DEBUG system_parameter_file=WindowsPath('ghe_project_3/sys_param.json') network.py:851
DEBUG scenario_directory=WindowsPath('C:/Users/tcharan/urbanopt-cli/ghe_project_3/run/baseline_scenario') network.py:852
DEBUG geojson_file=WindowsPath('ghe_project_3/balanced_load.json') network.py:853
DEBUG output_directory=WindowsPath('C:/Users/tcharan/urbanopt-cli/ghe_project_3/run/baseline_scenario/ghe_dir') network.py:854
WARNING Mismatched ThermalNetwork versions. Could be a problem. The system_parameter.json version is 1.0, but the ThermalNetwork version is 0.3.0. network.py:736
DEBUG ghe_design_data={'method': 'AREAPROPORTIONAL', 'flow_rate': 0.2, 'flow_type': 'borehole', 'max_eft': 35.0, 'min_eft': 5.0} network.py:743
Traceback (most recent call last):
File "C:\Users\tcharan\urbanopt-cli\example_files\python_deps\python-3.10\lib\runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Users\tcharan\urbanopt-cli\example_files\python_deps\python-3.10\lib\runpy.py", line 86, in run_code
exec(code, run_globals)
File "C:\Users\tcharan\urbanopt-cli\example_files\python_deps\python-3.10\Scripts\thermalnetwork.exe_main
.py", line 7, in
File "C:\Users\tcharan\urbanopt-cli\example_files\python_deps\python-3.10\lib\site-packages\click\core.py", line 1157, in call
return self.main(*args, **kwargs)
File "C:\Users\tcharan\urbanopt-cli\example_files\python_deps\python-3.10\lib\site-packages\click\core.py", line 1078, in main
rv = self.invoke(ctx)
File "C:\Users\tcharan\urbanopt-cli\example_files\python_deps\python-3.10\lib\site-packages\click\core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "C:\Users\tcharan\urbanopt-cli\example_files\python_deps\python-3.10\lib\site-packages\click\core.py", line 783, in invoke
return __callback(*args, **kwargs)
File "C:\Users\tcharan\urbanopt-cli\example_files\python_deps\python-3.10\lib\site-packages\thermalnetwork\network.py", line 860, in run_sizer_from_cli
return run_sizer_from_cli_worker(system_parameter_file, scenario_directory, geojson_file, output_directory)
File "C:\Users\tcharan\urbanopt-cli\example_files\python_deps\python-3.10\lib\site-packages\thermalnetwork\network.py", line 748, in run_sizer_from_cli_worker
connected_features = network.get_connected_features()
File "C:\Users\tcharan\urbanopt-cli\example_files\python_deps\python-3.10\lib\site-packages\thermalnetwork\network.py", line 82, in get_connected_features
if feature["properties"]["id"] == [connected_features[0]] and feature["properties"]["type"] != "Building":
IndexError: list index out of range

To Reproduce

  • I am attaching my geojson file and sys param file.
  • The system parameter was created using the UO CLI
  • Command used to run TN:

bundle exec uo ghe_size -y .\ghe_project_3\sys_param.json -s .\ghe_project_3\baseline_scenario.csv -f .\ghe_project_3\balanced_load.json

Expected behavior

TN sizes GHE

Desktop (please complete the following information):

@tanushree04
Copy link
Collaborator Author

I manually added the "is_ghe_start_loop": true property to the junction connected to the GHE, and got past this error.

This property is not added automatically using the UO internal UI

@mitchute
Copy link
Collaborator

Thanks. Does this need to be documented on the UO repo?

@tanushree04
Copy link
Collaborator Author

Yes, added a feature request urbanopt/urbanopt-cli#491

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants