Closed

Description
Describe the bug
cerebrum(albany version) crash during startup
To Reproduce
Steps to reproduce the behavior:
- Start albany version cerebrum
- cerebrum crash
Expected behavior
start up in normal
Screenshots
N/A
Log Information
(.venv-albany) wuwenxiangs-MacBook-Pro:cerebrum wuwenxiang$ python main.py
2022-07-26 03:53:09 | ERROR | unable to fetch data from database
Traceback (most recent call last):
File "/Users/wuwenxiang/local/github-openv2x/cerebrum/main.py", line 2, in <module>
from transform_driver.app import App
File "/Users/wuwenxiang/local/github-openv2x/cerebrum/transform_driver/app.py", line 20, in <module>
from post_process_algo import post_process
File "/Users/wuwenxiang/local/github-openv2x/cerebrum/post_process_algo/post_process.py", line 236, in <module>
_generate_transformation_info()
File "/Users/wuwenxiang/local/github-openv2x/cerebrum/post_process_algo/post_process.py", line 217, in _generate_transformation_info
"epsg:4326", choose_epsg(rsu_info[rsu]["pos"]["lon"])
TypeError: string indices must be integers
(Pdb) p rsu_info
{'R328328': {'pos': '{"lon": 118.840897, "lat": 31.88335}', 'bias_x': 0.0, 'bias_y': 0.0, 'rotation': 0.0, 'reverse': 0, 'scale': 0.09}}
(Pdb) p rsu_info[rsu]["pos"]["lon"]
*** TypeError: string indices must be integers
(Pdb) p rsu
'R328328'
(Pdb) p rsu_info[rsu]
{'pos': '{"lon": 118.840897, "lat": 31.88335}', 'bias_x': 0.0, 'bias_y': 0.0, 'rotation': 0.0, 'reverse': 0, 'scale': 0.09}
(Pdb) p rsu_info[rsu]["pos"]
'{"lon": 118.840897, "lat": 31.88335}'
(Pdb) p rsu_info[rsu]["pos"]["lon"]
*** TypeError: string indices must be integers
(Pdb) import json
(Pdb) json.loads(rsu_info[rsu]["pos"])
{'lon': 118.840897, 'lat': 31.88335}
Desktop (please complete the following information):
- OS: N/A
- Browser: N/A
- Version: albany
Additional context
Add any other context about the problem here.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Close