photonpacket.file module¶
-
class
photonpacket.file.file(path, name)[source]¶ Bases:
objectMethods
getattributefromname(attr)Get value for a given attribute in filename
Get
photonpacket.frameseriesfromfileGet shape of frame
try to read params json or xml file
loadPhotonsV21(path, photinfoMask, maxframes)faster indexing of v2 binary save files
read(path, **kwargs)Read photon data file
createFromPath
getattribute
parsephotinfoMask
-
Nframes= 0¶
-
getattributefromname(attr)[source]¶ Get value for a given attribute in filename
- Parameters
- attrstring
attribute name
- Returns
- valint or float
attribute value
-
getframeseries()[source]¶ Get
photonpacket.frameseriesfromfile- Returns
-
mode= 'fit'¶
-
name= ''¶
-
nameversion= 0¶
-
params= {}¶
-
path= ''¶
-
-
photonpacket.file.py3_fromfile(f, dtype, num)[source]¶ Faster than np.fromfile
- Parameters
- ffile handle
- dtypedata type
- numnumber of elements to read
- Returns
- data
numpy.ndarray
- data