-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathplugin.py
More file actions
44 lines (31 loc) · 1.05 KB
/
plugin.py
File metadata and controls
44 lines (31 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
"""Dummy plugin file."""
# SPDX-FileCopyrightText: 2016-2024 University of Lausanne
# SPDX-FileCopyrightText: 2020-2021 Helmholtz-Zentrum Geesthacht
# SPDX-FileCopyrightText: 2021-2024 Helmholtz-Zentrum hereon GmbH
#
# SPDX-License-Identifier: LGPL-3.0-only
from psyplot.config.rcsetup import RcParams, validate_dict
plugin_version = "1.0.0"
rcParams = RcParams(
defaultParams={
"test": [1, lambda i: int(i)],
"project.plotters": [
{
"test_plotter": {
"module": "psyplot_test.plotter",
"plotter_name": "TestPlotter",
"import_plotter": True,
}
},
validate_dict,
],
}
)
rcParams.update_from_defaultParams()
patch_check = []
checking_patch = False
def test_patch(plotter_d, versions):
if not checking_patch:
raise ValueError("Accidently applied the patch!")
patch_check.append({"plotter": plotter_d, "versions": versions})
patches = {("psyplot_test.plotter", "TestPlotter"): test_patch}