mirror of https://gitlab.com/pamhyr/pamhyr2
Compare commits
2 Commits
016f3fc73c
...
a4423e45f8
| Author | SHA1 | Date |
|---|---|---|
|
|
a4423e45f8 | |
|
|
1386c592bf |
|
|
@ -19,4 +19,5 @@
|
|||
"python-pyqt@5" "python-pyqt5-sip"
|
||||
"python-pyqtgraph" "python-qscintilla"
|
||||
"python-numpy@1" "python-shapely" "python-pyshp"
|
||||
"python-matplotlib" "python-rasterio"))
|
||||
"python-matplotlib" "python-colorama"
|
||||
"python-rasterio"))
|
||||
|
|
|
|||
|
|
@ -19,7 +19,11 @@
|
|||
import os
|
||||
import csv
|
||||
import logging
|
||||
# import rasterio
|
||||
try:
|
||||
import rasterio
|
||||
_rasterio_loaded = True
|
||||
except:
|
||||
_rasterio_loaded = False
|
||||
|
||||
from numpy import sqrt
|
||||
|
||||
|
|
@ -337,10 +341,12 @@ class ResultsWindow(PamhyrWindow):
|
|||
"action_add": self._add_custom_plot,
|
||||
"action_export": self._export,
|
||||
# "action_export": self.export_current,
|
||||
"action_Geo_tiff": self.import_geotiff
|
||||
}
|
||||
self.find(QAction, "action_Geo_tiff").setEnabled(False)
|
||||
self.find(QAction, "action_Geo_tiff").setVisible(False)
|
||||
if _rasterio_loaded:
|
||||
actions["action_Geo_tiff"] = self.import_geotiff
|
||||
else:
|
||||
self.find(QAction, "action_Geo_tiff")\
|
||||
.setEnabled(False)
|
||||
|
||||
if len(self._results) > 1:
|
||||
self.find(QAction, "action_reload").setEnabled(False)
|
||||
|
|
|
|||
Loading…
Reference in New Issue