Skip to content

Commit

Permalink
Fix imports so all tests pass
Browse files Browse the repository at this point in the history
This includes a bug-fix in axisman that would only activate with old
numpy.
  • Loading branch information
mhasself committed Apr 30, 2020
1 parent 43a239e commit 2c6c0b4
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions sotodlib/core/axisman.py
Original file line number Diff line number Diff line change
Expand Up @@ -641,6 +641,7 @@ def get_coindices(v0, v1):
pass

# The old fashioned way
v0 = np.asarray(v0)
w0 = sorted([(j, i) for i, j in enumerate(v0)])
w1 = sorted([(j, i) for i, j in enumerate(v1)])
i0, i1 = 0, 0
Expand Down
4 changes: 2 additions & 2 deletions sotodlib/g3_condition.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import scipy.signal as signal

from spt3g import core
from sotodlib.g3_core import DataG3Module
from sotodlib.core.g3_core import DataG3Module

class MeanSubtract(DataG3Module):
def process(self, data, det_name):
Expand Down Expand Up @@ -102,7 +102,7 @@ def __init__(self, input='signal', output=None, q=5, **kwargs):
kwargs: can include any of the optional parameters for
scipy.signal.decimate
"""
self.decimate_params = {'q':q}
self.decimate_params = {'q': q, 'zero_phase': True}
self.decimate_params.update(kwargs)

super().__init__(input, output)
Expand Down
2 changes: 1 addition & 1 deletion sotodlib/g3_filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import scipy.signal as signal

from spt3g import core
from sotodlib.g3_core import DataG3Module
from sotodlib.core.g3_core import DataG3Module

class Filter(DataG3Module):
"""
Expand Down
2 changes: 1 addition & 1 deletion sotodlib/g3_sim.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import numpy as np

from spt3g import core
from sotodlib.g3_core import DataG3Module
from sotodlib.core.g3_core import DataG3Module


class PipelineSeeder(list):
Expand Down
2 changes: 1 addition & 1 deletion tests/test_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import numpy as np
from spt3g import core

from sotodlib.g3_core import DataG3Module
from sotodlib.core.g3_core import DataG3Module
from sotodlib.g3_filter import Filter, LowPassButterworth
from sotodlib.g3_condition import (Detrend, Retrend, MeanSubtract,
MedianSubtract, Decimate, Resample)
Expand Down

0 comments on commit 2c6c0b4

Please sign in to comment.