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

Method write

windtools/io/binary.py:117–121  ·  view source on GitHub ↗
(self,val,encoding='utf-8')

Source from the content-addressed store, hash-verified

115
116 # binary output
117 def write(self,val,encoding='utf-8'):
118 if isinstance(val,str):
119 self.f.write(val.encode(encoding))
120 else:
121 self.f.write(val)
122
123 def write_type(self,val,type):
124 if hasattr(val,'__iter__'):

Callers 12

to_InflowWindFunction · 0.80
write_typeMethod · 0.80
calcVarianceMethod · 0.80
resizeYMethod · 0.80
resizeZMethod · 0.80
write_sowfa_mapped_BCMethod · 0.80
writeVTKMethod · 0.80
writeVTKSeriesMethod · 0.80
to_vtkMethod · 0.80
sowfa_time_left.pyFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected