# Path: sourcefinder/testutil/data.py
# DATAPATH = os.environ.get('TKP_TESTPATH', DEFAULT)
# 
# Path: sourcefinder/testutil/decorators.py
# def requires_data(*args):
#     for filename in args:
#         if not os.path.exists(filename):
#             return unittest.skip("Test data (%s) not available" % filename)
#     return lambda func: func


import gc
import os
import unittest
import sourcefinder.accessors.fitsimage
import sourcefinder.image as image
import sourcefinder.utility.coordinates as coords
from sourcefinder.testutil.data import DATAPATH
from sourcefinder.testutil.decorators import requires_data
"""
Tests for simulated LOFAR datasets.
"""




# The simulation code causes a factor of 2 difference in the
# measured flux.
FUDGEFACTOR = 0.5

corrected_fits = os.path.join(DATAPATH, 'corrected-all.fits')
observed_fits = os.path.join(DATAPATH, 'observed-all.fits')

# Path: sourcefinder/testutil/data.py
# DATAPATH = os.environ.get('TKP_TESTPATH', DEFAULT)
# 
# Path: sourcefinder/testutil/decorators.py
# def requires_data(*args):
#     for filename in args:
#         if not os.path.exists(filename):
#             return unittest.skip("Test data (%s) not available" % filename)
#     return lambda func: func


# Path: test/test_L15_12h_const.py
import gc
import os
import unittest
import sourcefinder.accessors.fitsimage
import sourcefinder.image as image
import sourcefinder.utility.coordinates as coords
from sourcefinder.testutil.data import DATAPATH
from sourcefinder.testutil.decorators import requires_data

"""
Tests for simulated LOFAR datasets.
"""




# The simulation code causes a factor of 2 difference in the
# measured flux.
FUDGEFACTOR = 0.5

corrected_fits = os.path.join(DATAPATH, 'corrected-all.fits')
observed_fits = os.path.join(DATAPATH, 'observed-all.fits')

all_fits = os.path.join(DATAPATH, 'model-all.fits')