Ejemplo n.º 1
0
from ismartcsv import read_file, read_folder

filename = "./assets/data/uvw/uvwD20191009T220158.csv"
foldername = "./assets/data/uvw/"
config_file = "./assets/configurations/uvw_config.yaml"

dfile = read_file(filename, config_file)
dfolder = read_folder(foldername, config_file)

# dfile.plot()
# dfolder.plot()
Ejemplo n.º 2
0
 def setUp(self):
     self.folder_name = "./assets/data/uvw/"
     self.config_filename = "./assets/configurations/uvw_config.yaml"
     self.datafolder = read_folder(self.folder_name,self.config_filename)
Ejemplo n.º 3
0
 def test_folder_interpolator(self):
     dfolder = read_folder(self.foldername,self.config_filename)
     interp = dfolder.get_interpolator()
     self.assertEqual(interp.__name__,'folder_interp_func')
Ejemplo n.º 4
0
 def test_folder_interp_dimensions(self):
     dfolder = read_folder(self.foldername,self.config_filename)
     interp = dfolder.get_interpolator()
     temp_dfolder = interp(np.arange(2,20,1))
     self.assertEqual(len(temp_dfolder),len(np.arange(2,20,1)))
Ejemplo n.º 5
0
 def test_instances(self):
     dfile = read_file(self.filename,self.config_filename)
     # dfile.plot()
     dfolder = read_folder(self.foldername,self.config_filename)
     self.assertIsInstance(dfile,datafile)
     self.assertIsInstance(dfolder,datafolder)