Skip to content

ppl data from branch name with single-quotation mark cannot be extracted (ppl.profiles show the right branch name) #32

@epmmko

Description

@epmmko

Hi,
Olga (2024.2) allows a branch name with single quotation mark. Pyfas can read, but cannot extract the data of the branch with a single-quotation mark. If there is a fix please let me know. Thank you very much.
When extracting, the branch name understood by Pyfas is ended with the first single-quotation mark

ppl.profiles[6]
"PT 'SECTION:' 'BRANCH:' 'BRANCH NAME WITH ' ONE QUOTATION MARK' '(PA)' 'Pressure'\n"

ppl.extract(6)

Traceback (most recent call last):
File "", line 1, in
File "c:\winpy\wpy64-31050\python-3.10.5.amd64\lib\site-packages\pyfas\ppl.py", line 120, in extract
x_st = self.geometries[branch][0]
KeyError: 'BRANCH NAME WITH '

sanitized.key.txt
sanitized.ppl.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions