Skip to content

Commit

Permalink
minor bugfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristophGehbauer committed Sep 27, 2024
1 parent e7c1594 commit 8733fe5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion fmlc/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "1.3.1"
__version__ = "1.3.2"

from .baseclasses import eFMU
from .stackedclasses import controller_stack
Expand Down
2 changes: 1 addition & 1 deletion fmlc/utility.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 8733fe5

Please sign in to comment.