Skip to content

Commit fa71523

Browse files
authored
Merge pull request #5 from LIVVkit/mkstratos/update_to_eam
Change all use of "CAM" to EAM for new E3SM version
2 parents 83a31f6 + 7f1db8f commit fa71523

File tree

7 files changed

+16
-16
lines changed

7 files changed

+16
-16
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2019 UT-BATTELLE, LLC
1+
Copyright (c) 2018-2021 UT-BATTELLE, LLC
22
All rights reserved.
33

44
Redistribution and use in source and binary forms, with or without

evv4esm/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# coding=utf-8
2-
# Copyright (c) 2018 UT-BATTELLE, LLC
2+
# Copyright (c) 2018-2021 UT-BATTELLE, LLC
33
# All rights reserved.
44
#
55
# Redistribution and use in source and binary forms, with or without
@@ -29,7 +29,7 @@
2929

3030
from __future__ import absolute_import, division, print_function, unicode_literals
3131

32-
__version_info__ = (0, 2, 1)
32+
__version_info__ = (0, 2, 3)
3333
__version__ = '.'.join(str(vi) for vi in __version_info__)
3434

3535
PASS_COLOR = '#389933'

evv4esm/ensembles/e3sm.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env python
22
# coding=utf-8
3-
# Copyright (c) 2018 UT-BATTELLE, LLC
3+
# Copyright (c) 2018-2021 UT-BATTELLE, LLC
44
# All rights reserved.
55
#
66
# Redistribution and use in source and binary forms, with or without
@@ -47,7 +47,7 @@
4747
def component_file_instance(component, case_file):
4848
search_regex = r'{c}_[0-9]+'.format(c=component)
4949
result = re.search(search_regex, case_file).group(0)
50-
return int(result.replace('cam_', ''))
50+
return int(result.replace('{}_'.format(component), ''))
5151

5252

5353
def file_date_str(case_file, style='short'):

evv4esm/extensions/ks.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env python
22
# coding=utf-8
3-
# Copyright (c) 2018 UT-BATTELLE, LLC
3+
# Copyright (c) 2018-2021 UT-BATTELLE, LLC
44
# All rights reserved.
55
#
66
# Redistribution and use in source and binary forms, with or without
@@ -199,8 +199,8 @@ def case_files(args):
199199
key1 += '1'
200200
key2 += '2'
201201

202-
f_sets = {key1: e3sm.component_monthly_files(args.test_dir, 'cam', args.ninst),
203-
key2: e3sm.component_monthly_files(args.ref_dir, 'cam', args.ninst)}
202+
f_sets = {key1: e3sm.component_monthly_files(args.test_dir, 'eam', args.ninst),
203+
key2: e3sm.component_monthly_files(args.ref_dir, 'eam', args.ninst)}
204204

205205
for key in f_sets:
206206
# Require case files for at least the last 12 months.

evv4esm/extensions/pg.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env python
22
# coding=utf-8
3-
# Copyright (c) 2015,2016, UT-BATTELLE, LLC
3+
# Copyright (c) 2015-2021 UT-BATTELLE, LLC
44
# All rights reserved.
55
#
66
# Redistribution and use in source and binary forms, with or without
@@ -139,7 +139,7 @@ def rmse_writer(file_name, rmse, perturbation_names, perturbation_variables, ini
139139

140140
for icond in range(0, ninit):
141141
# NOTE: Zero vs One based indexing
142-
nc_init_cond[icond] = init_file_template.format('cam', 'i', icond+1)
142+
nc_init_cond[icond] = init_file_template.format('eam', 'i', icond+1)
143143

144144

145145
def variables_rmse(ifile_test, ifile_cntl, var_list, var_pefix=''):

evv4esm/extensions/tsc.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env python
22
# coding=utf-8
3-
# Copyright (c) 2015,2016, UT-BATTELLE, LLC
3+
# Copyright (c) 2015-2021 UT-BATTELLE, LLC
44
# All rights reserved.
55
#
66
# Redistribution and use in source and binary forms, with or without
@@ -163,18 +163,18 @@ def main(args):
163163
args.test_case += '1'
164164
args.ref_case += '2'
165165

166-
file_search_glob = '{d}/*cam_????.h0.0001-01-01-?????.nc.{s}'
166+
file_search_glob = '{d}/*eam_????.h0.0001-01-01-?????.nc.{s}'
167167
truth_ens = {instance: list(files) for instance, files in groupby(
168168
sorted(glob.glob(file_search_glob.format(d=args.ref_dir, s='DT0001'))),
169-
key=lambda f: e3sm.component_file_instance('cam', f))}
169+
key=lambda f: e3sm.component_file_instance('eam', f))}
170170

171171
ref_ens = {instance: list(files) for instance, files in groupby(
172172
sorted(glob.glob(file_search_glob.format(d=args.ref_dir, s='DT0002'))),
173-
key=lambda f: e3sm.component_file_instance('cam', f))}
173+
key=lambda f: e3sm.component_file_instance('eam', f))}
174174

175175
test_ens = {instance: list(files) for instance, files in groupby(
176176
sorted(glob.glob(file_search_glob.format(d=args.test_dir, s='DT0002'))),
177-
key=lambda f: e3sm.component_file_instance('cam', f))}
177+
key=lambda f: e3sm.component_file_instance('eam', f))}
178178

179179
# So, we want a pandas dataframe that will have the columns :
180180
# (test/ref, ensemble, seconds, l2_global, l2_land, l2_ocean)

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# coding=utf-8
2-
# Copyright (c) 2018 UT-BATTELLE, LLC
2+
# Copyright (c) 2018-2021 UT-BATTELLE, LLC
33
# All rights reserved.
44
#
55
# Redistribution and use in source and binary forms, with or without

0 commit comments

Comments
 (0)