Skip to content

Commit

Permalink
edits addressing pylint complains about no value for arguments in calls
Browse files Browse the repository at this point in the history
  • Loading branch information
ilaflott committed Jan 6, 2025
1 parent ada0dc7 commit ab2708e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 3 additions & 3 deletions fre/make/tests/compilation/test_run_fremake_builds.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
''' this file holds any run-fremake tests that actually compile the model code'''
''' these tests assume your os is the ci image (gcc 14 + mpich on rocky 8)'''
''' you may need to add mkmf to your path or make other adjustments to the mkmf template to run elsewhere'''
''' this file holds any run-fremake tests that actually compile the model code
these tests assume your os is the ci image (gcc 14 + mpich on rocky 8)
you may need to add mkmf to your path or make other adjustments to the mkmf template to run elsewhere'''

import os
from shutil import rmtree
Expand Down
6 changes: 5 additions & 1 deletion fre/pp/run_script.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,15 @@

import subprocess

def pp_run_subtool(experiment, platform, target):
def pp_run_subtool(experiment = None, platform = None, target = None):
"""
Start or restart the Cylc workflow identified by:
<experiment>__<platform>__<target>
"""
if None in [experiment, platform, target]:
raise ValueError( 'experiment, platform, and target must all not be None.'
'currently, their values are...'
f'{experiment} / {platform} / {target}')

name = experiment + '__' + platform + '__' + target
cmd = f"cylc play {name}"
Expand Down

0 comments on commit ab2708e

Please sign in to comment.