lib/transient.py
def saveas_csv(self, directory=None):  # todo: implement dynamic paramter choosing option
        """ creates a directory inside the given directory where it will save all data in csv format."""
        if directory is None:
            directory = utils.choose_folder('C:/Users/sagustss/py_code/DATA')
        save_dir = directory + '/' + self.series_name + '_' + self.key_parameter + '/'
        if os.path.exists(save_dir):
            n = 1
            new_save_dir = save_dir + '_1'
            while True:
                if os.path.exists(new_save_dir):
                    n += 1
                    new_save_dir = new_save_dir.split('_')[0] + '_' + str(n)
                else:
                    save_dir = new_save_dir
        os.makedirs(save_dir)
        self.update_transients_metadata()
        for item in self.transients:
            item.export_file_csv(save_dir)
 creates a directory inside the given directory where it will save all data in csv format.
creates a directory inside the given directory where it will save all data in csv format.
creates a directory inside the given directory where it will save all data in csv format .
def saveas_csv(self, directory=None):  
        if directory is None:
            directory = utils.choose_folder('C:/Users/sagustss/py_code/DATA')
        save_dir = directory + '/' + self.series_name + '_' + self.key_parameter + '/'
        if os.path.exists(save_dir):
            n = 1
            new_save_dir = save_dir + '_1'
            while True:
                if os.path.exists(new_save_dir):
                    n += 1
                    new_save_dir = new_save_dir.split('_')[0] + '_' + str(n)
                else:
                    save_dir = new_save_dir
        os.makedirs(save_dir)
        self.update_transients_metadata()
        for item in self.transients:
            item.export_file_csv(save_dir)
def saveas_csv ( self , directory = None ) : if directory is None : directory = utils . choose_folder ( 'C:/Users/sagustss/py_code/DATA' ) save_dir = directory + '/' + self . series_name + '_' + self . key_parameter + '/' if os . path . exists ( save_dir ) : n = 1 new_save_dir = save_dir + '_1' while True : if os . path . exists ( new_save_dir ) : n += 1 new_save_dir = new_save_dir . split ( '_' ) [ 0 ] + '_' + str ( n ) else : save_dir = new_save_dir os . makedirs ( save_dir ) self . update_transients_metadata ( ) for item in self . transients : item . export_file_csv ( save_dir )
creates a directory inside the given directory where it will save all data in csv format.
creates a directory inside the given directory where it will save all data in csv format .
# todo: implement dynamic paramter choosing option """ creates a directory inside the given directory where it will save all data in csv format."""
self
directory