Skip to content

Commit

Permalink
Rename AmpelWizard to BaseScanner
Browse files Browse the repository at this point in the history
  • Loading branch information
robertdstein committed Oct 4, 2021
1 parent 0fb1909 commit c4aa0dc
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion nuztf/ampel_magic.py → nuztf/base_scanner.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
RATELIMIT_CALLS = 10
RATELIMIT_PERIOD = 1

class AmpelWizard:
class BaseScanner:
def __init__(
self,
run_config,
Expand Down
6 changes: 3 additions & 3 deletions nuztf/gw_scanner.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from nuztf.ampel_magic import AmpelWizard
from nuztf.base_scanner import BaseScanner
from astropy.time import Time
import matplotlib.pyplot as plt
import healpy as hp
Expand Down Expand Up @@ -62,7 +62,7 @@ class RetractionError(Exception):
pass


class GravWaveScanner(AmpelWizard):
class GravWaveScanner(BaseScanner):

def __init__(
self,
Expand Down Expand Up @@ -112,7 +112,7 @@ def __init__(
self.pixel_threshold = self.find_pixel_threshold(self.data[self.key])
self.map_coords, self.pixel_nos, self.map_probs, self.ligo_nside, self.pixel_area = self.unpack_skymap()

AmpelWizard.__init__(
BaseScanner.__init__(
self,
run_config=gw_run_config,
t_min=t_min,
Expand Down
6 changes: 3 additions & 3 deletions nuztf/neutrino_scanner.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env python3
# coding: utf-8

from nuztf.ampel_magic import AmpelWizard
from nuztf.base_scanner import BaseScanner
from astropy.time import Time
import healpy as hp
import numpy as np
Expand Down Expand Up @@ -43,7 +43,7 @@
}


class NeutrinoScanner(AmpelWizard):
class NeutrinoScanner(BaseScanner):
def __init__(
self,
nu_name=None,
Expand Down Expand Up @@ -96,7 +96,7 @@ def __init__(
print(f"Coordinates: DEC = {dec[0]} ({self.dec_min} - {self.dec_max})")

self.output_path = f"{nu_candidate_output_dir}/{nu_name}.pdf"
AmpelWizard.__init__(
BaseScanner.__init__(
self,
t_min=nu_time,
run_config=nu_run_config,
Expand Down

0 comments on commit c4aa0dc

Please sign in to comment.