MCPcopy Create free account
hub / github.com/CoolProp/CoolProp / write

Method write

dev/scripts/examples/example_generator.py:621–623  ·  view source on GitHub ↗
(self, fname, code)

Source from the content-addressed store, hash-verified

619 return ''.join(self.header()) + '\n'.join([self.indentation + line for line in lines if line]) + ''.join(self.footer())
620
621 def write(self, fname, code):
622 with open(fname, 'w') as fp:
623 fp.write(code)
624
625 def map_function(self, name):
626 if name in self.function_name_mapping:

Callers 15

replace_version_fileFunction · 0.45
simonFunction · 0.45
TrFunction · 0.45
thetaFunction · 0.45
inject_ancillariesFunction · 0.45
combine_jsonFunction · 0.45
TO_CPPFunction · 0.45
version_to_fileFunction · 0.45
gitrev_to_fileFunction · 0.45

Calls

no outgoing calls

Tested by 1

mainFunction · 0.36