Esempio n. 1
0
        def finish(self):
                hdmr_in = HDMR(solution_name)
                hdmr_out = HDMRScanOut(solution_name)
                stat = StatFile(solution_name,hdmr_in, self.number_of_simulations)
                i = 0
                while(i<self.number_of_simulations):
                        temp = []
                        for i_cfg in range(len(self.configs)):
                                current_solution = self.post_process_queues[i_cfg].get()
                                while(os.getcwd().split("\\")[-1] == "temp"):
                                        time.sleep(0.2)

                                #ulozime pouze jednou
                                if i_cfg == 0:
                                        hdmr_in.add(current_solution.get_sobol())

                                try:
                                        temp.append(current_solution.read_depth(i_cfg)) 
                                except(IOError):
                                        temp.append("ERR")
                                        #print('nevytvoril reseni: ' + str(i) + ' pri reseni configu ' + self.configs[i])
                        hdmr_out.add(temp)
                        
                        i += 1
                
                hdmr_in.print_hdmr()
                hdmr_out.print_hdmr()
                stat.save()
Esempio n. 2
0
 def finish(self):
         hdmr_in = HDMR(solution_name)
         hdmr_out = HDMROut(solution_name)
         stat = StatFile(solution_name,hdmr_in, self.number_of_simulations)
         i = 0
         while(i<self.number_of_simulations):
                 current_solution = self.post_process_queue.get()
                 while(os.getcwd().split("\\")[-1] == "temp"):
                         time.sleep(0.2)
                 try:                  
                         hdmr_out.add([current_solution.read_depth()])
                         hdmr_in.add(current_solution.get_sobol())
                 except(IOError):
                         if self.include_err:
                                 hdmr_in.add(current_solution.get_sobol())
                                 hdmr_out.add(["ERR","err2"])
                         
                         print('nevytvoril reseni: ' + str(i))
                 
                 i += 1
         
         hdmr_in.print_hdmr()
         hdmr_out.print_hdmr()
         stat.save()