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

Issue 115 raise an error if input parameter has a wrong numerical value #134

Open
wants to merge 22 commits into
base: master
Choose a base branch
from

Conversation

jerabekjak
Copy link
Member

No description provided.

@jerabekjak jerabekjak self-assigned this Oct 3, 2022
@jerabekjak jerabekjak linked an issue Oct 3, 2022 that may be closed by this pull request
@jerabekjak

This comment was marked as outdated.

smoderp2d/exceptions.py Outdated Show resolved Hide resolved
@jerabekjak jerabekjak marked this pull request as ready for review November 4, 2022 13:34
@jerabekjak
Copy link
Member Author

jerabekjak commented Nov 4, 2022

@jerabekjak jerabekjak removed the request for review from kavkapet November 9, 2022 09:39
Copy link
Member

@landam landam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See also few broken tests.

""" Exception raised if a parameter reaches a wrong numeric value
"""
def __init__(self,param, value, limit):
self.msg = "Parameter '{}' has a wrong value ({} > {}).".format(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wrong or large?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"{} parameter value is too large ({} > {})"

smoderp2d/providers/base/data_preparation.py Show resolved Hide resolved
Logger.info('{} parameter values checked.'.format(name))


def _set_output_data(self):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

where is this new method called?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess it is more of a rhetoric question, but the answer is nowhere (at least at this moment).

smoderp2d/exceptions.py Outdated Show resolved Hide resolved
smoderp2d/exceptions.py Outdated Show resolved Hide resolved
smoderp2d/exceptions.py Outdated Show resolved Hide resolved
smoderp2d/exceptions.py Outdated Show resolved Hide resolved
@landam
Copy link
Member

landam commented Jun 24, 2024

@jerabekjak Are you planning to work on this PR?

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.

Raise an error if input parameter has a wrong numerical value
3 participants