MCPcopy Create free account
hub / github.com/Apress/python-for-matlab-development / write_file

Function write_file

pythran/fem/triangle_utils.py:37–40  ·  view source on GitHub ↗
(lines, File)

Source from the content-addressed store, hash-verified

35import os.path
36import numpy as np
37def write_file(lines, File): # {{{
38 with open(File, 'w') as fh:
39 fh.writelines([f'{L}\n' for L in lines])
40 print(f'wrote {File}')
41# }}}
42def load_node_file(File): # {{{
43 """

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected