Exemple #1
0
    def __init__(self):
        DBCommandLine.__init__(self, EnsembleConstructor = ResultsDBQuery)
        self.prompt = "| spg-results :::~ "
        
        self.possible_keys = set( [ "table_depth", "expand_dirs", "raw_data", "split_colums", "restrict_by_val", "prefix", "n_rows", "plot_x_label", "plot_y_label", "plot_x_scale", "plot_y_scale", "plot_x_min", "plot_x_max", "plot_y_min", "plot_y_max", "split_columns"] )
        self.output_column = []
        self.table_depth = 1
        self.n_rows = 3
        self.expand_dirs = True 
        self.raw_data = False
        self.split_columns = False
        self.restrict_by_val = False # was True
        self.prefix = "output_"

        self.plot_x_label = ""
        self.plot_y_label = ""
        self.plot_x_scale = "linear"
        self.plot_y_scale = "linear"
        self.plot_x_min = None
        self.plot_x_max = None
        self.plot_y_min = None
        self.plot_y_max = None

        self.autoscale = None

        self.figures = {}
Exemple #2
0
 def do_load(self,c):
     """loads a results_database"""
     DBCommandLine.do_load(self, c)
     self.output_column = self.current_param_db.output_column['results'][:]
     
     os.chdir( self.current_param_db.path )