MCPcopy Create free account
hub / github.com/PyMesh/PyMesh / load_wires

Function load_wires

scripts/microstructure_gen.py:82–88  ·  view source on GitHub ↗
(wire_list_file)

Source from the content-addressed store, hash-verified

80 return network;
81
82def load_wires(wire_list_file):
83 root_dir = os.path.dirname(wire_list_file);
84 with open(wire_list_file, 'r') as fin:
85 wire_files = [str(name.strip()) for name in fin];
86 wire_files = [find_file(name, root_dir) for name in wire_files];
87 wires = [load_wire(name) for name in wire_files];
88 return wires;
89
90def load_parameters(wire_network, config):
91 parameters = Parameters(wire_network, config["thickness"]);

Callers 1

tile_with_mixed_patternsFunction · 0.70

Calls 2

find_fileFunction · 0.90
load_wireFunction · 0.70

Tested by

no test coverage detected