We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6c5751f + de016cf commit 13db443Copy full SHA for 13db443
1 file changed
modelitool/simulate.py
@@ -196,8 +196,11 @@ def _strip_tz(x):
196
return x.replace(tzinfo=None) if x.tzinfo is not None else x
197
return x
198
199
- start_tz = start.tz if isinstance(start, pd.Timestamp) \
+ start_tz = (
200
+ start.tz
201
+ if isinstance(start, pd.Timestamp)
202
else getattr(start, "tzinfo", None)
203
+ )
204
205
start = _strip_tz(start)
206
stop = _strip_tz(stop)
@@ -356,7 +359,7 @@ def load_library(lib_path):
356
359
lib_name = lib_path.stem
357
360
358
361
omc.sendExpression(f'setModelicaPath("{modelica_path}")')
- success = omc.sendExpression(f'loadModel({lib_name})')
362
+ success = omc.sendExpression(f"loadModel({lib_name})")
363
364
if not success:
365
err = omc.sendExpression("getErrorString()")
0 commit comments