File tree Expand file tree Collapse file tree 3 files changed +25
-1
lines changed Expand file tree Collapse file tree 3 files changed +25
-1
lines changed Original file line number Diff line number Diff line change 87
87
88
88
# Run the benchmark tests
89
89
- name : Run benchmarks
90
- uses : CodSpeedHQ/action@v2.4.3
90
+ uses : CodSpeedHQ/action@v3.0.0
91
91
with :
92
92
# 'bash -el -c' is needed to use the custom shell.
93
93
# See https://github.com/CodSpeedHQ/action/issues/65.
Original file line number Diff line number Diff line change @@ -12,6 +12,16 @@ to submit a pull request with your recommended addition to the
12
12
13
13
:::::{grid} 1 2 2 3
14
14
15
+ ::::{grid-item-card} 2024 PyGMT Webinar using Google Colab (in Portuguese)
16
+ :link : https://github.com/andrebelem/Oficina_PyGMT
17
+ :text-align: center
18
+ :margin: 0 3 0 0
19
+
20
+ ![ ] ( https://github.com/andrebelem/Oficina_PyGMT/raw/main/Datasets/3D_sample.png )
21
+ +++
22
+ Andre Belem
23
+ ::::
24
+
15
25
::::{grid-item-card} 2022 EGU SC5.2: Crafting beautiful maps with PyGMT
16
26
:link : https://www.generic-mapping-tools.org/egu22pygmt/
17
27
:text-align: center
Original file line number Diff line number Diff line change @@ -96,6 +96,18 @@ def _check_ghostscript_version(gs_version: str) -> str | None:
96
96
return None
97
97
98
98
99
+ def _get_gdal_version ():
100
+ """
101
+ Get GDAL version.
102
+ """
103
+ try :
104
+ from osgeo import gdal
105
+
106
+ return gdal .__version__
107
+ except ImportError :
108
+ return None
109
+
110
+
99
111
def show_versions (file = sys .stdout ):
100
112
"""
101
113
Print various dependency versions which are useful when submitting bug reports.
@@ -120,6 +132,7 @@ def show_versions(file=sys.stdout):
120
132
}
121
133
deps = [Requirement (v ).name for v in importlib .metadata .requires ("pygmt" )]
122
134
gs_version = _get_ghostscript_version ()
135
+ gdal_version = _get_gdal_version ()
123
136
124
137
lines = []
125
138
lines .append ("PyGMT information:" )
@@ -128,6 +141,7 @@ def show_versions(file=sys.stdout):
128
141
lines .extend ([f" { key } : { val } " for key , val in sys_info .items ()])
129
142
lines .append ("Dependency information:" )
130
143
lines .extend ([f" { modname } : { _get_module_version (modname )} " for modname in deps ])
144
+ lines .append (f" gdal: { gdal_version } " )
131
145
lines .append (f" ghostscript: { gs_version } " )
132
146
lines .append ("GMT library information:" )
133
147
lines .extend ([f" { key } : { val } " for key , val in _get_clib_info ().items ()])
You can’t perform that action at this time.
0 commit comments