Skip to content

cerebrum(albany version) crash during startup #18

Closed
@ghost

Description

Describe the bug

cerebrum(albany version) crash during startup

To Reproduce

Steps to reproduce the behavior:

  1. Start albany version cerebrum
  2. 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

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    Close

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions