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

fix issue if glob_params is not int #48

Closed
wants to merge 1 commit into from
Closed

Conversation

maurerle
Copy link

Hi,
I want to parse the yaml files from the AMIRIS examples repository:
https://gitlab.com/dlr-ve/esy/amiris/examples/-/blob/v2.1.0/Germany2019/scenario.yaml?ref_type=tags#L503

We have an include like this in there:
Contracts: !include ["contracts/*.yaml", "Contracts"]

where the last string is not of any further meaning - I can not change these files either.

Currently, this gives a ValueError as it is tried to be read as an integer.
I can confirm that this was working in the 1.x version?

So it would be very cool to have this workaround included! :)

This is needed to parse includes like:

`Contracts: !include ["contracts/*.yaml", "Contracts"]` where the last string is not of any further meaning
maurerle added a commit to assume-framework/assume that referenced this pull request Sep 11, 2024
maurerle added a commit to assume-framework/assume that referenced this pull request Sep 11, 2024
tanbro pushed a commit that referenced this pull request Sep 22, 2024
ValueError raised when maxpath in sequence params is not an integer string
@tanbro
Copy link
Owner

tanbro commented Sep 22, 2024

Thanks for the PR!

Codes of the PR picked in commit da96563

@tanbro tanbro closed this Sep 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants