IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 10623


Ignore:
Timestamp:
Dec 11, 2006, 10:59:49 AM (19 years ago)
Author:
Paul Price
Message:

Getting rid of WORKDIR completely.

Location:
trunk/psModules/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/camera/pmFPAfileIO.c

    r10421 r10623  
    214214    }
    215215
    216     // apply filename mangling rules (file://, path://, neb://, WORKDIR)
     216    // apply filename mangling rules (file://, path://, neb://)
    217217    psString tmpName = pmConfigConvertFilename (file->filename, config);
    218218    psFree (file->filename);
  • trunk/psModules/src/config/pmConfig.c

    r10583 r10623  
    44 *  @author EAM (IfA)
    55 *
    6  *  @version $Revision: 1.67 $ $Name: not supported by cvs2svn $
    7  *  @date $Date: 2006-12-08 23:47:04 $
     6 *  @version $Revision: 1.68 $ $Name: not supported by cvs2svn $
     7 *  @date $Date: 2006-12-11 20:59:48 $
    88 *
    99 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    4242    psFree(config->arguments);
    4343    psFree(config->database);
    44     psFree(config->workdir);
    4544}
    4645
     
    6261    config->argv = argv;
    6362    config->defaultRecipe = NULL;
    64     config->workdir = NULL;
    6563
    6664    // the file structure is used to carry pmFPAfiles
     
    389387    }
    390388
    391     // Get the working directory
    392     config->workdir = psMemIncrRefCounter(psMetadataLookupStr(NULL, config->site, "WORKDIR"));
    393     if (!config->workdir) {
    394         psWarning("WORKDIR is not set in the site configuration\n");
    395     } else {
    396         config->workdir = resolveEnvVar(config->workdir);
    397     }
    398 
    399389    // define the config-file search path (configPath).  Ensure that
    400390    // it contains the directory where we found the config file in
     
    892882    // substitute neb://name with matched nebulous name
    893883
    894     #if 0
    895     // if we still have a relative path, prepend WORKDIR:
    896     if (newName[0] != '/') {
    897         char *workdir = psMetadataLookupStr (NULL, config->site, "WORKDIR");
    898         if (workdir) {
    899             psStringPrepend (&newName, "%s/", workdir);
    900         }
    901     }
    902     #endif
    903 
    904884    return newName;
    905885}
  • trunk/psModules/src/config/pmConfig.h

    r10428 r10623  
    99/// @author Eugene Magnier, IfA
    1010///
    11 /// @version $Revision: 1.21 $ $Name: not supported by cvs2svn $
    12 /// @date $Date: 2006-12-04 20:41:51 $
     11/// @version $Revision: 1.22 $ $Name: not supported by cvs2svn $
     12/// @date $Date: 2006-12-11 20:59:48 $
    1313///
    1414/// Copyright 2005-2006 Institute for Astronomy, University of Hawaii
     
    4646    psMetadata *arguments;              ///< Processed command-line arguments
    4747    psMetadata *files;                  ///< pmFPAfiles used for analysis
    48     psString workdir;                   ///< Working directory
    4948    psDB *database;                     ///< Database handle
    5049    int *argc;                          ///< Number of command-line arguments
  • trunk/psModules/src/detrend/pmBias.c

    r10574 r10623  
    373373            case PM_FIT_POLY_CHEBY: {
    374374                    psString comment = NULL;    // Comment to add
    375                     psStringAppend(&comment, "Overscan fit (chi^2: %.2f):", chi2);
     375                    psStringAppend(&comment, "Overscan fit (chi2: %.2f): ", chi2);
    376376                    psPolynomial1D *poly = overscanOpts->poly; // The polynomial
    377377                    for (int i = 0; i < poly->nX; i++) {
     
    385385                    psSpline1D *spline = overscanOpts->spline; // The spline
    386386                    for (int i = 0; i < spline->n; i++) {
    387                         psStringAppend(&comment, "Overscan fit (chi^2: %.2f) %d :", chi2, i);
     387                        psStringAppend(&comment, "Overscan fit (chi2: %.2f) %d:", chi2, i);
    388388                        psPolynomial1D *poly = spline->spline[i]; // i-th polynomial
    389389                        for (int j = 0; j < poly->nX; j++) {
Note: See TracChangeset for help on using the changeset viewer.