Changeset 41597
- Timestamp:
- May 18, 2021, 2:20:37 PM (5 years ago)
- Location:
- tags/ipp-ps1-20210510
- Files:
-
- 21 edited
-
. (modified) (1 prop)
-
Nebulous-Server/bin/neb-host (modified) (1 diff)
-
ippTasks/nightly_science.pro (modified) (1 diff)
-
ippTasks/summit.copy.pro (modified) (2 diffs)
-
ippTools (modified) (1 prop)
-
ippTools/src (modified) (1 prop)
-
ippTools/src/pztool.c (modified) (4 diffs)
-
ippTools/src/pztool.h (modified) (1 diff)
-
ippTools/src/pztoolConfig.c (modified) (1 diff)
-
ppTranslate/src/ppMops.h (modified) (1 diff)
-
psastro (modified) (1 prop)
-
psastro/src/psastroLoadCrosstalk.c (modified) (1 diff)
-
psconfig (modified) (1 prop)
-
psconfig/pscheckmods (modified) (3 diffs)
-
psconfig/tagsets/ipp-3.0.perl (modified) (1 diff)
-
pstamp/scripts/dquery_job_run.pl (modified) (2 diffs)
-
pstamp/scripts/dqueryparse.pl (modified) (2 diffs)
-
pstamp/scripts/pstamp_job_run.pl (modified) (1 diff)
-
pstamp/scripts/pstamp_server_status (modified) (1 diff)
-
tools (modified) (1 prop)
-
tools/croot (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
tags/ipp-ps1-20210510
- Property svn:mergeinfo changed
/trunk (added) merged: 41579,41582-41590,41594-41595
- Property svn:mergeinfo changed
-
tags/ipp-ps1-20210510/Nebulous-Server/bin/neb-host
r35887 r41597 25 25 # $dbpass = $ENV{'NEB_PASS'} unless $dbpass; 26 26 27 my $conffile = "/home/panstarrs/ipp/ippconfig/nebulous.config"; 27 # my $conffile = "/data/ippc64.1/ippitc/ippconfig/nebulous.config"; 28 # my $conffile = "/home/panstarrs/ipp/ippconfig/nebulous.config"; 29 my $conffile = "/home/panstarrs/ippps1/ippconfig/nebulous.config"; 30 28 31 if (-e $conffile) { 29 32 # printf STDERR "found config\n"; -
tags/ipp-ps1-20210510/ippTasks/nightly_science.pro
r39361 r41597 111 111 112 112 if ($?camera_map:$2) 113 if ( $camera_map:$2!= "$3")113 if ("$camera_map:$2" != "$3") 114 114 echo "camera $3 does not match expected camera $camera_map:$2" 115 115 break -
tags/ipp-ps1-20210510/ippTasks/summit.copy.pro
r39520 r41597 24 24 25 25 # list of DataStores to pull data from 26 book init pzDataStore26 # book init pzDataStore 27 27 # list of summit exps that need to be queried 28 28 book init pzPendingExp … … 155 155 task.exit 0 156 156 # flush pzDataStore book 157 #book init pzDataStore157 book init pzDataStore 158 158 # convert 'stdout' to book format 159 159 ipptool2book stdout pzDataStore -key camera:telescope -uniq -setword dbname $options:0 -
tags/ipp-ps1-20210510/ippTools
- Property svn:mergeinfo changed
/trunk/ippTools (added) merged: 41582,41594-41595
- Property svn:mergeinfo changed
-
tags/ipp-ps1-20210510/ippTools/src
- Property svn:mergeinfo changed
/trunk/ippTools/src (added) merged: 41582,41594-41595
- Property svn:mergeinfo changed
-
tags/ipp-ps1-20210510/ippTools/src/pztool.c
r39519 r41597 49 49 static bool updatepzexpMode(pxConfig *config); 50 50 static bool updatenewexpMode(pxConfig *config); 51 static bool updatesummitExpMode(pxConfig *config); 51 52 52 53 // static bool copydoneCompleteExp(pxConfig *config); … … 54 55 static psArray *pzArrayZip(psArray *arraySet, psS64 limit); 55 56 static bool pzDownloadExpSetState(pxConfig *config, const psS64 summit_id, const char *state); 57 static bool summitExpSetFault(pxConfig *config, const psS64 summit_id, const int fault); 56 58 57 59 # define MODECASE(caseName, func) \ … … 88 90 MODECASE(PZTOOL_MODE_UPDATEPZEXP, updatepzexpMode); 89 91 MODECASE(PZTOOL_MODE_UPDATENEWEXP, updatenewexpMode); 92 MODECASE(PZTOOL_MODE_UPDATESUMMITEXP, updatesummitExpMode); 90 93 default: 91 94 psAbort("invalid option (this should not happen)"); … … 933 936 } 934 937 938 static bool summitExpSetFault(pxConfig *config, const psS64 summit_id, const int fault) 939 { 940 // check that state is a valid string value 941 if ((fault < 0) || (fault > 2048)) { 942 psError(PS_ERR_UNKNOWN, false, 943 "invalid summitExp fault: %d", fault); 944 return false; 945 } 946 947 char *query = "UPDATE summitExp SET fault = %d WHERE summit_id = %ld"; 948 if (!p_psDBRunQueryF(config->dbh, query, fault, summit_id)) { 949 psError(PS_ERR_UNKNOWN, false, "failed to change state for %lld", (long long) summit_id); 950 return false; 951 } 952 953 return true; 954 } 955 956 static bool updatesummitExpMode(pxConfig *config) 957 { 958 int fault; 959 960 PS_ASSERT_PTR_NON_NULL(config, false); 961 PXOPT_LOOKUP_S64(summit_id, config->args, "-summit_id", true, false); 962 PXOPT_LOOKUP_S32(state, config->args, "-set_fault",true, false); 963 964 if (!summitExpSetFault(config,summit_id, fault)) { 965 psError(PS_ERR_UNKNOWN, false, "failed to change state for %lld", (long long) summit_id); 966 return false; 967 } 968 return true; 969 } 970 971 935 972 static bool updatepzexpMode(pxConfig *config) 936 973 { -
tags/ipp-ps1-20210510/ippTools/src/pztool.h
r30353 r41597 39 39 PZTOOL_MODE_UPDATEPZEXP, 40 40 PZTOOL_MODE_UPDATENEWEXP, 41 PZTOOL_MODE_UPDATESUMMITEXP, 41 42 } pztoolMode; 42 43 -
tags/ipp-ps1-20210510/ippTools/src/pztoolConfig.c
r39519 r41597 171 171 psMetadataAddStr(updatepzexpArgs, PS_LIST_TAIL, "-set_state", 0, "define new state (required)", NULL); 172 172 173 // -updatesummitexp 174 psMetadata *updatesummitexpArgs = psMetadataAlloc(); 175 psMetadataAddS64(updatesummitexpArgs, PS_LIST_TAIL, "-summit_id", 0, "define summit_id", 0); 176 psMetadataAddStr(updatesummitexpArgs, PS_LIST_TAIL, "-exp_name", 0, "search by exposure name (required)", NULL); 177 psMetadataAddStr(updatesummitexpArgs, PS_LIST_TAIL, "-inst", 0, "search by camera (required)", NULL); 178 psMetadataAddStr(updatesummitexpArgs, PS_LIST_TAIL, "-telescope", 0, "search by telescope (required)", NULL); 179 psMetadataAddS32(updatesummitexpArgs, PS_LIST_TAIL, "-set_fault", 0, "define new fault (required)", 0); 180 173 181 // -updatenewexp 174 182 psMetadata *updatenewexpArgs = psMetadataAlloc(); -
tags/ipp-ps1-20210510/ppTranslate/src/ppMops.h
r40582 r41597 12 12 //#define SOURCE_MASK2 (PM_SOURCE_MODE2_DIFF_WITH_DOUBLE | PM_SOURCE_MODE2_ON_SPIKE | PM_SOURCE_MODE2_ON_STARCORE | PM_SOURCE_MODE2_ON_BURNTOOL | PM_SOURCE_MODE2_ON_CONVPOOR) // Flags2 to exclude 13 13 #define SOURCE_MASK2 (PM_SOURCE_MODE2_DEFAULT) //Flags2 to exclude 14 //#define SOURCE_MASK2 (PM_SOURCE_MODE2_SATSTAR_PROFILE) //Flags2 to exclude 14 15 15 16 #define PS1_DV_FORMAT "PS1_DV%d" -
tags/ipp-ps1-20210510/psastro
- Property svn:mergeinfo changed
/trunk/psastro (added) merged: 41590
- Property svn:mergeinfo changed
-
tags/ipp-ps1-20210510/psastro/src/psastroLoadCrosstalk.c
r41591 r41597 409 409 if (!(X == crossChip)) { 410 410 psTrace ("psastro.crosstalk",2,"Chip (%d%d) not a known crosstalk source.",X,Y); 411 psLogMsg ("psastro", PS_LOG_INFO, "Chip (%d%d) not a known crosstalk source.",X,Y);412 411 continue; 413 412 } -
tags/ipp-ps1-20210510/psconfig
- Property svn:mergeinfo changed
/trunk/psconfig (added) merged: 41583
- Property svn:mergeinfo changed
-
tags/ipp-ps1-20210510/psconfig/pscheckmods
r40672 r41597 7 7 shift @ARGV; 8 8 } 9 if (@ARGV > 2 && $ARGV[0] eq "-debug") { 10 $DEBUG = 1; 11 shift @ARGV; 12 } 13 if (@ARGV != 2) { die "USAGE: pscheckmods [-v] [-debug] (module) (version)\n"; } 9 if (@ARGV != 2) { die "USAGE: pscheckmods (module) (version)\n"; } 14 10 15 11 if ($VERBOSE) { print STDERR "checking in @INC\n"; } … … 28 24 print "$ARGV[0]: $version\n"; 29 25 30 if ($ARGV[1] > $version) { 26 my $requireExact = 0; 27 my $myVersion = $ARGV[1]; 28 if ($myVersion =~ m|^=.|) { 29 $requireExact = 1; 30 $myVersion =~ s|^=||; 31 print "$ARGV[1], $myVersion\n"; 32 } 33 34 if ($myVersion > $version) { 31 35 print "$ARGV[0] is too old: have $version : need $ARGV[1]\n"; 32 36 exit 1; 33 37 } 38 39 if ($requireExact && ($myVersion != $version)) { 40 print "$ARGV[0] is not the right version: have $version : need $myVersion\n"; 41 exit 1; 42 } 43 34 44 35 45 exit 0; … … 49 59 print "real: $realfilename\n" if $DEBUG; 50 60 if (-f $realfilename) { 51 print "my filename: $filename\n" if $DEBUG;52 61 $INC{$filename} = $realfilename; 53 62 print "calling 'do' on $realfilename\n" if $DEBUG; -
tags/ipp-ps1-20210510/psconfig/tagsets/ipp-3.0.perl
r39453 r41597 68 68 55 IPC::Run IPC-Run-0.80.tar.gz 0 NONE NONE 69 69 56 Cache Cache-2.04.tar.gz 0 NONE NONE 70 57 IPC::Cmd IPC-Cmd-0.36.tar.gz 0.36 NONE NONE70 57 IPC::Cmd IPC-Cmd-0.36.tar.gz =0.36 NONE NONE 71 71 58 SOAP::Lite SOAP-Lite-0.69.v1.tar.gz 0 NONE yes,yes,no 72 72 59 Log::Log4perl Log-Log4perl-1.10.v1.tar.gz 0 NONE NONE -
tags/ipp-ps1-20210510/pstamp/scripts/dquery_job_run.pl
r41479 r41597 121 121 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 122 122 run(command => $command, verbose => $verbose); 123 ## MEH need to adjust error_code to rc 123 124 unless ($success) { 124 125 my $rc = $error_code >> 8; … … 388 389 $exit_code = $PS_EXIT_PROG_ERROR unless defined $exit_code; 389 390 390 carp("$message : $QUERY_ID $FPA_ID $MJD_OBS $FILTER $OBSCODE $STAGE"); 391 #carp("$message : $QUERY_ID $FPA_ID $MJD_OBS $FILTER $OBSCODE $STAGE"); 392 carp("$message : $QUERY_ID $FPA_ID $MJD_OBS $FILTER $OBSCODE $STAGE $exit_code"); 393 391 394 exit($exit_code); 392 395 -
tags/ipp-ps1-20210510/pstamp/scripts/dqueryparse.pl
r41478 r41597 385 385 ($query{$fpa_id}{STATE}[$valid_index] eq 'drop') or 386 386 ($query{$fpa_id}{STATE}[$valid_index] eq 'error_cleaned') or 387 ($query{$fpa_id}{DATA_STATE}[$valid_index] eq 'error_cleaned') or387 ($query{$fpa_id}{DATA_STATE}[$valid_index] eq 'error_cleaned') or 388 388 ($query{$fpa_id}{STATE}[$valid_index] eq 'goto_scrubbed') or 389 389 ($query{$fpa_id}{DATA_STATE}[$valid_index] eq 'scrubbed')) { … … 391 391 # image is gone and it's not coming back 392 392 $query{$fpa_id}{FAULT}[$valid_index] = $PSTAMP_GONE; 393 ## MEH error_cleaned isn't necessarily gone though394 ## if BAD_COMPONENT not set then doesn't get added to faulted_rows list (others need this too?)395 $query{$fpa_id}{BAD_COMPONENT}[$valid_index] = 1;393 ## MEH why was this missing? should be added to other FAULT cases... 394 ## messes with row order, skipping the faulted rows on output, unclear if problem since happens in other cases too 395 $query{$fpa_id}{BAD_COMPONENT}[$valid_index] = 1; 396 396 } 397 397 elsif ($need_magic and ($query{$fpa_id}{MAGICKED}[$valid_index] eq 0)) { -
tags/ipp-ps1-20210510/pstamp/scripts/pstamp_job_run.pl
r41480 r41597 611 611 print STDERR "file $f is not available\n"; 612 612 $return_code = 0; 613 ## MEHdoesn't look like return_code is even used from check_files...614 ## if file is not available, why is my_die not called with PSTAMP_NOT_AVAILABLE?615 ## is this only the case when neb-host down and fails to wait for fix?616 ## with multiple data nodes down, this needs to be a fault case617 my_die( "file $f is not available:", $job_id, $error_code, 'stop'); 613 ## MEH 20210127 doesn't look like return_code is even used from check_files... 614 ## if file is not available, why is my_die not called with PSTAMP_NOT_AVAILABLE? 615 ## is this only the case when neb-host down and fails to wait for fix? 616 ## with multiple data nodes down, this needs to be a fault case 617 my_die( "file $f is not available:", $job_id, $error_code, 'stop'); 618 618 } 619 619 } else { -
tags/ipp-ps1-20210510/pstamp/scripts/pstamp_server_status
r41497 r41597 124 124 if ($controller_state) { 125 125 print $br . "Pantasks Controller $controller_state.\n"; 126 # loading active labels127 my $runlabels = `echo \"show.labels; quit\" \| pantasks_client -c ~ippitc/pstamp/ptolemy.rc \| tail -n +7`;128 print $br."current labels: \n".$runlabels."\n";129 126 } else { 130 127 print STDERR "Controller state not found"; -
tags/ipp-ps1-20210510/tools
- Property svn:mergeinfo changed
/trunk/tools (added) merged: 41589
- Property svn:mergeinfo changed
-
tags/ipp-ps1-20210510/tools/croot
r38490 r41597 28 28 } elsif ($camera eq 'gpc2') { 29 29 $out = `dsrootls --uri http://dsmaster.ps2/ds/index.txt`; 30 ## old tunnel 201809xx MEH 31 # $out = `dsrootls --uri http://conductor.ps2.ifa.hawaii.edu:8080/ds/index.txt`; 30 32 } else { 31 33 die "don't know data store address for camera $camera\n";
Note:
See TracChangeset
for help on using the changeset viewer.
