def save(self, saveto, args, initialize=True):
        def ensembleTable(write, e):
            def write_wrapper(data, dates, tablename, initialize, skipsave):
                return write(data, dates, tablename, initialize, e)
            return write_wrapper
        for e in range(self.nens):
            model = self.models[e]
            if getattr(model.writeToDB, 'func_name') is not 'write_wrapper':
                # decorate function to add ensemble information
                model.writeToDB = ensembleTable(model.writeToDB, e + 1)
            if saveto == "db":
                if e > 0:
                    initialize = False
                model.save(saveto, args, initialize)
            else:
                if e < 1:
                    if os.path.isdir(saveto):
                        shutil.rmtree(saveto)
                    elif os.path.isfile(saveto):
                        os.remove(saveto)
                    os.makedirs(saveto)
                model.save(saveto + "/{0}".format(e + 1), args, False)
Returns a list of versions for a module.
dataset/ETHPy150Open nasa/RHEAS/src/ensemble.py/Ensemble.save--crossover with--dataset/ETHPy150Open GoogleCloudPlatform/python-compat-runtime/appengine-compat/exported_appengine_sdk/google/appengine/api/request_info.py/Dispatcher.get_versions