Skip to content

Commit

Permalink
Use ternary to set SI and SIM_OFFSET_Z for proseco
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanconn committed Jan 17, 2019
1 parent 473a313 commit 78e19bd
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions starcheck/src/lib/Ska/Starcheck/Obsid.pm
Original file line number Diff line number Diff line change
Expand Up @@ -2750,13 +2750,10 @@ sub proseco_args{
if ((not $targ_cmd) or (not $cat_cmd) or ($self->{obsid} =~ /NONE(\d+)/)){
return \%proseco_args;
}
# Use a default SI (which should only be used for ERs and should have no effect without fid lights)
my $si = 'ACIS-S';
my $offset = 0;
if ($self->{obsid} < 38000){
$si = $self->{SI};
$offset = $self->{SIM_OFFSET_Z};
}
# Use a default SI and offset for ERs (no effect without fid lights)
my $is_OR = $self->{obsid} < $ER_MIN_OBSID;
my $si = $is_OR ? $self->{SI} : 'ACIS-S';
my $offset = $is_OR ? $self->{SIM_OFFSET_Z} : 0;

my @acq_ids;
my @acq_indexes;
Expand Down

0 comments on commit 78e19bd

Please sign in to comment.