-
-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Discussion: rename executable and python scripts #83
Comments
From to alternatives I am up for |
The I personally prefer verbs or names as application names.
The main mapping utility is tricky though. The current use is to feed meshes and point data into precice. The following words come to my mind
I personally like aste-miso |
I like
What about |
It might be a good idea to decide on this before I present my quick demo during the workshop. I would also vote for |
Upon request from @davidscn here are my suggestions as somebody who does not know the inner workings of ASTE and is looking at this discussion purely from a novice user perspective:
|
I also generally like the It might also help to take a look at https://github.com/precice/aste/blob/develop/contrib/demo.sh and try to translate it to the new names. Currently, it is hard to see which commands are ASTE commands and which are not. That Another example workflow of aste that might be instructive is the replay mode. How would the replay mode look like, if you map it to the new names? |
Looking at the demo, I guess that these names would be clear:
I would also prefer the "one executable -- multiple commands" scheme ( |
Thank you very much for all your contributions :) Since tools are not a core part of ASTE and are written in a different language than core I would keep them separate and write a wrapper around them so that users can access all of them using one command. aste-tools.py evalalute --mesh "mesh.vtk" --function "sqrt(x^2+y^2+z^2)" --data "Distance"
aste-tools.py partitition --mesh "mesh.vtu" -n 2 --algorithm "topology"
aste-tools.py join --mesh "partitioned_mesh"
For the replay mode, we don't need scripts. Probably everything will be settled in configuration file #85 #84. After renaming we just need to give a configuration file. aste-run -c "FluidSolver.yml" &
aste-run -c "SolidSolver.yml" then it re-produces the case for us for diagnosis or adapter development. |
I like |
Merging all scripts into a single one has some downsides. I would vouch for multiple prefixed scripts.
|
IDK if it is possible to pass all arguments from Python to a C++ binary using subprocess or something like that but it works pretty easy in Python as tools act as a module.
I agree that to avoid a huge script file I kept them as separate modules see #86.
I disagree with that since
TAB completion does not work either for individual scripts or the core part of ASTE now. For python script it requires additional package dependency, also requires additional work for C++ I am not sure we even need this. The only downside is |
Problem is that these individual modules need to be available to the launcher script. $ aste<TAB>
astePartition.py
asteJoin.py
aste-tools An alternative would be to install them in a place respected by the python importer. $ python -c "import sys; list(map(print,enumerate(sys.path)))"
From the developer-perspective,
I was referring to TAB completion of the commands, not their arguments. This is provided by most shells out-of-the-box. $ aste-<TAB>
aste-join
aste-partition
aste-run My recommendation is the following: Let's keep it simple and flexible by using separate prefixed scripts. |
If the modules don't have executable permission they don't appear in autocomplete phase. However, this is not the cleanest solution obviously. |
I'm also a bit hesitant to merge now everything into one executable. First, I don't see a real advantage of typing Considering that the opinions here are quite different, maybe let's discuss this again in the beginning of March in person. |
A general summary; Current Tools names:
Suggested changes are :
The current tool names are somewhat not clear are they belong to ASTE tool chain or not. For instance the calculator tool called The scripts The main executable |
One additional thought: if these binaries get installed on a system, the user cannot really relate them to preCICE. So, what if we make them |
Sounds reasonable. Then let's go with
|
I would search for names starting with aste as the installed tool/repo is called aste, not precice-aste. That said, precice-aste could be a good choice if we ever want to merge aste into precice. |
But people know and are interested in preCICE, and ASTE is only targeting preCICE. For me, it sounds similar to code_aster providing We are the developers and we are very familiar with ASTE and know when we need it. But this is not the case for a user that at some point got ASTE installed for some reason (e.g., to run a tutorial).
Indeed, this is mostly a problem for that kind of situation, but I still see the |
* Adapt naming scheme from Discussion: rename executable and python scripts #83 * Change logger names * Remove extensions from scripts * Remove extensions from scripts * Remove obsolete plotstats.py script * Exit on error in run all script (#132) * Exit on error in run all script * Remove redirection * Run all cases and exit * Fix syntax; Move sh to bash * Add missing parantesis * Update tests/example/run-all.sh Co-authored-by: David Schneider <[email protected]> * Update tests/example/run-all.sh Co-authored-by: David Schneider <[email protected]> Co-authored-by: David Schneider <[email protected]> * Remove gradient tags (#130) Co-authored-by: David Schneider <[email protected]>
* Add documentation CI * Add documentation * Add markdown lint options * Reformat for linter * Adapt Discussion: rename executable and python scripts #83 * Trailing edge fix * remove extensions * Change file names and add step by step guide
The main executable of aste is currently called
preciceMap
. As pointed out by @uekerman, this name does not really reflect what the executable does, namely feeding data into preCICE. We should rename it to something more expressive.Similarly, we might want to adapt the names of the python scripts. We have the
vtk_calculator.py
, which is actually used in order to generate, compare and evaluate data on meshes, thepartition_mesh.py
which partitions the meshes andjoin_mesh.py
in order to join them together again. Maybe it would even be useful to merge all python scripts into a single script in order to have a better overview.Current suggestions I remember are for
preciceMap
:aste
aste-core
The text was updated successfully, but these errors were encountered: