示例#1
0
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.')
示例#2
0
    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)
示例#3
0
 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)
示例#4
0
def export(app, local, no_scrub):
    """Export the data."""
    log(header, chevrons=False)
    data.export(str(app), local=local, scrub_pii=(not no_scrub))
示例#5
0
def export(app, local, no_scrub):
    """Export the data."""
    print_header()
    data.export(str(app), local=local, scrub_pii=(not no_scrub))