IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 17, 2009, 12:07:42 PM (17 years ago)
Author:
beaumont
Message:

merged with head

Location:
branches/cnb_branches/cnb_branch_20090301/psModules
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/cnb_branches/cnb_branch_20090301/psModules

  • branches/cnb_branches/cnb_branch_20090301/psModules/src/camera/pmFPAfileIO.c

    r21363 r23351  
    2222#include "pmFPARead.h"
    2323#include "pmFPAWrite.h"
    24 #include "pmFPAfileIO.h"
    2524#include "pmFPAfileFitsIO.h"
    2625#include "pmSpan.h"
     
    4443#include "pmSubtractionIO.h"
    4544#include "pmConcepts.h"
     45#include "pmConfigRun.h"
     46
     47#include "pmFPAfileIO.h"
    4648
    4749// attempt create, read, write, close, or free pmFPAfiles available in files files are
     
    164166    }
    165167
     168    if (!pmConfigRunFileAdd(config, file)) {
     169        psError(PS_ERR_UNKNOWN, false, "Unable to add file to run-time information");
     170        return false;
     171    }
     172
    166173    // select a reading method
    167174    bool status = true;
     
    412419            return false;
    413420        }
     421    }
     422
     423    if (!pmConfigRunFileAdd(config, file)) {
     424        psError(PS_ERR_UNKNOWN, false, "Unable to add file to run-time information");
     425        return false;
    414426    }
    415427
     
    728740    // apply filename mangling rules (file://, path://, neb://)
    729741    bool create = file->mode == PM_FPA_MODE_WRITE ? true : false;
    730     psString tmpName = pmConfigConvertFilename (file->filename, config, create, false);
    731     if (!tmpName) {
     742    psString realName = pmConfigConvertFilename(file->filename, config, create, false);
     743    if (!realName) {
    732744        psError(PS_ERR_IO, false, "failed to determine real name from template for %s\n", file->filename);
    733745        return false;
    734746    }
    735     psFree (file->filename);
    736     file->filename = tmpName;
     747    psFree(file->origname);
     748    file->origname = file->filename;
     749    file->filename = realName;
    737750
    738751    switch (file->type) {
Note: See TracChangeset for help on using the changeset viewer.