def setUpClass(cls): cls.scratch_dir = tempfile.mkdtemp(dir=ROOT, prefix='VariabilityDesignTest-') cls.starDbName = os.path.join(cls.scratch_dir, 'VariabilityInfrastructureTestStarDB.db') makeStarTestDB(filename=cls.starDbName) cls.galaxyDbName = os.path.join(cls.scratch_dir, 'VariabilityInfrastructureTestGalaxyDB.db') makeGalTestDB(filename=cls.galaxyDbName)
def setUpClass(cls): # Create test databases cls.testDB = tempfile.mktemp(dir=ROOT, prefix='PhotometryTestDatabase-', suffix='.db') makeStarTestDB(filename=cls.testDB, size=100000, seedVal=1) makeGalTestDB(filename=cls.testDB, size=100000, seedVal=1)
def setUpClass(cls): cls.dbName = tempfile.mktemp(prefix='cosmologyTestDB-', suffix=".db", dir=ROOT) cls.dbSize = 100 if os.path.exists(cls.dbName): os.unlink(cls.dbName) makeGalTestDB(size=cls.dbSize, seedVal=1, filename=cls.dbName)
def setUpClass(cls): cls.scratch_dir = tempfile.mkdtemp(dir=ROOT, prefix='VariabilityDesignTest-') cls.starDbName = os.path.join( cls.scratch_dir, 'VariabilityInfrastructureTestStarDB.db') makeStarTestDB(filename=cls.starDbName) cls.galaxyDbName = os.path.join( cls.scratch_dir, 'VariabilityInfrastructureTestGalaxyDB.db') makeGalTestDB(filename=cls.galaxyDbName)
def setUpClass(cls): # Create test databases cls.scratch_dir = tempfile.mkdtemp(dir=ROOT, prefix="astrometryUnitTest-") cls.starDBName = os.path.join(cls.scratch_dir, TEST_STAR_DATABASE) cls.galDBName = os.path.join(cls.scratch_dir, TEST_GALAXY_DATABASE) makeStarTestDB(filename=cls.starDBName, size=100000, seedVal=1, ramin=199.98*math.pi/180., dra=0.04*math.pi/180.) makeGalTestDB(filename=cls.galDBName, size=100000, seedVal=1, ramin=199.98*math.pi/180., dra=0.04*math.pi/180.)
def setUpClass(cls): cls.starDbName = 'VariabilityInfrastructureTestStarDB.db' if os.path.exists(cls.starDbName): os.unlink(cls.starDbName) makeStarTestDB(filename=cls.starDbName) cls.galaxyDbName = 'VariabilityInfrastructureTestGalaxyDB.db' if os.path.exists(cls.galaxyDbName): os.unlink(cls.galaxyDbname) makeGalTestDB(filename=cls.galaxyDbName)
def setUpClass(cls): # Create test databases if os.path.exists('PhotometryTestDatabase.db'): print("deleting database") os.unlink('PhotometryTestDatabase.db') makeStarTestDB(filename='PhotometryTestDatabase.db', size=100000, seedVal=1) makeGalTestDB(filename='PhotometryTestDatabase.db', size=100000, seedVal=1)
def setUpClass(cls): # Create test databases cls.starDBName = 'AstrometryTestStarDatabase.db' cls.galDBName = 'AstrometryTestGalaxyDatabase.db' if os.path.exists(cls.starDBName): os.unlink(cls.starDBName) makeStarTestDB(filename=cls.starDBName, size=100000, seedVal=1, ramin=199.98*math.pi/180., dra=0.04*math.pi/180.) if os.path.exists(cls.galDBName): os.unlink(cls.galDBName) makeGalTestDB(filename=cls.galDBName, size=100000, seedVal=1, ramin=199.98*math.pi/180., dra=0.04*math.pi/180.)
def setUpClass(cls): cls.dbName = 'cosmologyTestDB.db' cls.dbSize = 100 if os.path.exists(cls.dbName): os.unlink(cls.dbName) makeGalTestDB(size=cls.dbSize, seedVal=1, filename=cls.dbName)