Skip to content

Commit 3cbc4e9

Browse files
authored
Merge pull request #271 from jedwards4b/enhancement/shorter_test_data_list
make the amount of data required to download minimal for testing
2 parents df7ccea + 3a4435b commit 3cbc4e9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cime_config/stream_cdeps.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,9 @@ def create_stream_xml(
204204
data_year_first, data_year_last = self._get_stream_first_and_last_dates(
205205
self.stream_nodes, case
206206
)
207+
# If this is a test we don't need the full extent of the data
208+
if case.get_value("TEST"):
209+
data_year_first = max(data_year_last-2, data_year_first)
207210

208211
# now write the data model streams xml file
209212
stream_vars = {}

0 commit comments

Comments
 (0)