Commit cb0f5752 authored by Giovanni La Mura's avatar Giovanni La Mura
Browse files

Require file extension if using precomputed TFRFME data

parent 4d104a69
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -291,7 +291,7 @@ void frfme(string data_file, string output_path) {
      str_target = file_lines[last_read_line++];
      str_target = file_lines[last_read_line++];
      if (str_target.size() > 12) {
      if (str_target.size() > 12) {
	if (str_target.substr(0, 12).compare("PRECOMPUTED=") == 0) {
	if (str_target.substr(0, 12).compare("PRECOMPUTED=") == 0) {
	  string precomp_name = output_path + "/" + str_target.substr(12, str_target.size()) + ".hd5";
	  string precomp_name = output_path + "/" + str_target.substr(12, str_target.size());
	  // TODO: check that the file exists and it is suitable for the calculation.
	  // TODO: check that the file exists and it is suitable for the calculation.
	  message = "INFO: using precomputed file " + precomp_name + "\n";
	  message = "INFO: using precomputed file " + precomp_name + "\n";
	  logger.log(message);
	  logger.log(message);