diff --git a/sf/BerninaFormat.cpp b/sf/SfFormat.cpp similarity index 96% rename from sf/BerninaFormat.cpp rename to sf/SfFormat.cpp index 42b7a99..cc36a5b 100644 --- a/sf/BerninaFormat.cpp +++ b/sf/SfFormat.cpp @@ -7,7 +7,7 @@ using namespace std; using s_ptr = shared_ptr; -class BerninaFormat : public H5Format +class SfFormat : public H5Format { shared_ptr> input_value_type = NULL; shared_ptr> default_values = NULL; @@ -15,9 +15,9 @@ class BerninaFormat : public H5Format shared_ptr file_format = NULL; public: - ~BerninaFormat(){}; + ~SfFormat(){}; - BerninaFormat(const string& dataset_name, int n_bad_modules) + SfFormat(const string& dataset_name, int n_bad_modules) { // Input values definition type. // Which type should be the parameters you receive over the REST api. diff --git a/sf/conda-recipe/meta.yaml b/sf/conda-recipe/meta.yaml index 7b97d2c..0a33f55 100644 --- a/sf/conda-recipe/meta.yaml +++ b/sf/conda-recipe/meta.yaml @@ -1,6 +1,6 @@ package: - name: bernina_h5_writer - version: 0.0.1 + name: sf_h5_writer + version: 0.1.0 build: number: 0 @@ -23,4 +23,4 @@ requirements: about: - summary: "Bernina ZMQ to H5 writer." + summary: "SF ZMQ to H5 writer." diff --git a/sf/bernina_h5_writer.cpp b/sf/sf_h5_writer.cpp similarity index 94% rename from sf/bernina_h5_writer.cpp rename to sf/sf_h5_writer.cpp index 22f0f44..9f3345e 100644 --- a/sf/bernina_h5_writer.cpp +++ b/sf/sf_h5_writer.cpp @@ -7,13 +7,13 @@ #include "ZmqReceiver.hpp" #include "ProcessManager.hpp" -#include "BerninaFormat.cpp" +#include "SfFormat.cpp" int main (int argc, char *argv[]) { if (argc != 10) { cout << endl; - cout << "Usage: bernina_h5_writer [connection_address] [output_file] [n_frames]"; + cout << "Usage: sf_h5_writer [connection_address] [output_file] [n_frames]"; cout << " [rest_port] [user_id] [bsread_address] [n_modules] [n_bad_modules] [detector_name]" << endl; cout << "\tconnection_address: Address to connect to the stream (PULL). Example: tcp://127.0.0.1:40000" << endl; cout << "\toutput_file: Name of the output file." << endl; @@ -64,7 +64,7 @@ int main (int argc, char *argv[]) {"module_number", HeaderDataType("uint64", n_modules)} }); - BerninaFormat format(detector_name, n_bad_modules); + SfFormat format(detector_name, n_bad_modules); WriterManager writer_manager(format.get_input_value_type(), output_file, n_frames); ZmqReceiver receiver(connect_address, config::zmq_n_io_threads, config::zmq_receive_timeout, header_values);