Skip to content

Problems with printing metadata #549

@ahye

Description

@ahye

There is currently an issue with the printers (hdf5, both versions) printing metadata. Running with the ColliderBit_SLHA_scan_model (see commit 1cd893b), the yaml part

Rules:

  # Read a single SLHA file and replace some entries for each
  # iteration of the scan
  - capability: SLHAFileNameAndContent
    function: getAndReplaceSLHAContent
    options:
      SLHA_filename: "../bino_LSP.slha"
      replace_SLHA_keys:
        m1:
          - MASS;1000022;1
        m2:
          - MASS;1000011;1
          - MASS;1000013;1
          - MASS;2000011;1
          - MASS;2000013;1

results in the error

ERROR: A problem has occurred in the printer utilities.
Error creating dataset (with name: "Rule::capability: SLHAFileNameAndContent
function: getAndReplaceSLHAContent
options:
   SLHA_filename: ../bino_LSP.slha
   replace_SLHA_keys:
     m1:
       - MASS;1000022;1
     m2:
       - MASS;1000011;1
       - MASS;1000013;1
       - MASS;2000011;1
       - MASS;2000013;1::capability") in HDF5 file. Dataset with same
name may already exist
Raised at: line 289 in function hid_t
Gambit::Printers::DataSetInterfaceBase<T, RECORDRANK,
CHUNKLENGTH>::createDataSet(hid_t, const string&, const size_t*) [with T
= std::__cxx11::basic_string<char>; long unsigned int RECORDRANK = 0;
long unsigned int CHUNKLENGTH = 1; hid_t = long int; std::string =
std::__cxx11::basic_string<char>; std::size_t = long unsigned int] of
/mn/fys-server1/a9/ahye/gambit/Printers/include/gambit/Printers/printers/hdf5printer/DataSetInterfaceBase.hpp.

The problem can be suppressed by adding

print_metadata_info: false

to KeyValues.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions