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

Errors when running lj_liquid_structurefactor.py with v4.2.2 #5009

Closed
wants to merge 1 commit into from

Conversation

Zitzeronion
Copy link
Contributor

The arguments of system.analysis.structure_factor() needed to be named to run the script without error message otherwise the error was:

pypresso samples/lj_liquid_structurefactor.py

=======================================================
=              lj_liquid_structurefactor.py           =
=======================================================

Traceback (most recent call last):
  File "/home/szitz/espresso-v422/samples/lj_liquid_structurefactor.py", line 80, in <module>
    structurefactor_bins = len(system.analysis.structure_factor())
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "script_interface.pyx", line 476, in espressomd.script_interface.ScriptInterfaceHelper.generate_caller.template_method
  File "script_interface.pyx", line 172, in espressomd.script_interface.PScriptInterface.call_method
RuntimeError: Parameter 'sf_order' is missing.

Fixes #

Description of changes:

The arguments of `system.analysis.structure_factor()` needed to be named to run the script without error message otherwise the error was:

```shell
pypresso samples/lj_liquid_structurefactor.py

=======================================================
=              lj_liquid_structurefactor.py           =
=======================================================

Traceback (most recent call last):
  File "/home/szitz/espresso-v422/samples/lj_liquid_structurefactor.py", line 80, in <module>
    structurefactor_bins = len(system.analysis.structure_factor())
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "script_interface.pyx", line 476, in espressomd.script_interface.ScriptInterfaceHelper.generate_caller.template_method
  File "script_interface.pyx", line 172, in espressomd.script_interface.PScriptInterface.call_method
RuntimeError: Parameter 'sf_order' is missing.
```
@Zitzeronion Zitzeronion closed this Nov 4, 2024
@Zitzeronion
Copy link
Contributor Author

My error wrong espresso version ... v4.3

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.

1 participant