def export(app, local, no_scrub): """Export the experiment data to a zip archive on your local computer, and by default, to Amazon S3.""" log(header, chevrons=False) try: data.export(str(app), local=local, scrub_pii=(not no_scrub)) except data.S3BucketUnavailable: log("Your local export completed normally, but you don't have an " "Amazon S3 bucket accessible for a remote export. " "Either add an S3 bucket, or run with the --local option to " 'avoid this warning. Run "dallinger export -h" for more details.')
def export(self): # Data export created, then removed after test[s] from dallinger.data import export path = export(self.exp_id, local=True) yield path os.remove(path)
def retrieve_data(self): """Retrieves and saves data from a running experiment""" local = False if self.exp_config.get('mode') == 'debug': local = True filename = export(self.app_id, local=local) logger.debug('Data exported to %s' % filename) return Data(filename)
def export(app, local, no_scrub): """Export the data.""" log(header, chevrons=False) data.export(str(app), local=local, scrub_pii=(not no_scrub))
def export(app, local, no_scrub): """Export the data.""" print_header() data.export(str(app), local=local, scrub_pii=(not no_scrub))