remove_dagmc_tags
A python package and command line tool for removing DAGMC tags such as graveyard and vacuum
Science Score: 44.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Committers with academic emails
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (14.2%) to scientific vocabulary
Keywords from Contributors
Repository
A python package and command line tool for removing DAGMC tags such as graveyard and vacuum
Basic Info
- Host: GitHub
- Owner: svalinn
- License: mit
- Language: Python
- Default Branch: main
- Size: 6.52 MB
Statistics
- Stars: 2
- Watchers: 11
- Forks: 1
- Open Issues: 2
- Releases: 4
Metadata Files
README.md
This is a minimal Python package that provides both command line and API interfaces for removing multiple tags from a DAGMC h5m file.
This is useful for preparing the h5m file for visulisation where it is desirable to remove reflecting surfaces, vacuum materials and the graveyard(s) region from the geometry before viewing the vtk file.
Command line usage
Perhaps the most common use of this program is to remove a DAGMC graveyard.
bash
remove-dagmc-tags -i dagmc.h5m -o dagmc_no_graveyard.h5m -t mat:graveyard
- the
-ior--inputargument specifies the input h5m file - the
-oor--outputargument specifies the output h5m or vtk filename - the
-tor--tagsargument specifies the tags to remove. - the
-vor--verboseargument enables (true) or disables (false) the printing of additional details
Multiple tags can also be removed and vtk files can be generated. This example removes three tags from the dagmc.h5m file and saves the result as a vtk file.
bash
remove-dagmc-tags -i dagmc.h5m -o output.vtk -t mat:graveyard mat:vacuum reflective
Python API usage
Removing a single tag called mat:graveyard from the dagmc.h5m file.
```python from removedagmctags import remove_tags
remove_tags( input='dagmc.h5m', output='output.h5m', tags='mat:graveyard' ) ```
Removing two tags called mat:graveyard and reflective from the
dagmc.h5m file and saving the result as a vtk file and h5m file.
```python from removedagmctags import remove_tags
remove_tags( input='dagmc.h5m', output=['output.vtk', 'output.h5m'], tags=['reflective', 'mat:graveyard'] ) ```
Installation
The recommended method of installing is via conda install as this is able to
install all the dependencies including PyMoab.
bash
conda install -c conda-forge remove_dagmc_tags
However the package is available via the PyPi package manager. In this case you will have to seperatly install PyMoab.
bash
pip install remove_dagmc_tags
Some Python dependencies (such as Numpy) are installed during the pip install remove_dagmc_tags process, however PyMoab needs to be installed seperatly to make full use of this package.
One method of installing pymoab is to install MOAB via Conda which
includes PyMoab.
bash
conda install -c conda-forge moab
Another method of installing pymoab is to compile MOAB with pymoab enabled.
bash
mkdir MOAB
cd MOAB ; \
mkdir build ; \
git clone --single-branch --branch develop https://bitbucket.org/fathomteam/moab.git
cd build
cmake ../moab -DENABLE_HDF5=ON \
-DENABLE_NETCDF=ON \
-DENABLE_FORTRAN=OFF \
-DENABLE_BLASLAPACK=OFF \
-DBUILD_SHARED_LIBS=OFF \
-DCMAKE_INSTALL_PREFIX=/MOAB
make -j"$compile_cores"
make -j"$compile_cores" install
cmake ../moab -DENABLE_HDF5=ON \
-DENABLE_PYMOAB=ON \
-DENABLE_FORTRAN=OFF \
-DBUILD_SHARED_LIBS=ON \
-DENABLE_BLASLAPACK=OFF \
-DCMAKE_INSTALL_PREFIX=/MOAB
make -j"$compile_cores"
make -j"$compile_cores" install
cd pymoab
bash install.sh
python setup.py install
Achknowledgments
The package is largely inspired by the DAGMC-viz(https://github.com/svalinn/DAGMC-viz) repository.
Owner
- Name: Svalinn
- Login: svalinn
- Kind: organization
- Email: dagmc@office365.wisc.edu
- Website: http://svalinn.github.com
- Repositories: 31
- Profile: https://github.com/svalinn
Citation (CITATION.cff)
cff-version: 1.2.0 message: "If you use this software, please cite it as below." authors: - family-names: "Shimwell" given-names: "Jonathan" orcid: "https://orcid.org/0000-0001-6909-0946" title: "A python package and command line tool for removing DAGMC tags such as graveyard and vacuum " version: 0.0.5 date-released: 2021-4-30 url: "https://github.com/svalinn/remove_dagmc_tags"
GitHub Events
Total
Last Year
Committers
Last synced: almost 3 years ago
Top Committers
| Name | Commits | |
|---|---|---|
| Jonathan Shimwell | j****l@u****k | 35 |
| Jonathan Shimwell | d****l@g****m | 4 |
| autopep8 | a****8@u****m | 3 |
| Jonathan Shimwell | m****l@j****m | 1 |
| Patrick Shriwise | p****e@g****m | 1 |
| shimwell | s****l@u****m | 1 |
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: 8 months ago
All Time
- Total issues: 4
- Total pull requests: 14
- Average time to close issues: about 1 month
- Average time to close pull requests: 14 days
- Total issue authors: 1
- Total pull request authors: 2
- Average comments per issue: 1.25
- Average comments per pull request: 0.57
- Merged pull requests: 14
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- shimwell (4)
Pull Request Authors
- shimwell (13)
- pshriwise (1)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 2
-
Total downloads:
- pypi 314 last-month
-
Total dependent packages: 1
(may contain duplicates) -
Total dependent repositories: 1
(may contain duplicates) - Total versions: 5
- Total maintainers: 1
pypi.org: remove-dagmc-tags
A tool for selectively removing tags such as the graveyard from DAGMC h5m files.
- Homepage: https://github.com/svalinn/remove_dagmc_tags
- Documentation: https://remove-dagmc-tags.readthedocs.io/
- License: mit
-
Latest release: 0.0.5
published almost 5 years ago
Rankings
Maintainers (1)
conda-forge.org: remove_dagmc_tags
This is a minimal Python package that provides both command line and API interfaces for removing multiple tags from a DAGMC h5m file. This is useful for preparing the h5m file for visulisation where it is desirable to remove reflecting surfaces, vacuum materials and the graveyard(s) region from the geometry before viewing the vtk file.
- Homepage: https://github.com/svalinn/remove_dagmc_tags
- License: MIT
-
Latest release: 0.0.5
published almost 5 years ago
Rankings
Dependencies
- numpy *
- actions/checkout v2 composite
- actions/setup-python v2 composite
- stefanzweifel/git-auto-commit-action v4 composite
- actions/checkout v1 composite
- actions/checkout v2 composite
- actions/setup-python v2 composite
- continuumio/miniconda3 4.9.2 build
