morganjwilliams/pyrolite: 0.2.7
Description
Note that this is the version of pyrolite offically peer-reviewed by pyOpenSci.
- Bugfix to include radii data in MANIFEST.in
- New Contributors: Kaarel Mand and Laura Miller
- PR Merged: Louise Schonevel submitted a pull request to fill out the newly-added Formatting and Cleaning Up Plots tutorial. This tutorial aims to provide some basic guidance for common figure and axis formatting tasks as relevant to
pyrolite. - Added
codacyfor code quality checking, and implemented numerous clean-ups and a few new tests across the package. - Performance upgrades, largely for the documentation page. The docs page should build and load faster, and have less memory hang-ups - due to smaller default image sizes/DPI.
- Removed dependency on
fancyimpute, instead using functions fromscikit-learn
pyrolite.geochem
- Bugfix: pyrolite lambdas differ slightly from O'Neill's 2016 paper<sup><a href='#ONeill2016'>[1]</a></sup> (#39). Differences between the lambda coefficients of the original and pyrolite implementations of the lambdas calculation were identified (thanks to Laura Miller for this one). With further investigation, it's likely the cost function passed to
scipy.optimize.least_squarescontained an error. This has been remedied, and the relevant pyrolite functions now by default should give values comparable to O'Neill (2016). As part of this, the reference compositionChondriteREE_ONwas added to the reference database with the REE abundances presented in that paper.. - Bugfix: Upgrades for
pyrolite.geochem.transform.convert_chemistryto improve performance (#29). This bug appears to have resulted from caching the function calls topyrolite.geochem.ind.simple_oxides, which is addressed with 18fede0. - Feature: Added the Whittaker and Muntus (1970)<sup><a href='#Whittaker'>[2]</a></sup> ionic radii for use in silicate geochemistry (#41), which can optionally be used with
pyrolite.geochem.ind.get_ionic_radiiusing thesourcekeyword argument (source='Whittaker'). Thanks to Charles Le Losq for the suggestion! - Bugfix: Removed an erroneous zero from the GLOSS reference composition (
GLOSS_P2014value for Pr). - Updated
pyrolite.geochem.ind.REEto default todropPm=True - Moved
pyrolite.mineral.ionstopyrolite.geochem.ions
<sup>
<p> <a id="oneill2016">[1]</a>: O'Neill, H.S.C., 2016. The Smoothness and Shapes of Chondrite-normalized Rare Earth Element Patterns in Basalts. J Petrology 57, 1463–1508. doi: <a href="https://doi.org/10.1093/petrology/egw04">10.1093/petrology/egw047</a> </p>
<p> <a id="Whittaker">[2]</a>: Whittaker, E.J.W., Muntus, R., 1970. Ionic radii for use in geochemistry. Geochimica et Cosmochimica Acta 34, 945–956. doi: <a href="https://doi.org/10.1016/0016-7037(70)90077-3">10.1016/0016-7037(70)90077-3</a> </p> </sup>
pyrolite.mineral
- Bugfix: Added the mineral database to
MANIFEST.into allow this to be installed withpyrolite(fixing a bug where this isn't present, identified by Kaarel Mand).
pyrolite.plot
- Bugfix: Updated
pyrolite.plotto usepandas.DataFrame.reindexoverpandas.DataFrame.locwhere indexes could include missing values to deal with #31. - Updated
pyrolite.plot.spider.spiderto acceptlogykeyword argument, defaulting toTrue
pyrolite.util
- Broke down
pyrolite.util.plotinto submodules, and updated relevant imports. This will result in minimal changes to API usage where functions are imported explicitly. - Split out
pyrolite.util.lambdasfrompyrolite.util.math - Added a minimum figure dimension to
pyrolite.util.plot.axes.init_axesto avoid having null-dimensions during automatic figure generation from empty datasets. - Added
pyrolite.util.synthetic.example_spider_datato generate an example dataset for demonstrating spider diagrams and associated functions. This allowed detailed synthetic data generation forpyrolite.plot.pyroplot.spiderandpyrolite.plot.pyroplot.REEplotting examples to be cut down significantly. - Removed unused submodule
pyrolite.util.wfs
Files
morganjwilliams/pyrolite-0.2.7.zip
Files
(10.4 MB)
| Name | Size | Download all |
|---|---|---|
|
md5:2cf7136c163f8e23c63d43a6b045f264
|
10.4 MB | Preview Download |
Additional details
Related works
- Is supplement to
- https://github.com/morganjwilliams/pyrolite/tree/0.2.7 (URL)