Skip to content

Commit

Permalink
dtype=float (#140)
Browse files Browse the repository at this point in the history
  • Loading branch information
damonge authored Aug 12, 2021
1 parent 1c0371d commit 8b95669
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
6 changes: 4 additions & 2 deletions pymaster/tests/test_covar.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,11 @@ def __init__(self):
self.nside = 64
self.nlb = 16
self.npix = hp.nside2npix(self.nside)
msk = hp.read_map("test/benchmarks/msk.fits", verbose=False)
msk = hp.read_map("test/benchmarks/msk.fits", verbose=False,
dtype=float)
mps = np.array(hp.read_map("test/benchmarks/mps.fits",
verbose=False, field=[0, 1, 2]))
verbose=False, field=[0, 1, 2],
dtype=float))
self.b = nmt.NmtBin.from_nside_linear(self.nside, self.nlb)
self.f0 = nmt.NmtField(msk, [mps[0]])
self.f2 = nmt.NmtField(msk, [mps[1], mps[2]])
Expand Down
6 changes: 4 additions & 2 deletions pymaster/tests/test_field.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,12 @@ def test_field_get_alms():
def test_field_masked():
nside = 64
b = nmt.NmtBin.from_nside_linear(nside, 16)
msk = hp.read_map("test/benchmarks/msk.fits", verbose=False)
msk = hp.read_map("test/benchmarks/msk.fits", verbose=False,
dtype=float)
mps = np.array(hp.read_map("test/benchmarks/mps.fits",
verbose=False,
field=[0, 1, 2]))
field=[0, 1, 2],
dtype=float))
mps_msk = np.array([m * msk for m in mps])
f0 = nmt.NmtField(msk, [mps[0]])
f0_msk = nmt.NmtField(msk, [mps_msk[0]],
Expand Down
8 changes: 4 additions & 4 deletions pymaster/tests/test_master.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,16 @@ def __init__(self):
self.lmax = 3*self.nside-1
self.npix = int(hp.nside2npix(self.nside))
self.msk = hp.read_map("test/benchmarks/msk.fits",
verbose=False)
verbose=False, dtype=float)
self.mps = np.array(hp.read_map("test/benchmarks/mps.fits",
verbose=False,
field=[0, 1, 2]))
field=[0, 1, 2], dtype=float))
self.mps_s1 = np.array(hp.read_map("test/benchmarks/mps_sp1.fits",
verbose=False,
field=[0, 1, 2]))
field=[0, 1, 2], dtype=float))
self.tmp = np.array(hp.read_map("test/benchmarks/tmp.fits",
verbose=False,
field=[0, 1, 2]))
field=[0, 1, 2], dtype=float))
self.b = nmt.NmtBin.from_nside_linear(self.nside, self.nlb)
self.f0 = nmt.NmtField(self.msk,
[self.mps[0]]) # Original nside
Expand Down

0 comments on commit 8b95669

Please sign in to comment.