Hello community,
here is the log from the commit of package python-python-ternary for
openSUSE:Factory checked in at 2020-07-16 12:15:36
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-python-ternary (Old)
and /work/SRC/openSUSE:Factory/.python-python-ternary.new.3592 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-python-ternary"
Thu Jul 16 12:15:36 2020 rev:2 rq:820958 version:1.0.7
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-python-ternary/python-python-ternary.changes
2019-11-28 10:13:46.123636953 +0100
+++
/work/SRC/openSUSE:Factory/.python-python-ternary.new.3592/python-python-ternary.changes
2020-07-16 12:16:54.230870754 +0200
@@ -1,0 +2,6 @@
+Tue Jul 14 14:54:55 UTC 2020 - Marketa Calabkova <[email protected]>
+
+- update to version 1.0.7
+ * fix an example throwing error
+
+-------------------------------------------------------------------
Old:
----
python-ternary-1.0.6.tar.gz
New:
----
python-ternary-1.0.7.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-python-ternary.spec ++++++
--- /var/tmp/diff_new_pack.QS3ZZz/_old 2020-07-16 12:16:58.342874912 +0200
+++ /var/tmp/diff_new_pack.QS3ZZz/_new 2020-07-16 12:16:58.346874917 +0200
@@ -1,7 +1,7 @@
#
# spec file for package python-python-ternary
#
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -18,7 +18,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-python-ternary
-Version: 1.0.6
+Version: 1.0.7
Release: 0
Summary: Tool to make ternary plots in python
License: MIT
++++++ python-ternary-1.0.6.tar.gz -> python-ternary-1.0.7.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/python-ternary-1.0.6/MANIFEST.in
new/python-ternary-1.0.7/MANIFEST.in
--- old/python-ternary-1.0.6/MANIFEST.in 2019-04-04 01:58:09.000000000
+0200
+++ new/python-ternary-1.0.7/MANIFEST.in 2020-05-10 20:58:46.000000000
+0200
@@ -1,2 +1,7 @@
+include *.md
include *.txt
-include README.md
+include LICENSE
+
+graft examples
+graft readme_images
+graft tests
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/python-ternary-1.0.6/README.md
new/python-ternary-1.0.7/README.md
--- old/python-ternary-1.0.6/README.md 2019-04-04 01:58:09.000000000 +0200
+++ new/python-ternary-1.0.7/README.md 2020-05-10 20:58:46.000000000 +0200
@@ -466,7 +466,7 @@
# Known-Issues
-At one point there was an issue with anaconda on macs that causes the axes
+At one point there was an issue on macs that causes the axes
labels not to render. The workaround is to manually call
```
tax._redraw_labels()
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/python-ternary-1.0.6/citations.md
new/python-ternary-1.0.7/citations.md
--- old/python-ternary-1.0.6/citations.md 2019-04-04 01:58:09.000000000
+0200
+++ new/python-ternary-1.0.7/citations.md 2020-05-10 20:58:46.000000000
+0200
@@ -2,9 +2,21 @@
The library has been cited in a variety of high-quality journals (list may be
incomplete). Entries are roughly in reverse chronological order.
+## Journal Articles, Conference Proceedings, and Preprints
+1. Qian, Jimmy J., and Erol Akçay. [The balance of interaction types
determines the assembly and stability of ecological
communities](https://www.nature.com/articles/s41559-020-1121-x). Nature Ecology
& Evolution (2020): 1-10.
[BioRxiv](https://www.biorxiv.org/content/10.1101/643478v1.full) (2019): 643478.
+1. Bucalo, Maria Soledad, et al. [A Constellation of Horrors: Analysis and
Visualization of the #Cuéntalo
Movement.](https://dl.acm.org/doi/abs/10.1145/3308560.3316459) Companion
Proceedings of The 2019 World Wide Web Conference. 2019.
+1. Broquet, Adrien Pierre Michel, Mark A. Wieczorek, and Wenzhe Fa. [Flexure
of the lithosphere beneath the north polar cap of Mars, with implication for
ice compositions and heat
flow.](https://www.essoar.org/doi/abs/10.1002/essoar.10501496.1) (2019).
[Preprint]
+1. Ke, Huibin, and Christopher D. Taylor. [Design of Corrosion Resistant
Alloys Using Density Functional Theory: Part I. O and Cl Adsorption
Energy.](https://papers.ssrn.com/sol3/papers.cfm?abstract_id=3491237). O and Cl
Adsorption Energy (November 27, 2019) (2019).
+1. Choi, Kwangbom, Narayanan Raghupathy, and Gary A. Churchill. [scBASE: A
Bayesian mixture model for the analysis of allelic expression in single
cells.](https://www.nature.com/articles/s41467-019-13099-0) Nature
Communications 10.1 (2019): 1-1.
[bioRxiv](https://www.biorxiv.org/content/10.1101/383224v3.full) (2019): 383224.
+1. Campbell, Ian Jackson, George Nelson Bennett, and Jonathan J. Silberg.
[Evolutionary relationships between low potential ferredoxin and flavodoxin
electron
carriers.](https://www.frontiersin.org/articles/10.3389/fenrg.2019.00079/full)
Frontiers in Energy Research 7 (2019): 79.
+1. Bragman, Felix JS, et al. [Stochastic Filter Groups for Multi-Task CNNs:
Learning Specialist and Generalist Convolution
Kernels](http://openaccess.thecvf.com/content_ICCV_2019/html/Bragman_Stochastic_Filter_Groups_for_Multi-Task_CNNs_Learning_Specialist_and_Generalist_ICCV_2019_paper.html).
Proceedings of the IEEE International Conference on Computer Vision.
[arXiv:1908.09597](https://arxiv.org/abs/1908.09597) (2019).
+1. Nelson, James, and Stefano Sanvito. Predicting the Curie temperature of
ferromagnets using machine learning.
[arXiv:1906.08534](https://arxiv.org/abs/1906.08534) (2019).
+1. Kirchner, Philipp, et al. [Proteome-wide analysis of chaperone-mediated
autophagy targeting
motifs.](https://journals.plos.org/plosbiology/article?id=10.1371/journal.pbio.3000301)
PLoS biology 17.5 (2019): e3000301.
+1. Gariazzo, S., P. F. de Salas, and S. Pastor Carpi. [Thermalisation of
sterile neutrinos in the early Universe in the 3+ 1 scheme with full mixing
matrix](https://iopscience.iop.org/article/10.1088/1475-7516/2019/07/014).
Journal of Cosmology and Astroparticle Physics, Volume 2019, July 2019.
[arXiv:1905.11290](https://arxiv.org/abs/1905.11290) (2019).
+1. Keniley, Shane, and Davide Curreli. "CRANE: A MOOSE-based Open Source Tool
for Plasma Chemistry Applications."
[arXiv:1905.10004](https://arxiv.org/abs/1905.10004) (2019).
1. Abada, Asmaa, et al. [Inclusive displaced vertex searches for heavy neutral
leptons at the LHC.](https://link.springer.com/article/10.1007/JHEP01(2019)093)
Journal of High Energy Physics 2019.1 (2019): 93.
[ArXiv](https://arxiv.org/abs/1807.10024).
1. Bustamante, Mauricio, and Sanjib Kumar Agarwalla. [Universe’s Worth of
Electrons to Probe Long-Range Interactions of High-Energy Astrophysical
Neutrinos.](https://journals.aps.org/prl/abstract/10.1103/PhysRevLett.122.061103)
Physical review letters 122.6 (2019): 061103.
[ArXiv](https://arxiv.org/abs/1808.02042).
-1. [Diffusive properties of the system water/ethanol/triethylene glycol in
microgravity and ground conditions](https://d-nb.info/1168324432/34). Triller,
Thomas. (Disseration, 2018)
+1. Hamilton, Nicholas E., and Michael Ferry. [ggtern: Ternary diagrams using
ggplot2](https://www.jstatsoft.org/article/view/v087c03). Journal of
Statistical Software 87.1 (2018): 1-17.
1. [Insights into photovoltaic properties of ternary organic solar cells from
phase
diagrams](https://www.tandfonline.com/doi/abs/10.1080/14686996.2018.1509275).
Makha, Mohammed, et al. Science and Technology of Advanced Materials 19.1
(2018): 669-682.
1. [Entropic Equilibria Selection of Stationary Extrema in Finite
Populations](https://doi.org/10.3390/e20090631). Marc Harper
and Dashiell Fryer. Entropy 2018, 20(9), 631.
@@ -23,6 +35,11 @@
1. [pyIAST: Ideal adsorbed solution theory (IAST) Python
package](http://www.sciencedirect.com/science/article/pii/S0010465515004403).
[Cory Simon](https://github.com/CorySimon). Computer Physics Communications
(2016)
1. [Lyapunov Functions for Time-Scale Dynamics on Riemannian Geometries of the
Simplex](https://link.springer.com/article/10.1007/s13235-014-0124-0). Marc
Harper and Dashiell Fryer. Dynamic Games and Applications (2015)
+## Dissertations
+1. Cremer, Pascal. [Algorithms for Cell
Layout](http://hss.ulb.uni-bonn.de/2019/5428/5428.pdf). PhD Dissertation.
Universitäts-und Landesbibliothek Bonn, 2019.
+1. Weinstein, Bryan T. [Microbial Evolutionary Dynamics and Transport on Solid
and Liquid Substrates](https://dash.harvard.edu/handle/1/40050028). Diss. 2018.
+1. Triller, Thomas. [Diffusive properties of the system
water/ethanol/triethylene glycol in microgravity and ground
conditions](https://d-nb.info/1168324432/34). (Disseration, 2018)
+
# How to Cite
[Citation Instructions](CITATION.md)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/python-ternary-1.0.6/examples/scatter_colorbar.py
new/python-ternary-1.0.7/examples/scatter_colorbar.py
--- old/python-ternary-1.0.6/examples/scatter_colorbar.py 2019-04-04
01:58:09.000000000 +0200
+++ new/python-ternary-1.0.7/examples/scatter_colorbar.py 2020-05-10
20:58:46.000000000 +0200
@@ -1,9 +1,9 @@
-"""An example of the colorbor display on the scatter plot."""
+"""An example of the colorbar display on the scatter plot."""
import ternary
import matplotlib.pyplot as plt
-def _en_to_enth(energy,concs,A,B,C):
+def _en_to_enth(energy, concs, A, B, C):
"""Converts an energy to an enthalpy.
Converts energy to enthalpy using the following formula:
@@ -30,7 +30,7 @@
The enthalpy of formation.
"""
- enth = abs(energy - concs[0]*A -concs[1]*B -concs[2]*C)
+ enth = abs(energy - concs[0]*A - concs[1] * B - concs[2] * C)
return enth
@@ -49,19 +49,19 @@
enthalpy : list of lists containing the enthalpies.
"""
- pureA = [energy[0][0],energy[0][1]]
- pureB = [energy[1][0],energy[1][1]]
- pureC = [energy[2][0],energy[2][1]]
+ pureA = [energy[0][0], energy[0][1]]
+ pureB = [energy[1][0], energy[1][1]]
+ pureC = [energy[2][0], energy[2][1]]
enthalpy = []
for en in energy:
c = en[2]
- conc = [float(i)/sum(c) for i in c]
+ conc = [float(i) / sum(c) for i in c]
- CE = _en_to_enth(en[0],conc,pureA[0],pureB[0],pureC[0])
- VASP = _en_to_enth(en[1],conc,pureA[1],pureB[1],pureC[1])
+ CE = _en_to_enth(en[0], conc, pureA[0], pureB[0], pureC[0])
+ VASP = _en_to_enth(en[1], conc, pureA[1], pureB[1], pureC[1])
- enthalpy.append([CE,VASP,c])
+ enthalpy.append([CE, VASP, c])
return enthalpy
@@ -83,11 +83,11 @@
err_vals = []
for en in vals:
c = en[2]
- conc = [float(i)/sum(c) for i in c]
+ conc = [float(i) / sum(c) for i in c]
- err = abs(en[0]-en[1])
+ err = abs(en[0] - en[1])
- err_vals.append([conc,err])
+ err_vals.append([conc, err])
return err_vals
@@ -126,7 +126,7 @@
conc_f.append(int(c[:-1]))
else:
conc_f.append(int(c))
- energy.append([CE,VASP,conc_f])
+ energy.append([CE, VASP, conc_f])
return energy
@@ -148,17 +148,18 @@
colors = []
for er in this_errors:
concs = er[0]
- points.append((concs[0]*100,concs[1]*100,concs[2]*100))
+ points.append((concs[0] * 100, concs[1] * 100, concs[2] * 100))
colors.append(er[1])
scale = 100
figure, tax = ternary.figure(scale=scale)
- tax.boundary(linewidth = 1.0)
- tax.set_title("Errors in Convex Hull Predictions.",fontsize=20)
- tax.gridlines(multiple=10,color="blue")
-
tax.scatter(points,vmax=max(colors),colormap=plt.cm.viridis,colorbar=True,c=colors,cmap=plt.cm.viridis)
+ tax.boundary(linewidth=1.0)
+ tax.set_title("Errors in Convex Hull Predictions.", fontsize=20)
+ tax.gridlines(multiple=10, color="blue")
+ tax.scatter(points, vmax=max(colors), colormap=plt.cm.viridis,
colorbar=True, c=colors, cmap=plt.cm.viridis)
tax.show()
+
if __name__ == "__main__":
- conc_err_plot('../sample_data/scatter_colorbar.txt')
+ conc_err_plot('sample_data/scatter_colorbar.txt')
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/python-ternary-1.0.6/setup.py
new/python-ternary-1.0.7/setup.py
--- old/python-ternary-1.0.6/setup.py 2019-04-04 01:58:09.000000000 +0200
+++ new/python-ternary-1.0.7/setup.py 2020-05-10 20:58:46.000000000 +0200
@@ -1,7 +1,7 @@
import setuptools
from distutils.core import setup
-version = "1.0.6"
+version = "1.0.7"
with open('README.txt') as file:
long_description = file.read()
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/python-ternary-1.0.6/ternary/__init__.py
new/python-ternary-1.0.7/ternary/__init__.py
--- old/python-ternary-1.0.6/ternary/__init__.py 2019-04-04
01:58:09.000000000 +0200
+++ new/python-ternary-1.0.7/ternary/__init__.py 2020-05-10
20:58:46.000000000 +0200
@@ -21,4 +21,4 @@
from .heatmapping import heatmap, heatmapf, svg_heatmap
from .ternary_axes_subplot import figure, TernaryAxesSubplot
-__version__ = "1.0.6"
+__version__ = "1.0.7"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/python-ternary-1.0.6/ternary/lines.py
new/python-ternary-1.0.7/ternary/lines.py
--- old/python-ternary-1.0.6/ternary/lines.py 2019-04-04 01:58:09.000000000
+0200
+++ new/python-ternary-1.0.7/ternary/lines.py 2020-05-10 20:58:46.000000000
+0200
@@ -287,7 +287,10 @@
tick = ticks[index]
line(ax, loc1, loc2, color=axes_colors['r'], **kwargs)
x, y = project_point(text_location)
- s = tick_formats['r'] % tick
+ if isinstance(tick, str):
+ s = tick
+ else:
+ s = tick_formats['r'] % tick
ax.text(x, y, s, horizontalalignment="center",
color=axes_colors['r'], fontsize=fontsize)
@@ -306,7 +309,10 @@
tick = ticks[-(index+1)]
line(ax, loc1, loc2, color=axes_colors['l'], **kwargs)
x, y = project_point(text_location)
- s = tick_formats['l'] % tick
+ if isinstance(tick, str):
+ s = tick
+ else:
+ s = tick_formats['l'] % tick
ax.text(x, y, s, horizontalalignment="center",
color=axes_colors['l'], fontsize=fontsize)
@@ -325,6 +331,9 @@
tick = ticks[index]
line(ax, loc1, loc2, color=axes_colors['b'], **kwargs)
x, y = project_point(text_location)
- s = tick_formats['b'] % tick
+ if isinstance(tick, str):
+ s = tick
+ else:
+ s = tick_formats['b'] % tick
ax.text(x, y, s, horizontalalignment="center",
color=axes_colors['b'], fontsize=fontsize)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/python-ternary-1.0.6/ternary/plotting.py
new/python-ternary-1.0.7/ternary/plotting.py
--- old/python-ternary-1.0.6/ternary/plotting.py 2019-04-04
01:58:09.000000000 +0200
+++ new/python-ternary-1.0.7/ternary/plotting.py 2020-05-10
20:58:46.000000000 +0200
@@ -43,9 +43,9 @@
if not ax:
return
if axis.lower() in ["both", "x", "horizontal"]:
- ax.set_xticks([], [])
+ ax.set_xticks([], minor=False)
if axis.lower() in ["both", "y", "vertical"]:
- ax.set_yticks([], [])
+ ax.set_yticks([], minor=False)
## Curve Plotting ##
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/python-ternary-1.0.6/ternary/ternary_axes_subplot.py
new/python-ternary-1.0.7/ternary/ternary_axes_subplot.py
--- old/python-ternary-1.0.6/ternary/ternary_axes_subplot.py 2019-04-04
01:58:09.000000000 +0200
+++ new/python-ternary-1.0.7/ternary/ternary_axes_subplot.py 2020-05-10
20:58:46.000000000 +0200
@@ -313,10 +313,12 @@
ax = self.get_axes()
ax.legend(*args, **kwargs)
- def savefig(self, filename, dpi=200, format=None):
+ def savefig(self, filename, **kwargs):
self._redraw_labels()
fig = self.get_figure()
- fig.savefig(filename, format=format, dpi=dpi)
+ if 'dpi' not in kwargs:
+ kwargs['dpi'] = 200
+ fig.savefig(filename, **kwargs)
def show(self):
self._redraw_labels()
@@ -339,7 +341,7 @@
self._ticks[k] = numpy.linspace(
self._axis_limits[k][0],
self._axis_limits[k][1],
- self._boundary_scale / float(multiple) + 1
+ int(self._boundary_scale / float(multiple) + 1)
).tolist()
def set_custom_ticks(self, locations=None, clockwise=False, multiple=1,