autotwin / mesh

Mesh data types
MIT License
1 stars 2 forks source link

entry points #18

Closed hovey closed 1 year ago

hovey commented 1 year ago
hovey commented 1 year ago

@calehma and @elejeune11

As of version 0.0.7 of the atmesh library, I added three above-listed "Entry Points", which simplifies the command-line calls for functions that are exposed.

Before:

# deprecated after version 0.0.7
(atmeshenv) ~/autotwin/mesh> python src/atmesh/sculpt_stl_to_inp.py doc/bunny_delta_cell/cell_0010_stl_to_inp.yml

After:

(atmeshenv) ~/autotwin/mesh> sculpt_stl_to_inp doc/bunny_delta_cell/cell_0010_stl_to_inp.yml

So, the long selection to the function (which still works if you prefer this alternative) of

is replaced with

which simplifies the typing and makes the atmeshenv virtual environment operate more like a built-in bash command than a python command (e.g., python is no longer needed as a prefix).