0.2.7
Note that this is the version of pyrolite
offically peer-reviewed by pyOpenSci.
0.2.7 Changelog
- Bugfix to include radii data in MANIFEST.in
0.2.6 Changelog
- New Contributors: Kaarel Mänd 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
codacy
for 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[1] (#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_squares
contained 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_ON
was added to the reference database with the REE abundances presented in that paper.. - Bugfix: Upgrades for
pyrolite.geochem.transform.convert_chemistry
to 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)[2] ionic radii for use in silicate geochemistry (#41), which can optionally be used with
pyrolite.geochem.ind.get_ionic_radii
using thesource
keyword argument (source='Whittaker'
). Thanks to Charles Le Losq for the suggestion! - Bugfix: Removed an erroneous zero from the GLOSS reference composition (
GLOSS_P2014
value for Pr). - Updated
pyrolite.geochem.ind.REE
to default todropPm=True
- Moved
pyrolite.mineral.ions
topyrolite.geochem.ions
[1]: 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: 10.1093/petrology/egw047
[2]: Whittaker, E.J.W., Muntus, R., 1970. Ionic radii for use in geochemistry. Geochimica et Cosmochimica Acta 34, 945–956. doi: 10.1016/0016-7037(70)90077-3
pyrolite.mineral
- Bugfix: Added the mineral database to
MANIFEST.in
to allow this to be installed withpyrolite
(fixing a bug where this isn't present, identified by Kaarel Mänd).
pyrolite.plot
- Bugfix: Updated
pyrolite.plot
to usepandas.DataFrame.reindex
overpandas.DataFrame.loc
where indexes could include missing values to deal with #31. - Updated
pyrolite.plot.spider.spider
to acceptlogy
keyword argument, defaulting toTrue
pyrolite.util
- Broke down
pyrolite.util.plot
into submodules, and updated relevant imports. This will result in minimal changes to API usage where functions are imported explicitly. - Split out
pyrolite.util.lambdas
frompyrolite.util.math
- Added a minimum figure dimension to
pyrolite.util.plot.axes.init_axes
to avoid having null-dimensions during automatic figure generation from empty datasets. - Added
pyrolite.util.synthetic.example_spider_data
to generate an example dataset for demonstrating spider diagrams and associated functions. This allowed detailed synthetic data generation forpyrolite.plot.pyroplot.spider
andpyrolite.plot.pyroplot.REE
plotting examples to be cut down significantly. - Removed unused submodule
pyrolite.util.wfs