IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 3, 2011, 7:28:38 PM (15 years ago)
Author:
watersc1
Message:

Hard coded cleanup commands into the script, but it works, and triggers cleanup for the things we're done with. Edit to diff_skycell.pl to create a dummy refConv file for magic to use when we haven't convolved anything.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/czw_branch/20110406/ippTools/src/laptool.c

    r31428 r31429  
    473473      }
    474474    }
    475 
    476475  }
    477476
     
    690689  PXOPT_LOOKUP_S64(set_chip_id, config->args, "-set_chip_id", false, false);
    691690  PXOPT_LOOKUP_S64(set_pair_id, config->args, "-set_pair_id", false, false);
     691  PXOPT_LOOKUP_STR(set_data_state, config->args, "-set_data_state", false, false);
    692692  PXOPT_LOOKUP_BOOL(private,    config->args, "-private",     false);
    693693  PXOPT_LOOKUP_BOOL(public,     config->args, "-public",      false);
     
    711711  PXOPT_COPY_S64(config->args, where, "-exp_id", "exp_id", "==");
    712712  PXOPT_COPY_S64(config->args, where, "-chip_id", "chip_id", "==");
    713   PXOPT_COPY_STR(config->args, where, "-set_data_state", "data_state", "==");
     713
    714714
    715715  psMetadata *values = psMetadataAlloc();
     
    738738    psMetadataAddBool(values, PS_LIST_TAIL, "pairwise", 0, "==", false);
    739739  }
    740  
     740  if (set_data_state) {
     741    PXOPT_COPY_STR(config->args, values, "-set_data_state", "data_state", "==");
     742  }
    741743  long rows = psDBUpdateRows(config->dbh,"lapExp",where,values);
    742744  if (rows) {
     
    755757{
    756758  PS_ASSERT_PTR_NON_NULL(config, false);
    757 
     759  PXOPT_LOOKUP_S64(lap_id,          config->args, "-lap_id",          true, false);
     760 
    758761  psMetadata *where = psMetadataAlloc();
    759762  PXOPT_COPY_S64(config->args, where, "-lap_id", "lap_id", "==");
Note: See TracChangeset for help on using the changeset viewer.