Skip to content

Commit

Permalink
Some minor cleaning up.
Browse files Browse the repository at this point in the history
  • Loading branch information
agarny committed Dec 9, 2019
1 parent f882ec7 commit daa172b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/plugins/support/PythonSupport/tests/data/tests.py
@@ -1,10 +1,9 @@
import math
import os

import opencor as oc
import os


def run_simulation(title, file_name_or_url, first=True):
def run_simulation(title: str, file_name_or_url: str, first: bool = True) -> object:
if not first:
print()

Expand All @@ -17,7 +16,8 @@ def run_simulation(title, file_name_or_url, first=True):
if file_name_or_url.startswith('https://'):
simulation = oc.open_simulation(file_name_or_url)
else:
simulation = oc.open_simulation(os.path.dirname(__file__) + '/../../../../../../models/tests/' + file_name_or_url)
simulation = oc.open_simulation(
os.path.dirname(__file__) + '/../../../../../../models/tests/' + file_name_or_url)

print(' - Run file...')

Expand Down

0 comments on commit daa172b

Please sign in to comment.