diff --git a/bin/plotting/pycbc_page_foreground b/bin/plotting/pycbc_page_foreground index c994cdbd28a..e5f456fd8b4 100755 --- a/bin/plotting/pycbc_page_foreground +++ b/bin/plotting/pycbc_page_foreground @@ -28,7 +28,7 @@ parser.add_argument('--use-exclusive-ifar', action='store_true', help='Indicate to use exclusive IFAR rather than ' 'inclusive. Incompatible with ' '--use-hierarchical-level.') -parser.add_argument('--use-hierarchical-level', type=int, default=None, +parser.add_argument('--use-hierarchical-level', type=int, help='Indicate which FARs to write to the table ' 'based on the number of hierarchical removals done. ' 'Choosing None defaults to giving the FARs after ' diff --git a/bin/workflows/pycbc_make_offline_search_workflow b/bin/workflows/pycbc_make_offline_search_workflow index 2fd57dbaf3a..da0db097756 100755 --- a/bin/workflows/pycbc_make_offline_search_workflow +++ b/bin/workflows/pycbc_make_offline_search_workflow @@ -708,19 +708,15 @@ for inj_file, tag in zip(inj_files, inj_tags): files_for_combined_injfind.append(file_for_injfind) # setup the matchedfilter jobs - if inj_file is None: - # datafind may be different for unknown injections - datafind_files_inj, _, analyzable_segs_inj, _ = \ - wf.setup_datafind_workflow( - workflow, - ssegs, - "datafind", - seg_file=science_seg_file, - tags=hoft_tags+ctags - ) - else: - datafind_files_inj = datafind_files - analyzable_segs_inj = analyzable_segs + # datafind may be different for unknown injections + datafind_files_inj, _, analyzable_segs_inj, _ = \ + wf.setup_datafind_workflow( + workflow, + ssegs, + "datafind", + seg_file=science_seg_file, + tags=hoft_tags+ctags + ) insps = wf.setup_matchedfltr_workflow( workflow, diff --git a/examples/search/analysis.ini b/examples/search/analysis.ini index f50d3adb4d8..7438ce0a9a0 100644 --- a/examples/search/analysis.ini +++ b/examples/search/analysis.ini @@ -189,7 +189,6 @@ loudest-keep-values = [-1:5,1:5] loudest-keep-values = [-3:5,-1:5] [coinc-injinj] -coinc-threshold = 0.0025 [sngls] trigger-cuts = newsnr:5.5:lower traditional_chisq:12:upper sigma_multiple:10:upper diff --git a/pycbc/io/hdf.py b/pycbc/io/hdf.py index 21fc2a788b5..7ef264a32c8 100644 --- a/pycbc/io/hdf.py +++ b/pycbc/io/hdf.py @@ -1297,7 +1297,7 @@ def to_coinc_xml_object(self, file_name): ligolw_utils.write_filename(outdoc, file_name) - def to_coinc_hdf_object(self, file_name, exclusive=False): + def to_coinc_hdf_object(self, file_name): ofd = HFile(file_name,'w') # Some fields are special cases diff --git a/pycbc/types/config.py b/pycbc/types/config.py index cdbf67bff95..d2d16d1cba1 100644 --- a/pycbc/types/config.py +++ b/pycbc/types/config.py @@ -249,6 +249,11 @@ def read_ini_file(self, fpath): def get_subsections(self, section_name): """Return a list of subsections for the given section name""" + if not self.has_section(section_name): + # This section does nto exist - we might hit this if we are + # using multiple tags for a section of the config (i.e. + # [section-tag-tag]) + return [] # Keep only subsection names subsections = [ sec[len(section_name) + 1:] @@ -279,10 +284,8 @@ def get_subsections(self, section_name): if len(subsections) > 0: return [sec.split("-")[0] for sec in subsections] - elif self.has_section(section_name): - return [""] else: - return [] + return [""] def perform_extended_interpolation(self): """