From 44ea6aa0f7f0de19cab1d7be4d8659305b91e945 Mon Sep 17 00:00:00 2001 From: "Anastasia K. Lavrinenko" <75916717+AstyLavrinenko@users.noreply.github.com> Date: Mon, 27 Jan 2025 15:38:29 +0100 Subject: [PATCH] Correct label in radial_distribution_between_species Change specie_1 to specie_2 in str2 --- src/gemdat/rdf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gemdat/rdf.py b/src/gemdat/rdf.py index c2b58db..c2d4289 100644 --- a/src/gemdat/rdf.py +++ b/src/gemdat/rdf.py @@ -250,6 +250,6 @@ def normalize(radius: np.ndarray) -> np.ndarray: counts = rdf / norm str1 = specie_1 if isinstance(specie_1, str) else '/'.join(specie_1) - str2 = specie_1 if isinstance(specie_2, str) else '/'.join(specie_2) + str2 = specie_2 if isinstance(specie_2, str) else '/'.join(specie_2) return RDFData(x=bins[:-1], y=counts, label=f'{str1}-{str2}', state='')