arsenalgear
A library containing general purpose Python utils.
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
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (17.6%) to scientific vocabulary
Keywords
Repository
A library containing general purpose Python utils.
Basic Info
Statistics
- Stars: 14
- Watchers: 2
- Forks: 0
- Open Issues: 0
- Releases: 10
Topics
Metadata Files
README.md
A library containing general purpose utils.
Table of contents
Introduction
This library contains a set of generic utils I developed for other projects. There are several sub-headers / modules related to various topics (mathematics, threading etc...).
Existing tools are constantly updated and new ones are added once their development is required for other projects.
If you want to use this library please cite it following this citation template.
The software is and will stay free, but if you want to support me with a donation it would be really appreciated!
Supported operating systems:
- Linux (Ubuntu and WSL tested)
- Windows 10.
- MaxOS.
Install and run
Steps to be reproduced:
1) Install the library and prerequisites.
bash
pip install arsenalgear
To run examples:
python python examples.py
2) Use in your device
Once you have installed the library you can freely use it in one of your Python projects by including one or more of the modules:
python
from arsenalgear import module_name
for example:
Python
from arsenalgear import mathematics
3) Run the tests (optional):
If you want to run the tests you have to type:
shell
python src/arsenalgear/module_name
If anything is displayed it means that tests ran correctly.
Tests have been performed using the Doctest framework.
If you want a detailed tests log printed on the screen, simply enter:
shell
python src/arsenalgear/module_name -v
Extra documentation
- Contributing to the repository: a generic file containing detailed info about how to open an issue or send a pull request to contribute.
- Code documentation: code documentation has been generated using Doxygen.
List of features
Data science
AMS_score: function used to retrieve the AMS score.RemoveOutliers: function used to remove the outliers of an array.RemoveOutliers_DF: function used to remove the outliers of a dataframe.
Mathematics
Hermite: function used to retrieve Hermite polynomials values.Chebyshev: function used to retrieve Chebyshev polynomials values.Legendre: function used to retrieve Legendre polynomials values.Laguerre: function used to retrieve Laguerre polynomials values.IsInBounds: function used to check if a value is in a certain bound or not.e_parser: function used to return the complex value of a parsed expression.kronecker: function used to compute the Kronecker delta.OrderOfMagnitude: function used to find the order og magnitude of a number.
Parallelization
MultiProcesses: function used to parallelize more functions.chunker: function used send a bunch of processes in parallel.
Plotter
plot_AMS: function used to plot the AMS score.plotter_complex: function used to plot a given function for an index n.plot_learning_curve: function used to plot a learning curves for train and tests sets of a dataset.
Utils
TimeToInt: function used to convert a time-string into an integer.IntToTime: function used to convert an integer into a time-string.save_img: function used to save an image in a certain position of the system.
Credits
Project leaders
Gianluca Bianco |
Stargazers over time
Owner
- Name: Gianluca Bianco
- Login: JustWhit3
- Kind: user
- Location: Bologna, Italy
- Company: University of Bologna and INFN
- Website: https://justwhit3.github.io/
- Twitter: JustWhit33
- Repositories: 14
- Profile: https://github.com/JustWhit3
PhD student in particle physics at the University of Bologna and member of the CERN ATLAS experiment. Passionate about coding (C++ in particular)
Citation (CITATION.cff)
cff-version: 1.2.0 message: "If you use this software, please cite it as below." authors: - family-names: "Gianluca" given-names: "Bianco" title: "arsenalgear-py" version: 1.3.1 doi: https://zenodo.org/badge/latestdoi/465779737 date-released: 2021-12-25 url: "https://github.com/JustWhit3/arsenalgear-py"
GitHub Events
Total
Last Year
Packages
- Total packages: 1
-
Total downloads:
- pypi 17 last-month
- Total dependent packages: 0
- Total dependent repositories: 1
- Total versions: 5
- Total maintainers: 1
pypi.org: arsenalgear
A library containing general purpose Python utils
- Homepage: https://justwhit3.github.io/
- Documentation: https://arsenalgear.readthedocs.io/
- License: MIT
-
Latest release: 1.3.0
published over 3 years ago
Rankings
Maintainers (1)
Dependencies
- matplotlib >=3.1.2
- numpy >=1.17.4
- scipy ==1.6.2
- termcolor ==1.1.0
- tqdm >=4.64.0
- EndBug/add-and-commit v7 composite
- actions/checkout v2 composite
- actions/download-artifact v2 composite
- actions/upload-artifact v2 composite
- mattnotmitt/doxygen-action v1.3.1 composite
- actions/checkout v2 composite
- github/codeql-action/analyze v1 composite
- github/codeql-action/autobuild v1 composite
- github/codeql-action/init v2 composite
- matplotlib ==3.5.1
- numpy >=1.22.0
- scikit_learn ==1.1.2
- scipy ==1.8.0
- setuptools ==59.6.0
- termcolor ==1.1.0
- tqdm ==4.64.0