Exemplo n.º 1
0
def list_imported_outputs():
    """
    List outputs which were imported from a file, not calculated from a job
    """
    outputs = models.Output.objects.filter(
        oq_job__hazard_calculation__description__contains=' importer, file ')
    engine.print_outputs_summary(outputs)
Exemplo n.º 2
0
def list_imported_outputs():
    """
    List outputs which were imported from a file, not calculated from a job
    """
    jobs = [jp.job.id for jp in models.JobParam.objects.filter(
            value__contains=' importer, file ', name='description')]
    outputs = models.Output.objects.filter(oq_job__in=jobs)
    engine.print_outputs_summary(outputs)
Exemplo n.º 3
0
def list_imported_outputs():
    """
    List outputs which were imported from a file, not calculated from a job
    """
    jobs = [
        jp.job.id for jp in models.JobParam.objects.filter(
            value__contains=' importer, file ',
            name='description',
            job__user_name=getpass.getuser())
    ]
    outputs = models.Output.objects.filter(oq_job__in=jobs)
    engine.print_outputs_summary(outputs)
Exemplo n.º 4
0
def list_imported_outputs():
    """
    List outputs which were imported from a file, not calculated from a job
    """
    outputs = models.Output.objects.filter(oq_job__isnull=True)
    engine.print_outputs_summary(outputs)
Exemplo n.º 5
0
def list_imported_outputs():
    """
    List outputs which were imported from a file, not calculated from a job
    """
    outputs = models.Output.objects.filter(oq_job__isnull=True)
    engine.print_outputs_summary(outputs)