IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 7, 2026, 4:51:13 PM (3 weeks ago)
Author:
eugene
Message:

add option to pass expname to ipp_inject_fileset.pl, small code refactor

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-pstamp-20260421/ppSim/src/ppSimSequenceObject.c

    r43068 r43081  
    7979                        for (float pos = pos_min; pos <= pos_max; pos += pos_delta) {
    8080                         
    81                             // define the output filename
    82                             psString filename = NULL;
    83                             if (path) {
    84                                 psStringAppend (&filename, "%s/%s.%03d.%03d", path, basename, nSeq, nImage);
    85                             } else {
    86                                 psStringAppend (&filename, "%s.%03d.%03d", basename, nSeq, nImage);
    87                             }
     81                            // define the exposure name and output filename
     82                            psString expname = ppSimDefineExpname (basename, nSeq, nImage);
     83                            psString filename = ppSimDefineFilename (path, expname);
    8884
    8985                            // define the ppSim command
    … …  
    121117                            for (int i = 0; i < files->n; i++) {
    122118                                command = psStringCopy (injectCommand);
    123                                 psStringAppend (&command, " %s.%s", filename, (char *) files->data[i]);
     119                                psStringAppend (&command, " --exp_name %s %s.%s", expname, filename, (char *) files->data[i]);
    124120                                fprintf (inject, "%s\n", command);
    125121                                psFree (command);
    126122                            }
    127123
     124                            psFree (expname);
    128125                            psFree (filename);
    129126                            nImage ++;
Note: See TracChangeset for help on using the changeset viewer.