Exemplo n.º 1
0
 def store_results(self, name):
     folder = name + '.res'
     store_conv_results(name, folder)
     w = 'w' + str(read_grid_from_file(name + ".full_res")['grid'])
     try:
         if os.path.isdir(os.path.join(name + ".conv", w, "t11",
                                       "outdata")):
             shutil.copyfile(
                 os.path.join(name + ".conv", w, "t2", "outdata",
                              "out_GSR.nc"),
                 os.path.join(folder, "out_GSR.nc"))
             shutil.copyfile(
                 os.path.join(name + ".conv", w, "t11", "outdata",
                              "out_SIGRES.nc"),
                 os.path.join(folder, "out_SIGRES.nc"))
         else:
             shutil.copyfile(
                 os.path.join(name + ".conv", w, "t9", "outdata",
                              "out_SIGRES.nc"),
                 os.path.join(folder, "out_SIGRES.nc"))
     except (OSError, IOError):  # compatibility issue
         shutil.copyfile(
             os.path.join(name + ".conv", "work_0", "task_6", "outdata",
                          "out_SIGRES.nc"),
             os.path.join(folder, "out_SIGRES.nc"))
Exemplo n.º 2
0
 def store_results(self, name):
     folder = name + '.res'
     store_conv_results(name, folder)
     w = 'w' + str(read_grid_from_file(name+".full_res")['grid'])
     try:
         shutil.copyfile(os.path.join(name+".conv", w, "t9", "outdata", "out_SIGRES.nc"),
                         os.path.join(folder, "out_SIGRES.nc"))
     except (OSError, IOError):  # compatibility issue
         shutil.copyfile(os.path.join(name+".conv", "work_0", "task_6", "outdata", "out_SIGRES.nc"),
                         os.path.join(folder, "out_SIGRES.nc"))
Exemplo n.º 3
0
 def store_results(self, name):
     folder = name + '.res'
     store_conv_results(name, folder)
Exemplo n.º 4
0
 def store_results(self, name):
     folder = name + '.res'
     store_conv_results(name, folder)
     # todo copy the final file containing the qp to folder
     raise NotImplementedError
Exemplo n.º 5
0
 def store_results(self, name):
     folder = name + '.res'
     store_conv_results(name, folder)
Exemplo n.º 6
0
 def store_results(self, name):
     folder = name + '.res'
     store_conv_results(name, folder)
     # todo copy the final file containing the qp to folder
     raise NotImplementedError