IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 37317


Ignore:
Timestamp:
Aug 27, 2014, 5:18:00 AM (12 years ago)
Author:
bills
Message:

minor hacks to exptime/expnum stamp implementation. stack_path_base is
only defined if stack is calibrated. Otherwise use path_base. Proper fix
is to deal with this in the parser (Job.pm)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tags/ipp-pv3-20140717/pstamp/scripts/pstamp_job_run.pl

    r37262 r37317  
    244244
    245245        # if stage is stack deal with EXP and NUM images if selected by running ppstamp again
    246         if ($stage eq 'stack' and ($options & ($PSTAMP_SELECT_EXP | $PSTAMP_SELECT_NUM))) {
     246        if (!$exitStatus and $stage eq 'stack' and ($options & ($PSTAMP_SELECT_EXP | $PSTAMP_SELECT_NUM))) {
    247247            # XXX Here I am assuming that nothing relevant gets added to $argString
    248248            # Need to check
    249249            my $roiArgs = $params->{job_args};
    250             my $pathBase = "$params->{stack_path_base}.unconv";
     250
     251            # XXX: define expnum and exptime input images in the params file so that we don't have to
     252            # make assumptions about the file rules here
     253            my $pathBase = $params->{stack_path_base};
     254            $pathBase = $params->{path_base} unless defined $pathBase;
     255            unless (defined $pathBase) {
     256                my_die("stack path base undefined found when creating exp or expnum image", $job_id, $PS_EXIT_PROG_ERROR);
     257            }
     258            $pathBase .= ".unconv";
    251259            my $tmpBase = "$outputBase.TMP";
    252260            # nocompress because exp image gets corrupted if we do
Note: See TracChangeset for help on using the changeset viewer.