Skip to content

Make XMILE operator parsing case-insensitive#464

Merged
enekomartinmartinez merged 4 commits intoSDXorg:devfrom
benslavin:xmile-case-insensitive-operators
Mar 14, 2025
Merged

Make XMILE operator parsing case-insensitive#464
enekomartinmartinez merged 4 commits intoSDXorg:devfrom
benslavin:xmile-case-insensitive-operators

Conversation

@benslavin
Copy link
Copy Markdown
Contributor

@benslavin benslavin commented Feb 26, 2025

Description

This updates parsing of XMILE documents to support operators regardless of case. This is in accordance with the spec.

Prior to this update, only lowercase operators ("and" and "or" specifically) were supported via the translator.

Note that this PR depends on a new test case added to the SDXorg/test-models repo.

Related issues

Type of change

  • Bug fix (non-breaking change which fixes an issue)

PR verification (to be filled by reviewers)

  • The code follows the PEP 8 style
  • The new code has been tested properly for all the possible cases
  • The overall coverage has not dropped and other features have not been broken.
  • If new features have been added, they have been properly documented
  • docs/whats_new.rst has been updated
  • PySD version has been updated

@enekomartinmartinez
Copy link
Copy Markdown
Collaborator

Hi @benslavin

Thanks for the contribution! And sorry for the delay in answering, I have limited time to dedicate to PySD now and sometimes I take more time than I would like.

I have accepted your changes to the test-models repo. Could you please locally switch the subfolder to main, pull the changes and commit the new version of test-models in this PR?

@enekomartinmartinez enekomartinmartinez changed the base branch from master to dev March 14, 2025 10:44
@benslavin
Copy link
Copy Markdown
Contributor Author

Hi @enekomartinmartinez

No worries on the delay. I appreciate you staying involved!

Thanks for merging the test. I've updated the submodule ref and pushed to the PR, so it should be ready for your review.

@enekomartinmartinez enekomartinmartinez merged commit 6caabb2 into SDXorg:dev Mar 14, 2025
8 checks passed
enekomartinmartinez pushed a commit that referenced this pull request Mar 23, 2025
* Make XMILE operator parsing case-insensitive

* Updating What's New and bumping version.

* Update submodule test-models to SDXorg/test-models@21aab02 (latest)
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