Skip to content

Commit 7cbac32

Browse files
8.1.4
1 parent 30a59d4 commit 7cbac32

7 files changed

Lines changed: 16600 additions & 16571 deletions

File tree

Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ dclean:
5757
find $(HOME)/.local/share/QGIS/QGIS3/profiles/default/python/plugins/$(PLUGINNAME) -iname "*.pyc" -delete
5858
find $(HOME)/.local/share/QGIS/QGIS3/profiles/default/python/plugins/$(PLUGINNAME) -iname "__pycache__" -delete
5959
find $(HOME)/.local/share/QGIS/QGIS3/profiles/default/python/plugins/$(PLUGINNAME) -iname "*.directory" -delete
60+
find $(HOME)/.local/share/QGIS/QGIS3/profiles/default/python/plugins/$(PLUGINNAME) -iname "*.zip" -delete
61+
find $(HOME)/.local/share/QGIS/QGIS3/profiles/default/python/plugins/$(PLUGINNAME) -iname "remotior_sensus" -exec rm -rv {} +
6062
find $(HOME)/.local/share/QGIS/QGIS3/profiles/default/python/plugins/$(PLUGINNAME) -iname ".svn" -prune -exec rm -Rf {} \;
6163

6264
# The derase deletes deployed plugin

__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def description():
3434

3535

3636
def version():
37-
return 'Version 8.1.3 - Infinity'
37+
return 'Version 8.1.4 - Infinity'
3838

3939

4040
def icon():

core/ui_utils.py

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
# If not, see <https://www.gnu.org/licenses/>.
2222

2323

24+
import os
25+
import sys
2426
import ssl
2527
import smtplib
2628

@@ -32,6 +34,11 @@
3234
QHBoxLayout, QVBoxLayout, QToolButton, QApplication
3335
)
3436

37+
# sound for Windows
38+
try:
39+
import winsound
40+
except Exception as error:
41+
str(error)
3542

3643
cfg = __import__(str(__name__).split('.')[0] + '.core.config', fromlist=[''])
3744

@@ -261,6 +268,7 @@ def remove_progress_bar(self, smtp=None):
261268
subject=self.translate('Semi-Automatic Classification Plugin'),
262269
message=self.translate('%s: process finished' % smtp)
263270
)
271+
self.finish_sound()
264272

265273
# translate
266274
@staticmethod
@@ -301,3 +309,25 @@ def send_smtp_message(subject: str = None, message: str = None):
301309
server.quit()
302310
except Exception as err:
303311
str(err)
312+
313+
# finish sound
314+
@staticmethod
315+
def finish_sound():
316+
if cfg.qgis_registry[cfg.reg_sound] == 2:
317+
try:
318+
beeps(800, 0.2)
319+
beeps(600, 0.3)
320+
beeps(700, 0.5)
321+
except Exception as err:
322+
str(err)
323+
324+
325+
# beep sound
326+
def beeps(frequency: int, duration: float):
327+
if sys.platform.startswith('win'):
328+
winsound.Beep(frequency, int(duration * 1000))
329+
elif sys.platform.startswith('linux'):
330+
os.system(
331+
'play --no-show-progress --null --channels 1 synth %s sine %s'
332+
% (str(duration), str(frequency))
333+
)

core/util_qgis.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,6 @@
2828
QgsCoordinateReferenceSystem
2929
)
3030

31-
# sound for Windows
32-
try:
33-
import winsound
34-
except Exception as error:
35-
str(error)
36-
3731
cfg = __import__(str(__name__).split('.')[0] + '.core.config', fromlist=[''])
3832

3933

docs/repository.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?xml version = '1.0' encoding = 'UTF-8'?>
22
<plugins>
3-
<pyqgis_plugin name="Semi-Automatic Classification Plugin - master" version="8.1.3" plugin_id="284">
3+
<pyqgis_plugin name="Semi-Automatic Classification Plugin - master" version="8.1.4" plugin_id="284">
44
<description><![CDATA[The Semi-Automatic Classification Plugin (SCP) allows for the supervised classification of remote sensing images, providing tools for the download, the preprocessing and postprocessing of images.]]></description>
55
<about><![CDATA[Developed by Luca Congedo, the Semi-Automatic Classification Plugin (SCP) allows for the supervised classification of remote sensing images, providing tools for the download, the preprocessing and postprocessing of images. Search and download is available for Landsat, Sentinel-2 images. Several algorithms are available for the land cover classification. This plugin requires the installation of Remotior Sensus, GDAL, OGR, Numpy, SciPy, and Matplotlib. For more information please visit https://fromgistors.blogspot.com .]]></about>
6-
<version>8.1.3</version>
6+
<version>8.1.4</version>
77
<qgis_minimum_version>3.0.0</qgis_minimum_version>
88
<qgis_maximum_version>3.99.0</qgis_maximum_version>
99
<homepage><![CDATA[https://fromgistors.blogspot.com/p/semi-automatic-classification-plugin.html]]></homepage>

metadata.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name=Semi-Automatic Classification Plugin
33
qgisMinimumVersion=3.00
44
description=The Semi-Automatic Classification Plugin (SCP) allows for the supervised classification of remote sensing images, providing tools for the download, the preprocessing and postprocessing of images.
5-
version=8.1.3
5+
version=8.1.4
66
about=Developed by Luca Congedo, the Semi-Automatic Classification Plugin (SCP) allows for the supervised classification of remote sensing images, providing tools for the download, the preprocessing and postprocessing of images. Search and download is available for Landsat, Sentinel-2 images. Several algorithms are available for the land cover classification. This plugin requires the installation of Remotior Sensus, GDAL, OGR, Numpy, SciPy, and Matplotlib. For more information please visit https://fromgistors.blogspot.com .
77

88
author=Luca Congedo
@@ -13,6 +13,9 @@ icon=semiautomaticclassificationplugin.png
1313

1414
changelog=
1515

16+
8.1.4
17+
-fixed finish sound
18+
1619
8.1.3
1720
-fixed classification tool
1821

0 commit comments

Comments
 (0)