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

Allowing brackets and spaces in parameters name #1052

Merged
merged 13 commits into from
Apr 20, 2022
Merged

Conversation

germa89
Copy link
Collaborator

@germa89 germa89 commented Apr 19, 2022

Close #1050

== Final additions ==

After working on this, I also did some improvements:

  • Allowing brackets, spaces, undescore, and % signs in the parameter name.
  • If using brakets, it checks also the part of the name (omitting indexing part)
  • Added parameter name check to 'mapdl.dim' and parameters.__setitem__.
  • Added context manager for full output (PARMS, _PARMS, PARMS_). We should be also able to retrieve _PARMS_.
  • Moving unit tests from mapdl to parameters.
  • Extend and simplify unit tests.

@germa89 germa89 added BUG BLOCKER No further development until this is fixed labels Apr 19, 2022
@germa89 germa89 added this to the v0.61.3 milestone Apr 19, 2022
@germa89 germa89 self-assigned this Apr 19, 2022
germa89 added 8 commits April 19, 2022 23:51
Adding parameter name check to mapdl.dim
Moving unit tests from mapdl to parameters.
Added context manager for full output (PARMS, _PARMS, PARMS_)

Added parameter name check when using parameters.__setitem__
@codecov
Copy link

codecov bot commented Apr 20, 2022

Codecov Report

Merging #1052 (69ab7ea) into main (2212894) will increase coverage by 0.15%.
The diff coverage is 95.45%.

@@            Coverage Diff             @@
##             main    #1052      +/-   ##
==========================================
+ Coverage   71.32%   71.48%   +0.15%     
==========================================
  Files          43       43              
  Lines        6086     6127      +41     
==========================================
+ Hits         4341     4380      +39     
- Misses       1745     1747       +2     

@germa89
Copy link
Collaborator Author

germa89 commented Apr 20, 2022

@akaszynski I'm merging without review. Anyway, please fill free to have a look. We can do a hot fix if needed.

@germa89 germa89 merged commit 7bf4a0b into main Apr 20, 2022
@germa89 germa89 deleted the fix/array-indexing-error branch April 20, 2022 11:39
germa89 added a commit that referenced this pull request Apr 20, 2022
* Fixing array indexing issue.

* Improving unit tests

* Adding % and improving unit tests

* Fixing tests

* Improving comments

* Improving indexing detection during parameter name check.

Adding parameter name check to mapdl.dim

* Improving parameter retrieving

* Adding unit tests.
Moving unit tests from mapdl to parameters.

* Added documentation

Added context manager for full output (PARMS, _PARMS, PARMS_)

Added parameter name check when using parameters.__setitem__

* Adding parameters.__setitem__ to tests.

* fixing parameter name in context manager.

* Fixing unit tests

* Fixing codacity warnings.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BLOCKER No further development until this is fixed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Brackets and spaces not allowed when defining parameters
1 participant