Maintenance will be performed on,,, and on Tuesday 22nd September 2020 starting at approximately 9am MST.It is expected to take around 15 minutes and there will be a short period of downtime towards the end of the maintenance window. Please address any comments, questions, or concerns to

Commit ff0b5b64 authored by Leo Pound Singer's avatar Leo Pound Singer

Remove explicit `object` base class from all classes

In Python 3, it is not necessary.
parent 76b76574
Pipeline #103347 passed with stages
in 94 minutes and 23 seconds
......@@ -352,7 +352,7 @@ def abs2(y):
return np.square(y.real) + np.square(y.imag)
class vectorize_swig_psd_func(object): # noqa: N801
class vectorize_swig_psd_func: # noqa: N801
"""Create a vectorized Numpy function from a SWIG-wrapped PSD function.
SWIG does not provide enough information for Numpy to determine the number
of input arguments, so we can't just use np.vectorize.
......@@ -431,7 +431,7 @@ class InterpolatedPSD(interpolate.interp1d):
class SignalModel(object):
class SignalModel:
"""Class to speed up computation of signal/noise-weighted integrals and
Barankin and Cramér-Rao lower bounds on time and phase estimation.
......@@ -41,7 +41,7 @@ _HEALPixTreeVisit = collections.namedtuple(
'HEALPixTreeVisit', 'nside ipix')
class HEALPixTree(object):
class HEALPixTree:
"""Data structure used internally by the function
......@@ -17,7 +17,7 @@ from ...util import sqlite
DATA_PATH = os.path.join(os.path.dirname(__file__), 'data')
class MockGraceDb(object):
class MockGraceDb:
"""Mock GraceDB client class that reads local data files."""
def files(self, graceid, filename):
......@@ -235,7 +235,7 @@ def _cluster(cls, pts, trials, i, seed, jobs):
return obj.bic, k, obj.kdes
class ClusteredKDE(object):
class ClusteredKDE:
def __init__(self, pts, max_k=40, trials=5, assign=None, jobs=1): = jobs
......@@ -479,7 +479,7 @@ class AllSkyAxes(AutoScaledWCSAxes):
class Astro(object):
class Astro:
_crval1 = 180
_xcoord = 'RA--'
_ycoord = 'DEC-'
......@@ -526,11 +526,11 @@ class Hours(WCSAxes):
class Aitoff(object):
class Aitoff:
_wcsprj = 'AIT'
class Mollweide(object):
class Mollweide:
_wcsprj = 'MOL'
......@@ -411,7 +411,7 @@ class ArgumentParser(argparse.ArgumentParser):
'-l', '--loglevel', action='loglevel', default='INFO')
class DirType(object):
class DirType:
"""Factory for directory arguments."""
def __init__(self, create=False):
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment