Skip to content

Non-standard schemas not accepted for lookup_tables #67

@jonoyuan

Description

@jonoyuan

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:

pybna/pybna/config.yaml

Lines 211 to 215 in 14a2766

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions