From 6e43ccf32bb2ce7abce14ebf7e5bda7fbb497188 Mon Sep 17 00:00:00 2001 From: Glen Hocky Date: Wed, 27 Jan 2021 19:41:24 -0500 Subject: [PATCH] Fixed bug in get_thermo_data where columns is set to None instead of an empty list --- python/lammps/pylammps.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/lammps/pylammps.py b/python/lammps/pylammps.py index 1ec45d43b5..47a2a5a6ab 100644 --- a/python/lammps/pylammps.py +++ b/python/lammps/pylammps.py @@ -329,7 +329,7 @@ def get_thermo_data(output): elif line.startswith("Loop time of "): in_run = False - columns = None + columns = [] thermo_data = variable_set('ThermoData', current_run) r = {'thermo' : thermo_data } runs.append(namedtuple('Run', list(r.keys()))(*list(r.values())))