If a non-standard schema is specified in config.yaml for the stress lookup_tables, an error is returned when creating a new instance of pybna.Stress().
Default:
|
stress: |
|
lookup_tables: |
|
shared: "generated.stress_shared" |
|
bike_lane: "generated.stress_bike_lane" |
|
crossing: "generated.stress_crossing" |
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "pybna\pybna\stress.py", line 60, in __init__
self._create_lookup_table(*t)
File "pybna\pybna\stress.py", line 181, in _create_lookup_table
cur.copy_from(f,table,columns=[c[0] for c in columns],sep=";",null="")
psycopg2.errors.UndefinedTable: relation "stress_shared" does not exist
If a non-standard schema is specified in
config.yamlfor the stress lookup_tables, an error is returned when creating a new instance ofpybna.Stress().Default:
pybna/pybna/config.yaml
Lines 211 to 215 in 14a2766