From 6aae1cd6ebaac7815ebe4b3453553b3fe4866824 Mon Sep 17 00:00:00 2001 From: Tiago Pereira <1014003+tiagopereira@users.noreply.github.com> Date: Tue, 5 Mar 2019 16:53:42 +0100 Subject: [PATCH] Bugfix in rh15d.AtomFile --- helita/sim/rh15d.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/helita/sim/rh15d.py b/helita/sim/rh15d.py index 32431725..858f8f95 100644 --- a/helita/sim/rh15d.py +++ b/helita/sim/rh15d.py @@ -199,7 +199,7 @@ def __init__(self, filename, format='RH'): self.read_atom(filename, format) @staticmethod - def _read_atom_levels(data, format='RH'): + def read_atom_levels(data, format='RH'): """ Reads levels part of atom file """ @@ -261,8 +261,8 @@ def read_atom(self, filename, format='RH'): self.nfixed = nfixed counter += 1 # read levels - self.levels = _read_atom_levels(data[counter:counter + nlevel], - self.format) + self.levels = self.read_atom_levels(data[counter:counter + nlevel], + self.format) counter += nlevel # read lines tmp = StringIO('\n'.join(data[counter:counter + nline]))