Skip to content

Commit

Permalink
fixed depreciation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristophGehbauer committed Sep 16, 2024
1 parent 4fc13d3 commit e7c1594
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions fmlc/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
__version__ = "1.3.0"
__version__ = "1.3.1"

from .baseclasses import eFMU
from .stackedclasses import controller_stack
from .triggering import triggering
from .utility import check_error, pdlog_to_df
from .utility import check_error, pdlog_to_df, read_csv_logs
3 changes: 2 additions & 1 deletion fmlc/utility.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import os
import io
import numpy as np
import pandas as pd

Expand All @@ -22,7 +23,7 @@ def pdlog_to_df(log):
res = pd.DataFrame()
for r in log.items():
try:
t = pd.read_json(r[1]).set_index('name')
t = pd.read_json(io.StringIO(r[1])).set_index('name')
t.index.name = None
t = t.stack(0)
t.index = ['-'.join(ix) for ix in t.index]
Expand Down

0 comments on commit e7c1594

Please sign in to comment.