Skip to content

Commit

Permalink
pycbc modules and a couple of missed bins
Browse files Browse the repository at this point in the history
  • Loading branch information
GarethCabournDavies committed Jan 8, 2025
1 parent 62c7e94 commit e8e7f04
Show file tree
Hide file tree
Showing 12 changed files with 4 additions and 15 deletions.
2 changes: 1 addition & 1 deletion bin/all_sky_search/pycbc_coinc_statmap_inj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ The program combines coincident output files generated
by pycbc_coinc_findtrigs to generated a mapping between SNR and FAP, along
with producing the combined foreground and background triggers
"""
import argparse, logging, copy, pycbc.io, numpy
import argparse, logging, pycbc.io, numpy
from pycbc.events import significance
import pycbc.conversions as conv
from pycbc import init_logging
Expand Down
1 change: 0 additions & 1 deletion bin/workflows/pycbc_make_faithsim_workflow
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ and generate files containing the match between them and plots.
"""

import pycbc.workflow as wf
import logging
import argparse

from pycbc import add_common_pycbc_options, init_logging
Expand Down
2 changes: 1 addition & 1 deletion pycbc/cosmology.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

import logging
import numpy
from scipy import interpolate, integrate
from scipy import interpolate
import astropy.cosmology
from astropy import units
from astropy.cosmology.core import CosmologyError
Expand Down
2 changes: 1 addition & 1 deletion pycbc/detector/ground.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
import os
import logging
import numpy as np
from numpy import cos, sin, pi
from numpy import cos, sin

import lal
from astropy.time import Time
Expand Down
1 change: 0 additions & 1 deletion pycbc/events/threshold_cupy.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
import functools
import mako.template
from .eventmgr import _BaseThresholdCluster
import pycbc.scheme

val = None
loc = None
Expand Down
1 change: 0 additions & 1 deletion pycbc/fft/cupyfft.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
for the PyCBC package.
"""

import logging
import cupy.fft
from .core import _check_fft_args
from .core import _BaseFFT, _BaseIFFT
Expand Down
2 changes: 0 additions & 2 deletions pycbc/inference/sampler/dynesty.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,11 @@
import numpy
import dynesty, dynesty.dynesty, dynesty.nestedsamplers
from pycbc.pool import choose_pool
from dynesty import utils as dyfunc
from pycbc.inference.io import (DynestyFile, validate_checkpoint_files,
loadfile)
from .base import (BaseSampler, setup_output)
from .base_mcmc import get_optional_arg_from_config
from .base_cube import setup_calls
from .. import models


#
Expand Down
2 changes: 0 additions & 2 deletions pycbc/types/array_cupy.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@
"""
import cupy as cp
from pycbc.types.array import common_kind, complex128, float64
from scipy.linalg import blas
from pycbc.types import real_same_precision_as

def zeros(length, dtype=cp.float64):
return cp.zeros(length, dtype=dtype)
Expand Down
1 change: 0 additions & 1 deletion pycbc/waveform/generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
from . import ringdown
from . import supernovae
from . import waveform_modes
from pycbc import transforms
from pycbc.types import TimeSeries
from pycbc.waveform import parameters
from pycbc.waveform.utils import apply_fseries_time_shift, taper_timeseries, \
Expand Down
1 change: 0 additions & 1 deletion pycbc/workflow/grb_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
http://pycbc.org/pycbc/latest/html/workflow.html
"""

import glob
import os
import logging
import numpy as np
Expand Down
3 changes: 1 addition & 2 deletions pycbc/workflow/injection.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,10 @@

import logging
import os.path
import configparser as ConfigParser

from pycbc.workflow.core import FileList, make_analysis_dir, Node
from pycbc.workflow.core import Executable, resolve_url_to_file
from pycbc.workflow.jobsetup import (LalappsInspinjExecutable,
from pycbc.workflow.jobsetup import (
PycbcCreateInjectionsExecutable, select_generic_executable)

logger = logging.getLogger('pycbc.workflow.injection')
Expand Down
1 change: 0 additions & 1 deletion pycbc/workflow/jobsetup.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@

import math, os
import igwn_segments as segments
import lal
from pycbc.workflow.core import Executable, File, FileList, Node

def int_gps_time_to_str(t):
Expand Down

0 comments on commit e8e7f04

Please sign in to comment.