MCPcopy Create free account
hub / github.com/NatLabRockies/windtools / read_double

Method read_double

windtools/io/binary.py:106–110  ·  view source on GitHub ↗
(self,N=1)

Source from the content-addressed store, hash-verified

104 else:
105 return [ dtype(val) for val in self.unpack('{:d}f'.format(N),self.f.read(N*4))[0:N] ]
106 def read_double(self,N=1):
107 if N==1:
108 return self.unpack('d',self.f.read(8))[0]
109 else:
110 return self.unpack('{:d}d'.format(N),self.f.read(N*8))[0:N]
111 def read_real4(self,N=1):
112 return self.read_float(N,dtype=np.float32)
113 def read_real8(self,N=1):

Callers

nothing calls this directly

Calls 2

unpackMethod · 0.95
readMethod · 0.80

Tested by

no test coverage detected