<commit_before>{% set name = "cWB" %}
{% set version = "6.4.2" %}

package:
   name: "{{ name|lower }}"
   version: "{{ version }}"

source:
   url: https://gitlab.com/gwburst/public/library/-/archive/cWB-{{ version }}_test_conda_v2/library-cWB-{{ version }}_test_conda_v2.tar.gz
   sha256: b5318a2aba3e029a3b4942d7a51d8878d6aa89dee88b34a5096a8de37dce7bad
   patches:
     # use rootcling from build env when cross-compiling
     - rootcling-cross.patch  # [build_platform != target_platform]

build:
  run_exports:
    - {{ pin_subpackage( name|lower, max_pin='x.x.x' ) }}
  error_overdepending: true
  error_overlinking: true
  number: 0
  skip: true  # [not linux]

requirements:
  build:
    - {{ compiler('c') }}
    - {{ compiler('cxx') }}
    - cmake
    - make  # [unix]
    - pkg-config  # [unix]
    - root_base  # [build_platform != target_platform]
    - sysroot_linux-64 2.17  # [linux64]
  host:
    - healpix_cxx >=3.80
    - root_base
    - libframel
    - liblal
    - liblalinspiral
    - liblalburst
    - liblalmetaio
    - liblalsimulation
  run:
    - root_base
    - tcsh

test:
  commands:
    - cwb_help
    - cwb_watenv verbose
    - ComputeWDMFourier
    - root ${CWB_ROOTLOGON_FILE} -e '.q'

about:
  home: "https://gitlab.com/gwburst/public/library"
  license: "GPL-3.0-or-later"
  license_family: GPL
  license_file: LICENSE
  summary: "cWB pipeline library"
  description: >
    Coherent network analysis is addressing the problem of detection and
    reconstruction of gravitational waves (GW) with networks of detectors.
    It has been extensively studied in the literature in application to
    detection of bursts signals, which may be produced by numerous
    gravitational wave sources in the Universe.
    In coherent methods, a statistic is built up as a coherent sum over
    detector responses.
    In general, it is expected to be more optimal (better sensitivity
    at the same false alarm rate) than the detection statistics of the
    individual detectors that make up the network.
    Also coherent methods provide estimators for the GW waveforms and
    the source coordinates in the sky.

    The method we present (called coherent WaveBurst) is significantly
    different from the traditional burst detection methods.
    Unlike coincident methods, which first identify events in individual
    detectors by using an excess power statistic and than require
    coincidence between detectors, the coherent WaveBurst method combines
    all data streams into one coherent statistic constructed in the
    framework of the constrained maximum likelihood analysis.
    Such an approach has significant advantages over the coincident methods.
    First, the sensitivity of the method is not limited by the least
    sensitive detector in the network.
    In the coherent WaveBurst method the detection is based on the maximum
    likelihood ratio statistic which represents the total signal-to-noise
    ratio of the GW signal detected in the network.
    Second, other coherent statistics, such as the null stream and the
    network correlation coefficient can be constructed to distinguish
    genuine GW signals from the environmental and instrumental artifacts.
    Finally, the source coordinates of the GW waveforms can be reconstructed.

extra:
  recipe-maintainers:
    - rhyspoulton
<commit_msg>Add existence test for lib and header<commit_after>{% set name = "cWB" %}
{% set version = "6.4.2" %}

package:
   name: "{{ name|lower }}"
   version: "{{ version }}"

source:
   url: https://gitlab.com/gwburst/public/library/-/archive/cWB-{{ version }}_test_conda_v2/library-cWB-{{ version }}_test_conda_v2.tar.gz
   sha256: b5318a2aba3e029a3b4942d7a51d8878d6aa89dee88b34a5096a8de37dce7bad
   patches:
     # use rootcling from build env when cross-compiling
     - rootcling-cross.patch  # [build_platform != target_platform]

build:
  run_exports:
    - {{ pin_subpackage( name|lower, max_pin='x.x.x' ) }}
  error_overdepending: true
  error_overlinking: true
  number: 0
  skip: true  # [not linux]

requirements:
  build:
    - {{ compiler('c') }}
    - {{ compiler('cxx') }}
    - cmake
    - make  # [unix]
    - pkg-config  # [unix]
    - root_base  # [build_platform != target_platform]
    - sysroot_linux-64 2.17  # [linux64]
  host:
    - healpix_cxx >=3.80
    - root_base
    - libframel
    - liblal
    - liblalinspiral
    - liblalburst
    - liblalmetaio
    - liblalsimulation
  run:
    - root_base
    - tcsh

test:
  commands:
    # Check library
    - test -f ${PREFIX}/lib/cwb${SHLIB_EXT}
    # Check header
    - test -f ${PREFIX}/include/cwb.hh
    # Check commands
    - cwb_help
    - cwb_watenv verbose
    - ComputeWDMFourier
    - root ${CWB_ROOTLOGON_FILE} -e '.q'

about:
  home: "https://gitlab.com/gwburst/public/library"
  license: "GPL-3.0-or-later"
  license_family: GPL
  license_file: LICENSE
  summary: "cWB pipeline library"
  description: >
    Coherent network analysis is addressing the problem of detection and
    reconstruction of gravitational waves (GW) with networks of detectors.
    It has been extensively studied in the literature in application to
    detection of bursts signals, which may be produced by numerous
    gravitational wave sources in the Universe.
    In coherent methods, a statistic is built up as a coherent sum over
    detector responses.
    In general, it is expected to be more optimal (better sensitivity
    at the same false alarm rate) than the detection statistics of the
    individual detectors that make up the network.
    Also coherent methods provide estimators for the GW waveforms and
    the source coordinates in the sky.

    The method we present (called coherent WaveBurst) is significantly
    different from the traditional burst detection methods.
    Unlike coincident methods, which first identify events in individual
    detectors by using an excess power statistic and than require
    coincidence between detectors, the coherent WaveBurst method combines
    all data streams into one coherent statistic constructed in the
    framework of the constrained maximum likelihood analysis.
    Such an approach has significant advantages over the coincident methods.
    First, the sensitivity of the method is not limited by the least
    sensitive detector in the network.
    In the coherent WaveBurst method the detection is based on the maximum
    likelihood ratio statistic which represents the total signal-to-noise
    ratio of the GW signal detected in the network.
    Second, other coherent statistics, such as the null stream and the
    network correlation coefficient can be constructed to distinguish
    genuine GW signals from the environmental and instrumental artifacts.
    Finally, the source coordinates of the GW waveforms can be reconstructed.

extra:
  recipe-maintainers:
    - rhyspoulton

{'fraction_non_alphanumeric': 0.06854897394847911, 'fraction_numerical': 0.016591471401542716, 'mean_word_length': 3.30846394984326, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3671442', 'n_tokens_mistral': 2104, 'n_tokens_neox': 1955, 'n_words': 746}