Changeset 29194
- Timestamp:
- Sep 22, 2010, 12:50:41 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/ippToPsps/perl/ippToPsps/Batch.pm (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippToPsps/perl/ippToPsps/Batch.pm
r29191 r29194 21 21 my $class = shift; 22 22 my $self = { 23 _camera => shift, 24 _gpc1Db => shift, 23 25 _batchId => shift, 24 26 _ippToPspsDb => shift, … … 110 112 } 111 113 112 # create a new batch entry in the database114 # create a new batch entry in the database 113 115 $self->{_batchId} = $self->{_ippToPspsDb}->createNewBatch( 114 116 $self->{_expId}, … … 119 121 ); 120 122 121 # use IPP dist_group to get PSPS survey type123 # use IPP dist_group to get PSPS survey type 122 124 $self->{_surveyType} = $self->getSurveyTypeFromDistGroup(); 123 125 124 # can we run ippToPsps?126 # can we run ippToPsps? 125 127 $self->{_ippToPsps} = can_run('ippToPsps') or 126 128 (warn "Can't find 'ippToPsps' program" and exit($PS_EXIT_CONFIG_ERROR)); 127 129 128 # get ipp config stuff 129 $self->{_ipprc} = PS::IPP::Config->new($self->{_camera}) or 130 (warn "Can't get camera configuration" and exit($PS_EXIT_CONFIG_ERROR)); 131 132 # set up batch output paths 130 # set up batch output paths 133 131 $self->init(); 134 132 135 # make directories133 # make directories 136 134 unless(-d $self->{_typeDir}) {mkdir($self->{_typeDir}, 0777);} 137 135 unless(-d $self->{_subDir}) {mkdir($self->{_subDir}, 0777);} … … 150 148 sub init { 151 149 my ($self) = @_; 150 151 # get ipp config stuff 152 if (defined $self->{_camera}) { 153 154 $self->{_ipprc} = PS::IPP::Config->new($self->{_camera}) or 155 (warn "Can't get camera configuration" and exit($PS_EXIT_CONFIG_ERROR)); 156 } 152 157 153 158 $self->{_name} = sprintf("B%08d", $self->{_batchId}); … … 198 203 if (defined $self->{_dvoPath} ) {$command .= " -D CATDIR $self->{_dvoPath}";} 199 204 $command .= " -config ../config"; # TODO 200 $command .= " -expid $self->{_expId}";205 $command .= " -expid $self->{_expId}"; 201 206 $command .= " -expname $self->{_expName}"; 202 207 $command .= " -survey $self->{_surveyType}";
Note:
See TracChangeset
for help on using the changeset viewer.
