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

Function parse_args

scripts/matrix_gen.py:10–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8import scipy.sparse
9
10def parse_args():
11 parser = argparse.ArgumentParser(__doc__);
12 parser.add_argument("--type", "-t", help="The type of matrix",
13 choices=["stiffness", "mass", "lumped_mass", "laplacian",
14 "displacement_strain", "elasticity_tensor",
15 "engineer_strain_stress", "rigid_motion", "gradient"]);
16 parser.add_argument("input_mesh");
17 parser.add_argument("output_matrix");
18 return parser.parse_args();
19
20def main():
21 args = parse_args();

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected