Skip to content

Commit 0d12ce4

Browse files
committed
fix pylint errors
1 parent 28261e5 commit 0d12ce4

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

cime_config/atm_musica_config.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
and install the MUSICA library, as well as to download the MUSICA configuration."
44
"""
55

6-
musica_repo_url = "https://github.com/NCAR/musica.git"
7-
musica_tag = "802bc9041f964a7edd5ec896bec8cdc0c90de50b"
8-
chemistry_data_repo_url = "https://github.com/NCAR/cam-sima-chemistry-data.git"
9-
chemistry_data_tag = "b81cbc2e61c41ecd2d09167d6736daf1bf1be149"
6+
MUSICA_REPO_URL = "https://github.com/NCAR/musica.git"
7+
MUSICA_TAG = "802bc9041f964a7edd5ec896bec8cdc0c90de50b"
8+
CHEMISTRY_DATA_REPO_URL = "https://github.com/NCAR/cam-sima-chemistry-data.git"
9+
CHEMISTRY_DATA_TAG = "b81cbc2e61c41ecd2d09167d6736daf1bf1be149"

cime_config/buildlib

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ import subprocess
1212
import logging
1313

1414
from cam_config import ConfigCAM # CAM's configure structure
15-
from atm_musica_config import musica_repo_url, musica_tag
16-
from atm_musica_config import chemistry_data_repo_url, chemistry_data_tag
15+
from atm_musica_config import MUSICA_REPO_URL, MUSICA_TAG
16+
from atm_musica_config import CHEMISTRY_DATA_REPO_URL, CHEMISTRY_DATA_TAG
1717

1818
# Check for the CIME library, and add it
1919
# to the python path:
@@ -254,7 +254,7 @@ def _build_musica_library(case: Case) -> None:
254254
install_dir_name = "install"
255255
build_type = "Release"
256256
caseroot = os.path.normpath(case.get_value("CASEROOT"))
257-
_clone_and_checkout(musica_repo_url, musica_tag, caseroot)
257+
_clone_and_checkout(MUSICA_REPO_URL, MUSICA_TAG, caseroot)
258258

259259
bld_path = os.path.join(caseroot, "musica", "build")
260260
if os.path.exists(bld_path):
@@ -269,8 +269,8 @@ def _build_musica_library(case: Case) -> None:
269269
"cmake",
270270
f"-DCMAKE_INSTALL_PREFIX={install_dir_name}",
271271
f"-DCMAKE_BUILD_TYPE={build_type}",
272-
f"-DMUSICA_ENABLE_TESTS=OFF",
273-
f"-DMUSICA_BUILD_FORTRAN_INTERFACE=ON",
272+
"-DMUSICA_ENABLE_TESTS=OFF",
273+
"-DMUSICA_BUILD_FORTRAN_INTERFACE=ON",
274274
".."
275275
]
276276
result = subprocess.run(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True)
@@ -324,7 +324,7 @@ def _download_musica_configuration(download_dest: str) -> None:
324324
"""
325325
musica_config_dir_name = "musica_configurations"
326326

327-
_clone_and_checkout(chemistry_data_repo_url, chemistry_data_tag, download_dest)
327+
_clone_and_checkout(CHEMISTRY_DATA_REPO_URL, CHEMISTRY_DATA_TAG, download_dest)
328328

329329
original_dir = os.path.join(download_dest, "cam-sima-chemistry-data", "mechanisms")
330330
renamed_dir = os.path.join(download_dest, "cam-sima-chemistry-data", musica_config_dir_name)
@@ -377,4 +377,4 @@ def _clone_and_checkout(repo_url: str, tag_name: str, clone_dest: str):
377377
###############################################################################
378378

379379
if __name__ == "__main__":
380-
_build_cam()
380+
_build_cam()

0 commit comments

Comments
 (0)