Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reading a pfs file with embedded string, e.g. 'hello ''to'' the world' #446

Closed
ecomodeller opened this issue Oct 12, 2022 · 1 comment
Closed
Labels
bug Something isn't working

Comments

@ecomodeller
Copy link
Member

Describe the bug
Reading a pfs file with embedded strings changes the formatting to a format not accepted by Mike Zero

To Reproduce
Example text:

[ECOLAB_MODULE]
    [DERIVED_VARIABLES]
        [DERIVED_VARIABLE_106]
            Touched = 0
            name = 'alfa_PC_T'
            type = 0
            dimension = 3
            description = 'alfa_PC_T, ''light'' adjusted alfa_PC, ugC/gC*m2/uE'
            EUM_type = 999
            EUM_unit = 0
            unit = 'ugC/gC*m2/uE'
            ID = 597
        EndSect  // DERIVED_VARIABLE_106
    EndSect
EndSect
>>> import mikeio
>>> mikeio.__version__
'1.2.0'
>>> pfs = mikeio.read_pfs("tiny.m3fm")
>>> pfs.write("tiny_out.m3fm")

Expected behavior
Intact quoting of embedded string

Screenshots
image

System information:

  • Python 3.10.6
  • MIKE IO version 1.2.0
@ecomodeller ecomodeller added the bug Something isn't working label Oct 12, 2022
@ecomodeller
Copy link
Member Author

Fixed by #448

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant