IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 43122


Ignore:
Timestamp:
Oct 15, 2026, 4:53:44 PM (41 hours ago)
Author:
eugene
Message:

add helper function for testing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-pstamp-20260421/psphot/src/psphotModelBackground.c

    r41527 r43122  
    594594    }
    595595# endif
     596
     597void psphotSaveVector (char *filename, psVector *values) {
     598
     599  FILE *f = fopen (filename, "w");
     600  if (!f) {
     601    fprintf (stderr, "cannot open file %s\n", filename);
     602    return;
     603  }
     604
     605  int fd = fileno (f);
     606  p_psVectorPrint (fd, values, "values");
     607  fclose (f);
     608  return;
     609}
Note: See TracChangeset for help on using the changeset viewer.