|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Path-pattern sink that writes one .npy file per frame.
More...
#include <ca-npy.H>
Public Member Functions | |
| Npy_Frame_Sink (std::filesystem::path path_pattern, const std::size_t zero_pad=6) | |
| Build an NPY frame sink. | |
| template<typename Lattice > | |
| void | accept (const std::size_t step, const Lattice &frame) |
| Write one NPY frame. | |
| void | flush () |
| NPY frames are written eagerly; this is a no-op. | |
Private Attributes | |
| std::filesystem::path | pattern_ |
| std::size_t | zero_pad_ = 6 |
|
inlineexplicit |
Write one NPY frame.
| Lattice | lattice type. |
| [in] | step | simulation step. |
| [in] | frame | frame to write. |
Definition at line 203 of file ca-npy.H.
References ah_runtime_error_if, Aleph::blossom_maximum_cardinality_matching(), Aleph::CA::format_step_path(), out, pattern_, Aleph::CA::write_npy(), and zero_pad_.
|
inline |
|
private |
|
private |