Skip to content

2-letter location codes improperly handled #34

@WayneCrawford

Description

@WayneCrawford

My stations have location code '00'. The code on line 100 of io.py splits this into "0" and "0":

    for loc in sta.location:

        # Construct location name
        if loc == "--":
            tloc = ""
        else:
            tloc = copy.copy(loc)

        ...

I got around this while still allowing the break instances in the indented part to work by changing the first line to:

    for loc in [sta.location]:

but maybe there's something more subtle in play and the developer will offer another solution

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