Skip to content

Commit

Permalink
- remove warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
fbergmann committed Jan 27, 2022
1 parent 1133fad commit 778879a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions basico/model_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,6 @@ def save_model(filename, **kwargs):
:return: None
"""
# type: (str, **kwargs) -> None
model = kwargs.get('model', get_current_model())
assert (isinstance(model, COPASI.CDataModel))
file_type = kwargs.get('type', 'copasi').lower()
Expand Down Expand Up @@ -458,7 +457,8 @@ def save_model_and_data(filename, **kwargs):
continue

if os.path.exists(new_name):
logging.warning("Experimental data file {0} does already exist, and will not be overwritten.".format(new_name))
logging.warning("Experimental data file {0} does already exist, and will not be overwritten."
.format(new_name))
else:
shutil.copyfile(old_name, new_name)
old_names[old_name] = new_name
Expand Down Expand Up @@ -533,7 +533,7 @@ def open_copasi(filename='', **kwargs):

if platform.system() == 'Darwin':
subprocess.call(('open', name))
elif platform.system() == 'Windows': # Windows
elif platform.system() == 'Windows': # Windows
os.startfile(name)
else: # linux
subprocess.call(('xdg-open', name))
Expand Down

0 comments on commit 778879a

Please sign in to comment.