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

Modeller exception: LinkPrinting run ended with exception #449

Closed
johpiip opened this issue Mar 14, 2022 · 3 comments · Fixed by #450
Closed

Modeller exception: LinkPrinting run ended with exception #449

johpiip opened this issue Mar 14, 2022 · 3 comments · Fixed by #450
Assignees
Milestone

Comments

@johpiip
Copy link
Contributor

johpiip commented Mar 14, 2022

When using Print links from HELMET toolbox on ve0:

Modeller Exception
LinkPrinting run ended with exception: local variable 'zone_width' referenced before assignment

@johpiip
Copy link
Contributor Author

johpiip commented Mar 14, 2022

Traceback (most recent call last):
  File "inro\director\application\director.py", line 948, in __start_tool
  File "inro\director\tool\tool.py", line 123, in _run
  File "C:/helmet/helmet_41/model-systems/helmet-model-system/Scripts/helmet_link_printing.py", line 34, in run
    self()
  File "C:/helmet/helmet_41/model-systems/helmet-model-system/Scripts/helmet_link_printing.py", line 40, in __call__
    print_links(scen.get_network(), ResultsData(self.results_path))
  File "C:\helmet\helmet_41\model-systems\helmet-model-system\Scripts\utils\print_links.py", line 26, in print_links
    noise_zone_width = noisemodel.calc_noise(link)
  File "C:\helmet\helmet_41\model-systems\helmet-model-system\Scripts\utils\calc_noise.py", line 78, in calc_noise
    return zone_width
inro.director.tool.exception.RunError: LinkPrinting run ended with exception: local variable 'zone_width' referenced before assignment

@johpiip
Copy link
Contributor Author

johpiip commented Mar 14, 2022

Last one printed in ve0:

LINESTRING (25492851.0 6681520.0, 25492706.0 6681798.0)	1.198866367340088	4.666126728057861	1.7287718057632446	29.889680862426758	7.342296123504639	44.1534538269043	8.565292358398438	196.41278076171875	0.0	0.0	0.0	0.0	0.0	0.0	0.0	0.0	-1.0	-1.0	-1.0	0.0	0.0	0.0	0.0	0.0	0.0	0.0	0.0	0.0	0.0	0.0	0.0	0.0	0.03285999968647957	0.03285999968647957	0.03285999968647957	0.0	0.0	0.0	0.0	0.0	0.0	0.0	0.0	0.0	0.0	0.0	0.0	0.0	0.0	0.0	0.0	0.0	0.0	0.0	0.0	0.0	0.3100000023841858	-1.0	0	4.666126728057861	0.0	0.0	0.3100000023841858	0.3100000023841858	1.0	99	99	5

@johpiip
Copy link
Contributor Author

johpiip commented Mar 14, 2022

Links printed in #434 and #436 branches work okay but they do't try to print noise buffers.

@zptro zptro added this to the v4.1.1 milestone Apr 27, 2022
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

Successfully merging a pull request may close this issue.

2 participants