Skip to content

propagate config into the Bank class; fix broken metata in xml and add config...

Chad Hanna requested to merge xml-output-fix into main

propagate config into the Bank class; fix broken metata in xml and add config to process params in xml

This addresses concerns raised by Marco Meyer to fix broken metadata in the output XML files. This patch does not add additional columns to the XML but rather relies on the process parameters table to convey additional information. An example of the XML output is here

        <Table Name="process_params:table">
                <Column Name="param" Type="lstring"/>
                <Column Name="process:process_id" Type="int_8s"/>
                <Column Name="program" Type="lstring"/>
                <Column Name="type" Type="lstring"/>
                <Column Name="value" Type="lstring"/>
                <Stream Name="process_params:table" Delimiter="," Type="Local">
                        "--output-xml",0,"/usr/local/bin/manifold_cbc_bank_to_xml","lstring","blah.xml",
                        "--verbose",0,"/usr/local/bin/manifold_cbc_bank_to_xml",,,
                        "--args",0,"/usr/local/bin/manifold_cbc_bank_to_xml","lstring","GW190514_bank.h5",
                        "--M",0,"/usr/local/bin/manifold_cbc_bank_to_xml","int_8s","0",
                        "--M",0,"/usr/local/bin/manifold_cbc_bank_to_xml","int_8s","1000",
                        "--approximant",0,"/usr/local/bin/manifold_cbc_bank_to_xml","lstring","IMRPhenomD",
                        "--chi",0,"/usr/local/bin/manifold_cbc_bank_to_xml","real_8","-0.2",
                        "--chi",0,"/usr/local/bin/manifold_cbc_bank_to_xml","real_8","0.2",
                        "--freq",0,"/usr/local/bin/manifold_cbc_bank_to_xml","int_8s","10",
                        "--freq",0,"/usr/local/bin/manifold_cbc_bank_to_xml","int_8s","512",
                        "--instrument",0,"/usr/local/bin/manifold_cbc_bank_to_xml","lstring","H1",
                        "--m1",0,"/usr/local/bin/manifold_cbc_bank_to_xml","int_8s","7",
                        "--m1",0,"/usr/local/bin/manifold_cbc_bank_to_xml","int_8s","200",
                        "--m2",0,"/usr/local/bin/manifold_cbc_bank_to_xml","int_8s","7",
                        "--m2",0,"/usr/local/bin/manifold_cbc_bank_to_xml","int_8s","200",
                        "--max-duration",0,"/usr/local/bin/manifold_cbc_bank_to_xml","int_8s","128",
                        "--max-num-templates",0,"/usr/local/bin/manifold_cbc_bank_to_xml","int_8s","1",
                        "--mc",0,"/usr/local/bin/manifold_cbc_bank_to_xml","int_8s","0",
                        "--mc",0,"/usr/local/bin/manifold_cbc_bank_to_xml","int_8s","1000",
                        "--min-coord-vol",0,"/usr/local/bin/manifold_cbc_bank_to_xml","real_8","0.0001",
                        "--min-depth",0,"/usr/local/bin/manifold_cbc_bank_to_xml","int_8s","7",
                        "--mm",0,"/usr/local/bin/manifold_cbc_bank_to_xml","real_8","0.03",
                        "--ns-mass",0,"/usr/local/bin/manifold_cbc_bank_to_xml","real_8","0",
                        "--ns-mass",0,"/usr/local/bin/manifold_cbc_bank_to_xml","real_8","3",
                        "--ns-s1z",0,"/usr/local/bin/manifold_cbc_bank_to_xml","real_8","-0.05",
                        "--ns-s1z",0,"/usr/local/bin/manifold_cbc_bank_to_xml","real_8","0.05",
                        "--output-h5",0,"/usr/local/bin/manifold_cbc_bank_to_xml","lstring","GW190514_bank_unconstrained.h5",
                        "--psd-xml",0,"/usr/local/bin/manifold_cbc_bank_to_xml","lstring","O4_projected_psds.xml.gz",
                        "--q",0,"/usr/local/bin/manifold_cbc_bank_to_xml","real_8","0.99",
                        "--q",0,"/usr/local/bin/manifold_cbc_bank_to_xml","real_8","5",
                        "--reuse-g-mm",0,"/usr/local/bin/manifold_cbc_bank_to_xml","real_8","0.1",
                        "--trim",0,"/usr/local/bin/manifold_cbc_bank_to_xml",,,
                </Stream>

Merge request reports

Loading