Package wsatools :: Module File :: Class PickleFile
[hide private]

Class PickleFile

source code


Logfile holding the information to ingest csv/binary data and to update the curation histories accordingly.

Instance Methods [hide private]
 
__init__(self, fileName)
Split name into parts, eg.:...
source code
 
pickleAppend(self, *objects) source code
 
pickleRead(self)
Read all objects from the file.
source code
 
pickleWrite(self, *objects) source code

Inherited from File: aopen, chmod, close, copyFile, exists, getsize, isClosed, readline, readlines, remove, ropen, wopen, writeline, writelines, writetheline

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, fileName)
(Constructor)

source code 
Split name into parts, eg.:
/diskNN/wsa/ingest/fits/20050101_v0/w20050101_01234_sf_st_cat.fits
{           path                   }{         base                }
{        topdir        }{  subdir  }{         root           }{ext}
{ diskdir  }{  common  }{          fileID (w/o cat)     }
                                    { sdate }{runno}{ ftype  }

Parameters:
  • fileName (str) - Name of the pickle data file.
Overrides: object.__init__

pickleAppend(self, *objects)

source code 
Parameters:
  • objects (Python objects) - List of objects to be written to the file.

pickleWrite(self, *objects)

source code 
Parameters:
  • objects (Python objects) - List of objects to be written to the file.