From 8733fe5a9b2aab0578d74271fc53b4c9171b2ac9 Mon Sep 17 00:00:00 2001 From: Christoph Date: Fri, 27 Sep 2024 09:56:21 -0700 Subject: [PATCH] minor bugfixes --- fmlc/__init__.py | 2 +- fmlc/utility.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fmlc/__init__.py b/fmlc/__init__.py index 901bfed..41736d4 100644 --- a/fmlc/__init__.py +++ b/fmlc/__init__.py @@ -1,4 +1,4 @@ -__version__ = "1.3.1" +__version__ = "1.3.2" from .baseclasses import eFMU from .stackedclasses import controller_stack diff --git a/fmlc/utility.py b/fmlc/utility.py index c339d8d..5817e13 100644 --- a/fmlc/utility.py +++ b/fmlc/utility.py @@ -52,7 +52,7 @@ def read_csv_logs(name='MGC', path='', only_latest=True): files = [f for f in os.listdir(path) if f.split('_')[0]==name and f.endswith('.csv')] modules = np.unique([f.split('_')[1] for f in files]) for module in modules: - mf = sorted([f for f in files if f.startswith(f'{name}_{module}')]) + mf = sorted([f for f in files if f.startswith(f'{name}_{module}_')]) if only_latest: f = mf[-1] # latest l = pd.read_csv(os.path.join(path, f), index_col=0)