ModernElectron / WarpX

Modern Electron's WarpX repository serves as both a fork of the WarpX code (an advanced electromagnetic Particle-In-Cell code - see https://ecp-warpx.github.io) and the repository for a set of tools used in simulating thermionic devices (mewarpx).
https://mewarpx.readthedocs.io/en/latest/index.html
Other
0 stars 1 forks source link

fluxdata.ckpt files are written directly vs copied #139

Closed peterscherpelz closed 2 years ago

peterscherpelz commented 2 years ago

Previously, they were copied from fluxdata.dpkl files, but it was possible for those files to be moved after being written and before being copied.

Also fixed one variable error and standardized some formatting.

This is intended to fix this error:

Traceback (most recent call last):
  File "/home/me_user/.local/lib/python3.8/site-packages/pywarpx/callbacks.py", line 90, in __call__
    tt = self.callfuncsinlist(*args,**kw)
  File "/home/me_user/.local/lib/python3.8/site-packages/pywarpx/callbacks.py", line 229, in callfuncsinlist
    f(*args,**kw)
  File "/merunset/WarpX/mewarpx/mewarpx/diags_store/checkpoint_diagnostic.py", line 90, in checkpoint_manager
    raise RuntimeError(
RuntimeError: diags/fluxes/fluxdata.dpkl not found but is needed for checkpoint.
codecov-commenter commented 2 years ago

Codecov Report

Merging #139 (6172120) into memaster (f77cb92) will increase coverage by 0.01%. The diff coverage is 92.85%.

Impacted file tree graph

@@             Coverage Diff              @@
##           memaster     #139      +/-   ##
============================================
+ Coverage     78.67%   78.69%   +0.01%     
============================================
  Files            29       29              
  Lines          3649     3643       -6     
============================================
- Hits           2871     2867       -4     
+ Misses          778      776       -2     
Impacted Files Coverage Δ
mewarpx/mewarpx/diags_store/flux_diagnostic.py 85.55% <91.66%> (+0.04%) :arrow_up:
mewarpx/mewarpx/_version.py 100.00% <100.00%> (ø)
...warpx/mewarpx/diags_store/checkpoint_diagnostic.py 96.77% <100.00%> (+4.66%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update f77cb92...6172120. Read the comment docs.