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

Remove Observable_stat global variables #4323

Merged
merged 5 commits into from
Aug 12, 2021

Conversation

jngrad
Copy link
Member

@jngrad jngrad commented Aug 11, 2021

Partial fix for #2628

Description of changes:

  • make the Observable_stat class self-contained
  • remove the Observable_stat global variables
  • reduce code complexity

jngrad added 5 commits August 9, 2021 15:26
Reduce code complexity by centralizing the custom reduction code
into the Observable_stat class. Remove hazardous `extern int`
statements inside class methods (risk of linking errors if the
symbol name changes, prefer including the relevant header file).
Generate these observables on-demand. Move the private function
_Observable_stat_to_dict() from the .pyx file to the .pxd file.
Add the missing handle_error() guards in the Cython interface.
@jngrad jngrad added the automerge Merge with kodiak label Aug 12, 2021
@kodiakhq kodiakhq bot merged commit 9277f21 into espressomd:python Aug 12, 2021
@jngrad jngrad deleted the remove_obs_globals branch August 12, 2021 08:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants