Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
971af15
merged eliott's code into the UI
Lemap1 May 18, 2026
92a7eaa
added gpu processing for SOLWEIG
Lemap1 May 18, 2026
8f5b16d
feat/added gpu for skyview factor and solweig
Lemap1 May 20, 2026
cff423a
fix/bugs
Lemap1 May 20, 2026
13c5252
really optimized algorithm.
Lemap1 May 22, 2026
2c9f104
Changed solweig config
Lemap1 May 26, 2026
2626a3f
fix/removed french comments in wallalgorithms.py
Lemap1 May 27, 2026
9e95e86
auto formating files via black
Lemap1 May 27, 2026
d224f58
formated code and synced fork
Lemap1 May 27, 2026
c50294c
merged some changes from eliott's PR
Lemap1 May 27, 2026
e72551d
fix/security
Lemap1 May 27, 2026
e814759
Merged some fixes from eliott
Lemap1 May 27, 2026
d4f05d8
added gpu calcuation, and torch is not mandatory to run umep-processi…
Lemap1 Jun 5, 2026
ff2bba1
fix/sklearn error
Lemap1 Jun 5, 2026
9cd6a67
code formating and issues fixing
Lemap1 Jun 8, 2026
12c35eb
fixed a bug related to pytroch installation
Lemap1 Jun 8, 2026
1031e30
improved user feedback
Lemap1 Jun 9, 2026
50b9485
memory optimisations and bug fixing
Lemap1 Jun 11, 2026
b31dd11
Merge branch 'feat/solweig-gpu'
Lemap1 Jun 11, 2026
b7fcf50
feat/added-intel-gpu-support
Lemap1 Jun 12, 2026
9d38059
corrected bug in intel gpu management
Lemap1 Jun 12, 2026
173e5d6
updated doc of skyview factor and SOLWEIG
Lemap1 Jun 16, 2026
1f7dbae
fixed feedback bugs
Lemap1 Jun 16, 2026
2b8cff2
patched a major bug in solweig gpu
Lemap1 Jun 25, 2026
caabd56
formated some code
Lemap1 Jun 30, 2026
ee32049
fixed some bugs
Lemap1 Jul 3, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 27 additions & 7 deletions __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,23 +12,43 @@
***************************************************************************/

/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
This script initializes the plugin, making it known to QGIS.
"""

# 1. Initialize fallback immediately to shield all downstream imports
import site
import sys

user_site = site.getusersitepackages()
if user_site not in sys.path:
sys.path.append(user_site)


try:
import torch
except ImportError:
# Create the local mock right here
class MetaMock(type):
def __getattr__(cls, name):
if name == "is_available":
return lambda: False
return cls

def __call__(cls, *args, **kwargs):
return cls

class LocalMockTorch(metaclass=MetaMock):
pass

# Inject it into Python's module registry BEFORE QGIS loads any sub-files
sys.modules["torch"] = LocalMockTorch
__author__ = "Fredrik Lindberg"
__date__ = "2020-04-02"
__copyright__ = "(C) 2020 by Fredrik Lindberg"
Expand All @@ -41,7 +61,7 @@ def classFactory(iface): # pylint: disable=invalid-name
:param iface: A QGIS interface instance.
:type iface: QgsInterface
"""
#
from .processing_umep import ProcessingUMEPPlugin

# Crucial: pass the iface variable QGIS gives you right into the plugin
return ProcessingUMEPPlugin()
340 changes: 0 additions & 340 deletions functions/SEBEfiles/Perez_v3_moved.py

This file was deleted.

Loading