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

Show the legal value range #45

Open
JunCEEE opened this issue Jul 3, 2024 · 0 comments
Open

Show the legal value range #45

JunCEEE opened this issue Jul 3, 2024 · 0 comments

Comments

@JunCEEE
Copy link
Collaborator

JunCEEE commented Jul 3, 2024

  File "/beegfs/desy/user/juncheng/SFX/johan/r01/./SFX.py", line 15, in <module>
    cdc.parameters["number_of_diffraction_patterns"] = 1
  File "/gpfs/exfel/data/user/juncheng/libpyvinyl/libpyvinyl/Parameters/Collections.py", line 131, in __setitem__
    self.parameters[key].value = value
  File "/gpfs/exfel/data/user/juncheng/libpyvinyl/libpyvinyl/Parameters/Parameter.py", line 259, in value
    raise ValueError("Value of parameter '" + self.name + "' illegal.")
ValueError: Value of parameter 'number_of_diffraction_patterns' illegal.

Here it's better to show the legal value range, instead of only a prompt.

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

No branches or pull requests

1 participant