Skip to content

Commit

Permalink
Moved more stuff and updated unit tests to point to test data.
Browse files Browse the repository at this point in the history
  • Loading branch information
kiyo-masui committed Aug 9, 2011
1 parent ff822db commit f9d095a
Show file tree
Hide file tree
Showing 239 changed files with 11,228 additions and 16 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Expand Up @@ -15,7 +15,7 @@
nfreq = 10
dims = (ntimes, npol, ncal, nfreq)

test_fits_file_name = 'testfile_GBTfits.fits'
test_fits_file_name = 'testdata/testfile_GBTfits.fits'

def standard_data_test(utest_case) :
"""Encapsulates a few tests on TestDB.data.
Expand Down
2 changes: 1 addition & 1 deletion python_km/core/test_fitsGBT.py → core/test_fitsGBT.py
Expand Up @@ -17,7 +17,7 @@
import kiyopy.custom_exceptions as ce

# This fits file generated by the script make_test_GBT_fits_file.py
fits_test_file_name = 'testfile_GBTfits.fits'
fits_test_file_name = 'testdata/testfile_GBTfits.fits'
# This file has known properties:
IF_set = (695, 725)
scan_set = (17, 18)
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions python_km/map/test_dirty_map.py → map/test_dirty_map.py
Expand Up @@ -153,6 +153,7 @@ def setUp(self) :
self.pars = { "dm_output_root" : "./testoutput_",
'dm_file_middles' : ("testfile_GBTfits",),
'dm_input_end' : ".fits",
'dm_input_root' : "testdata/",
'dm_scans' : (),
'dm_IFs' : (0,),
'dm_field_centre' : (325.0, 0.0),
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Expand Up @@ -11,7 +11,7 @@
from core import fitsGBT
import kiyopy.custom_exceptions as ce

testfile = "testfile_GBTfits.fits"
testfile = "testdata/testfile_GBTfits.fits"

class TestWindowedPower(unittest.TestCase) :

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Expand Up @@ -16,7 +16,7 @@
data_file_name = (os.getenv('GBT10B_DATA') +
'/01_wigglez22hr_azel_17-24.raw.acs.fits')
# '04_wigglez1hr_azel_113-120.raw.acs.fits')
test_file_name = './testfile_GBTfits.fits'
test_file_name = './testdata/testfile_GBTfits.fits'
# Some parameters of GBT spectrometer data. These are assumed to be
# correct with only minimal checking.
npol = 4 # number of polarizations
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
11,211 changes: 11,211 additions & 0 deletions testdata/testfile_GBTfits.fits

Large diffs are not rendered by default.

File renamed without changes.
Expand Up @@ -28,7 +28,7 @@
# Parameters relevant for all modules that inherit from this one.
base_params = {
# IO:
'input_root' : './',
'input_root' : './testdata/',
# The unique part of every fname
'file_middles' : ("testfile_GBTfits",),
'input_end' : ".fits",
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Expand Up @@ -18,7 +18,7 @@ def nothing_to_do(self, Data) :


input_parameters = {
'nt_input_root' : './testfile_GBTfits',
'nt_input_root' : './testdata/testfile_GBTfits',
'nt_file_middles' : ("",),
'nt_input_end' : ".fits",
'nt_output_root' : "./temp_test_",
Expand Down
Expand Up @@ -9,7 +9,7 @@
from time_stream import cal_scale, rebin_freq, hanning
from core import data_block, fitsGBT

test_file = 'testfile_GBTfits.fits'
test_file = 'testdata/testfile_GBTfits.fits'

class TestCalScale(unittest.TestCase) :

Expand Down
Expand Up @@ -11,7 +11,7 @@
from core import fitsGBT, data_block
import calibrate, rebin_freq

test_filename = 'testfile_GBTfits.fits'
test_filename = 'testdata/testfile_GBTfits.fits'

class TestMultipyFunction(unittest.TestCase) :

Expand Down
Expand Up @@ -9,7 +9,7 @@
from time_stream import combine_cal, rebin_freq, hanning
from core import data_block, fitsGBT

test_file = 'testfile_GBTfits.fits'
test_file = 'testdata/testfile_GBTfits.fits'

class TestCombineCal(unittest.TestCase) :

Expand Down
Expand Up @@ -14,7 +14,7 @@
from time_stream import hanning
from core import data_block, fitsGBT

test_file = 'testfile_GBTfits.fits'
test_file = 'testdata/testfile_GBTfits.fits'

class TestFlagData(unittest.TestCase) :

Expand Down
Expand Up @@ -11,7 +11,7 @@
import pol_cal
import rotate_pol

test_file = 'testfile_GBTfits.fits'
test_file = 'testdata/testfile_GBTfits.fits'
test_mueler_file = 'mueller_params_calc.txt'
n_pointings = 10 # Known property of test_file. Per scan.

Expand Down
Expand Up @@ -12,7 +12,7 @@
import core.data_block
import core.fitsGBT

test_file = 'testfile_GBTfits.fits'
test_file = 'testdata/testfile_GBTfits.fits'

class TestFunctions(unittest.TestCase) :
"""Since these operations actually changes the data, these are only sanity
Expand Down
Expand Up @@ -12,7 +12,7 @@
import rotate_pol
import combine_cal

test_file = 'testfile_GBTfits.fits'
test_file = 'testdata/testfile_GBTfits.fits'

class TestFlag(unittest.TestCase) :

Expand Down
Expand Up @@ -9,7 +9,7 @@
from time_stream import rotate_pol
from core import data_block, fitsGBT

test_file = 'testfile_GBTfits.fits'
test_file = 'testdata/testfile_GBTfits.fits'

class TestRotate(unittest.TestCase) :

Expand Down
Expand Up @@ -11,7 +11,7 @@
import stitch_windows_crude as swc
from core import data_block, fitsGBT

test_file = 'testfile_GBTfits.fits'
test_file = 'testdata/testfile_GBTfits.fits'

class TestStitchWindowsCrude(unittest.TestCase) :

Expand Down
Expand Up @@ -13,7 +13,7 @@
import rotate_pol


test_file = 'testfile_GBTfits.fits'
test_file = 'testdata/testfile_GBTfits.fits'
n_pointings = 10 # Known property of test_file. Per scan.

class TestSubMap(unittest.TestCase) :
Expand Down

0 comments on commit f9d095a

Please sign in to comment.