-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4dbac3b
commit 06842c2
Showing
2 changed files
with
11 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 10 additions & 1 deletion
11
tests/next_tests/regression_tests/embedded_tests/test_domain_pickle.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,22 @@ | ||
# GT4Py - GridTools Framework | ||
# | ||
# Copyright (c) 2014-2024, ETH Zurich | ||
# All rights reserved. | ||
# | ||
# Please, refer to the LICENSE file in the root directory. | ||
# SPDX-License-Identifier: BSD-3-Clause | ||
|
||
import pickle | ||
|
||
from gt4py.next import common | ||
|
||
I = common.Dimension("I") | ||
J = common.Dimension("J") | ||
|
||
|
||
def test_domain_pickle_after_slice(): | ||
domain = common.domain(((I, (2, 4)), (J, (3, 5)))) | ||
# use slice_at to populate cached property | ||
domain.slice_at[2:5, 5:7] | ||
|
||
pickle.dumps(domain) | ||
pickle.dumps(domain) |