add base directory path to buffer

This commit is contained in:
Dmitry Ozerov
2020-05-07 16:41:27 +02:00
committed by Data Backend account
parent 36e73e108a
commit 65aefd1a90
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -6,6 +6,8 @@
namespace core_buffer {
const std::string BUFFER_BASE_DIR = "/gpfs/photonics/swissfel/buffer/";
const size_t MODULE_X_SIZE = 1024;
const size_t MODULE_Y_SIZE = 512;
const size_t MODULE_N_PIXELS = MODULE_X_SIZE * MODULE_Y_SIZE;
+1 -1
View File
@@ -77,7 +77,7 @@ void sf_replay (
base_pulse_id *= core_buffer::FILE_MOD;
size_t current_pulse_id = base_pulse_id;
string filename_base = device + "/" + channel_name + "/";
string filename_base = core_buffer::BUFFER_BASE_DIR + "/" + device + "/" + channel_name + "/";
for (const auto& filename_suffix:path_suffixes) {