meltpt
Calculate pressures and temperatures of melting for basaltic rocks and fit with melting models.
Science Score: 67.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
Found 14 DOI reference(s) in README -
✓Academic publication links
Links to: zenodo.org -
○Committers with academic emails
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (17.4%) to scientific vocabulary
Repository
Calculate pressures and temperatures of melting for basaltic rocks and fit with melting models.
Basic Info
Statistics
- Stars: 11
- Watchers: 3
- Forks: 1
- Open Issues: 4
- Releases: 12
Metadata Files
README.md
meltPT
meltPT is a Python package for whole-rock major-element themormobarometric analyses of basaltic (mafic) rocks. It contains modules for: - Correcting sample compositions for effects of olivine crystallisation - Estimating pressures and temperatures at which samples were last in equilibrium with the mantle - Estimating melt fractions and potential temperatures on an individual basis or for a suite of samples
Full documentation can be found here.
You can find more background information and some example analyses in our paper in Volcanica here.
Installation
Quickstart
To try out meltPT without having to install anything, you can run our Tutorials in your browser via our Binder page. You will find our jupyter notebook tutorials under "./Tutorials/jupyter". Alternatively, you can use the terminal function to run the tutorial scripts. For example:
``` $ # Navigate to script directory. $ cd Tutorials/scripts
$ # Run the first tutorial. $ python3 Tutorial_1.py ```
Linux/Mac
To avoid incompatibility issues with other packages you may have installed, we recommend running meltPT in a virtual environment. Start a terminal and enter:
``` $ # Create virtual environment. $ # Replace /path/to/virtual/environment with your desired path. $ python3 -m venv /path/to/virtual/environment
$ # Activate new virtual environment. $ source /path/to/virtual/environment/bin/activate ```
Note that, when using a virtual environment, some users may experience issues trying to display images created with matplotlib (e.g., in our tutorials): the default matplotlib backend is sometimes "agg", which cannot show figures. There does not seem to be a universal solution to this issue, so please see here for some options on how to proceed.
What you do next depends on whether you just want to use meltPT as is or if you want to edit the source code.
Basic Usage
If you just want to use meltPT as it is you can now simply type:
(meltpt) $ pip install meltPT
This will take a minute or two and print lots of stuff. If it completes successfully, you are now ready to use meltPT!
Development usage
If you want to edit meltPT's source code, you first need to download it. Navigate to your desired location and type:
(meltpt) $ git clone git@github.com:fmcnab/meltPT.git
You should now have a directory called "meltPT". To install the package, enter this directory and run the setup script. Using the -e flag means that the code will be installed in "editable" mode, and changes you make locally will be incorporated without the need for a fresh install.
(meltpt) $ cd meltPT
(meltpt) $
(meltpt) $ # Standard install
(meltpt) $ pip install -e .
(meltpt) $
(meltpt) $ # Including extra dependencies -
(meltpt) $ # required for those who wish to compile documentation locally.
(meltpt) $ pip install .[docs]
(meltpt) $ pip install -e .[docs] # (editable)
This will take a minute or two and print lots of stuff. If it completes successfully, you are now ready to use meltPT!
Windows
We do not have much experience running Python on a Windows system, but outline here some basic steps that we have tested and believe should be accessible to most users.
First, you need to install a Python package manager, if you don't have one already. We tested the Miniforge3 installer from Miniforge, which is free to anyone regardless of affiliation. If you are already running a different Conda distribution, don't worry, the following steps should still work.
Once you have a package manager installed, open the program. You should see a command prompt. Create a new environment in which to install meltPT, called, for example, 'meltpt':
(base) > conda create meltpt
Next, activate the environment:
(base) > conda activate meltpt
(meltpt) >
If you want to install an Interactive Development Environment (IDE), allowing you to edit scripts, use a Python interface etc., now is the time to install it. For example, Spyder:
(meltpt) > conda install spyder
Finally, install meltPT using pip:
(meltpt) > pip install meltPT
If you wish to edit the source code, see the Linux/Mac instructions above for alternative pip commands; these should also work in Conda. You should now be ready to use meltPT!
Using meltPT
Under ./Tutorials, you will find some exaple scripts to help you get started.
For more information, the meltPT ReadtheDocs page has full documentation for the codebase, a series of informative tutorials, information about contributing and our liscence.
Citing meltPT
If you use our code, please cite us!
- McNab, F. and Ball, P. W. (2023),
meltPT: APythonpackage for basaltic whole-rock thermobarometric analysis with application to Hawai'i, Volcanica, 6(1), p. 63–76, doi: 10.30909/vol.06.01.6376.
You should also refer to the specific release of the code you used. For example, the most recent meltPT release is archived in our Zenodo repository:
- McNab, F. and Ball, P. W. (2023), meltPT, version 1.2.1, Zenodo, doi: 10.5281/zenodo.6948030.
We also urge you to cite the original literature on which our code is based. The sample backtracking method is based on that of Lee et al. (2009, EPSL). For a list of themormobarometric schemes available in meltPT, and links to the original papers, see the\ Thermobarometers section of our documentation.
If you use our melt-path fitting routines you should also cite:
- pyMelt: Matthews et al. (2022, Volcanica)
- melting model for our examples: Katz et al. (2003, G-cubed)
Owner
- Login: fmcnab
- Kind: user
- Repositories: 2
- Profile: https://github.com/fmcnab
Citation (CITATION.cff)
cff-version: 1.1.0
message: "If you use this software, please cite it as below."
authors:
- family-names: McNab
given-names: F.
orcid: https://orcid.org/0000-0002-8358-1466
- family-names: Ball
given-names: P. W.
orcid: https://orcid.org/0000-0001-7054-807X
title: meltPT
GitHub Events
Total
Last Year
Committers
Last synced: almost 3 years ago
All Time
- Total Commits: 269
- Total Committers: 4
- Avg Commits per committer: 67.25
- Development Distribution Score (DDS): 0.197
Top Committers
| Name | Commits | |
|---|---|---|
| Fergus | f****3@g****m | 216 |
| paddywball | p****l@g****m | 44 |
| paddywball | 7****l@u****m | 8 |
| fmcnab | 4****b@u****m | 1 |
Issues and Pull Requests
Last synced: 7 months ago
All Time
- Total issues: 4
- Total pull requests: 3
- Average time to close issues: N/A
- Average time to close pull requests: less than a minute
- Total issue authors: 1
- Total pull request authors: 2
- Average comments per issue: 0.0
- Average comments per pull request: 0.0
- Merged pull requests: 3
- 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
- fmcnab (4)
Pull Request Authors
- fmcnab (2)
- paddywball (1)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 1
-
Total downloads:
- pypi 21 last-month
- Total dependent packages: 0
- Total dependent repositories: 0
- Total versions: 6
- Total maintainers: 1
pypi.org: meltpt
Calculate pressures and temperatures of melting for basaltic rocks and fit with melting models.
- Homepage: https://github.com/fmcnab/meltPT
- Documentation: https://meltpt.readthedocs.io/
- License: gpl-3.0
-
Latest release: 1.2.1
published over 1 year ago
Rankings
Maintainers (1)
Dependencies
- matplotlib *
- numpy *
- pandas *
- pyMelt *
- pyyaml *
- scipy *
- shapely *
- sympy *