MyMask - Interactively Mask Your Data.
An interactive tool for masking spectrum (any x-y) data using Matplotlib and PyQt5. This tool allows users to visually mask and unmask points on a spectrum, providing an easy way to manipulate data for further analysis.
Features
- Load spectrum data from FITS or CSV files.
- Select which columns to use as X and Y for visualization.
- Interactively mask points by clicking on them (left-click to mask, right-click to unmask).
- Automatically save masked data to new CSV or FITS files.
- Visualize spectrum data in a user-friendly interface with zoom and pan capabilities.
Installation
To install the Interactive Spectrum Mask Tool, use pip:
pip install mymask
Usage
To run the application after installation, use the command:
mymask
Loading Data
- Click on the "Load Data" button to load your spectrum data.
- You can load either a CSV file or a FITS file.
- Once the file is loaded, use the dropdown menus to select the appropriate columns for X and Y.
Masking and Unmasking Points
- Left-click on a point in the plot to mask it.
- Right-click on a masked point to unmask it.
- The masked points will appear in red, while unmasked points will appear in blue.
Saving Data
- Click on the "Save Mask" button to save your mask.
- A new
.csvfile will be created with a suffix_maskcontaining the mask, including amaskcolumn indicating which points are masked.
Dependencies
The tool requires the following Python packages:
numpypandasastropyPyQt5matplotlib
These dependencies will be automatically installed when you install the tool using pip.
Example
Here is a simple example of how to use the tool:
- Run the tool using the command:
mymask
- Click "Load Data" to load a CSV or FITS file.
- Select the columns to be used as X and Y for plotting.
- Interactively mask/unmask data points as needed.
- Click "Save Masked Data" to save your modifications.
License
This project is licensed under the GPL License - see the LICENSE file for details.
Contributing
Contributions are welcome! Please open an issue or submit a pull request on the GitHub repository.
Contact
For any issues or questions, please contact lmytime@hotmail.com.
Enjoy using the Interactive Data Masking Tool to easily analyze and manipulate your data!
Metadata
Release files for mymask 0.1.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mymask-0.1.7.tar.gz | 519.2 kB | Without provenance | Details for mymask-0.1.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mymask-0.1.7-py3-none-any.whl | Python 3 | none | any | Details for mymask-0.1.7-py3-none-any.whl |
Total release size: 558.9 kB
Release files / mymask-0.1.7.tar.gz
| Download URL | mymask-0.1.7.tar.gz |
|---|---|
| Size | 519.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f73874a4d11103850427b0ad24f2a0704d3f49da5c6cfa7ecca6c0d1fcc1f082
|
|
BLAKE2b-256 checksum How to use checksums |
f5025875ac5391ee9d35b9815ece4b585a9a2381bac684ad186c95ce4fbdfc6d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.13
|
Release files / mymask-0.1.7-py3-none-any.whl
| Download URL | mymask-0.1.7-py3-none-any.whl |
|---|---|
| Size | 39.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f0e1c52fe4acc227ed06030bbea1c3a4e67bc0c1e710acb372b3e277302f917b
|
|
BLAKE2b-256 checksum How to use checksums |
53355132eea4049d7eca2d9d3f825afd23aa0dd0d976a4d2325989cd6c87844a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.13
|
Security for mymask 0.1.7
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.