IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 33644 for trunk/ippTasks


Ignore:
Timestamp:
Mar 30, 2012, 3:12:38 PM (14 years ago)
Author:
bills
Message:

Use a different script when restoring camera stage destreak runs
than regular reverts

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTasks/destreak.pro

    r32537 r33644  
    317317  host         local
    318318  periods      -poll 5
    319   periods      -exec 120.
     319  periods      -exec 120
    320320  periods      -timeout 120
    321321  npending     1
     
    427427        set.workdir.by.camera $CAMERA $COMPONENT $OUTROOT $default_host WORKDIR
    428428    end
    429     sprintf logfile "%s/%s.mds.revert.%s.%s.%s.log" $WORKDIR $EXP_ID $MAGIC_DS_ID $STAGE_ID $COMPONENT
    430 
    431     $run = magic_destreak_revert.pl --magic_ds_id $MAGIC_DS_ID --camera $CAMERA --stage $STAGE --stage_id $STAGE_ID --component $COMPONENT --path_base $PATH_BASE --cam_path_base $CAM_PATH_BASE --cam_reduction $CAM_REDUCTION --outroot $WORKDIR --logfile $logfile --replace $REPLACE --bothways $BOTHWAYS --magicked $MAGICKED --run-state $RUN_STATE --recovery_path_base $RECOVERY_PATH_BASE
    432 
     429
     430    if (("$RUN_STATE" == "goto_restored") && ("$STAGE" == "camera"))
     431
     432        sprintf logfile "%s.dsrestore.log" $PATH_BASE
     433
     434        $run = destreak_restore_camera.pl --magic_ds_id $MAGIC_DS_ID --camera $CAMERA  --cam_id $STAGE_ID --path_base $PATH_BASE --dbname $DBNAME --logfile $logfile
     435
     436    else
     437        sprintf logfile "%s/%s.mds.revert.%s.%s.%s.log" $WORKDIR $EXP_ID $MAGIC_DS_ID $STAGE_ID $COMPONENT
     438        $run = magic_destreak_revert.pl --magic_ds_id $MAGIC_DS_ID --camera $CAMERA --stage $STAGE --stage_id $STAGE_ID --component $COMPONENT --path_base $PATH_BASE --cam_path_base $CAM_PATH_BASE --cam_reduction $CAM_REDUCTION --outroot $WORKDIR --logfile $logfile --replace $REPLACE --bothways $BOTHWAYS --magicked $MAGICKED --run-state $RUN_STATE --recovery_path_base $RECOVERY_PATH_BASE
     439    end
    433440    add_standard_args run
    434441
Note: See TracChangeset for help on using the changeset viewer.