• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

nens / ThreeDiToolbox / #2640

19 Dec 2025 03:01PM UTC coverage: 36.526% (-0.02%) from 36.546%
#2640

push

coveralls-python

web-flow
Rebranding the 3Di Results Analysis to Rana Results Analysis (#1151)

13 of 77 new or added lines in 22 files covered. (16.88%)

3 existing lines in 3 files now uncovered.

5262 of 14406 relevant lines covered (36.53%)

0.37 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

54.35
/processing/providers.py
1
# See https://docs.qgis.org/3.10/en/docs/pyqgis_developer_cookbook/processing.html
2
from qgis.core import QgsProcessingProvider
1✔
3
from qgis.PyQt.QtGui import QIcon
1✔
4
from threedi_results_analysis.processing.cross_sectional_discharge_algorithm import (
1✔
5
    CrossSectionalDischargeAlgorithm,
6
)
7
from threedi_results_analysis.processing.gpkg_conversion_algorithm import (
1✔
8
    ThreeDiConvertToGpkgAlgorithm,
9
)
10
from threedi_results_analysis.processing.grid_creation_algorithm import (
1✔
11
    ThreeDiGenerateCompGridAlgorithm,
12
)
13
from threedi_results_analysis.processing.leak_detector_algorithms import (
1✔
14
    DetectLeakingObstaclesAlgorithm,
15
)
16
from threedi_results_analysis.processing.leak_detector_algorithms import (
1✔
17
    DetectLeakingObstaclesWithDischargeThresholdAlgorithm,
18
)
19
from threedi_results_analysis.processing.rasters_to_netcdf_algorithm import (
1✔
20
    RastersToNetCDFAlgorithm,
21
)
22
from threedi_results_analysis.processing.schematisation_algorithms import (
1✔
23
    CheckSchematisationAlgorithm,
24
)
25
from threedi_results_analysis.processing.schematisation_algorithms import (
1✔
26
    ImportHydXAlgorithm,
27
)
28
from threedi_results_analysis.processing.schematisation_algorithms import (
1✔
29
    MigrateAlgorithm,
30
)
31
from threedi_results_analysis.processing.structure_control_action_algorithms import (
1✔
32
    StructureControlActionAlgorithm,
33
)
34
from threedi_results_analysis.processing.threedidepth_algorithms import (
1✔
35
    WaterDepthOrLevelSingleTimeStepAlgorithm,
36
)
37
from threedi_results_analysis.processing.threedidepth_algorithms import (
1✔
38
    WaterDepthOrLevelMultipleTimeStepAlgorithm,
39
)
40
from threedi_results_analysis.processing.threedidepth_algorithms import (
1✔
41
    WaterDepthOrLevelMaximumAlgorithm,
42
)
43
from threedi_results_analysis.processing.threedidepth_algorithms import (
1✔
44
    ConcentrationSingleTimeStepAlgorithm,
45
)
46
from threedi_results_analysis.processing.threedidepth_algorithms import (
1✔
47
    ConcentrationMultipleTimeStepAlgorithm,
48
)
49
from threedi_results_analysis.processing.threedidepth_algorithms import (
1✔
50
    ConcentrationMaximumAlgorithm,
51
)
52
from threedi_results_analysis.processing.water_depth_difference_algorithm import (
1✔
53
    WaterDepthDiffAlgorithm,
54
)
55

56

57
import os
1✔
58

59

60
class ThreediProvider(QgsProcessingProvider):
1✔
61
    """Loads the Processing Toolbox algorithms for Rana results analysis"""
62

63
    def loadAlgorithms(self, *args, **kwargs):
1✔
64
        self.addAlgorithm(WaterDepthOrLevelSingleTimeStepAlgorithm())
×
65
        self.addAlgorithm(WaterDepthOrLevelMultipleTimeStepAlgorithm())
×
66
        self.addAlgorithm(WaterDepthOrLevelMaximumAlgorithm())
×
67
        self.addAlgorithm(ConcentrationSingleTimeStepAlgorithm())
×
68
        self.addAlgorithm(ConcentrationMultipleTimeStepAlgorithm())
×
69
        self.addAlgorithm(ConcentrationMaximumAlgorithm())
×
70
        self.addAlgorithm(CheckSchematisationAlgorithm())
×
71
        self.addAlgorithm(MigrateAlgorithm())
×
72
        self.addAlgorithm(ThreeDiConvertToGpkgAlgorithm())
×
73
        self.addAlgorithm(ThreeDiGenerateCompGridAlgorithm())
×
74
        self.addAlgorithm(CrossSectionalDischargeAlgorithm())
×
75
        self.addAlgorithm(DetectLeakingObstaclesAlgorithm())
×
76
        self.addAlgorithm(DetectLeakingObstaclesWithDischargeThresholdAlgorithm())
×
77
        self.addAlgorithm(RastersToNetCDFAlgorithm())
×
78
        self.addAlgorithm(StructureControlActionAlgorithm())
×
79
        self.addAlgorithm(ImportHydXAlgorithm())
×
80
        self.addAlgorithm(WaterDepthDiffAlgorithm())
×
81

82
    def id(self, *args, **kwargs):
1✔
83
        """The ID of your plugin, used for identifying the provider.
84

85
        This string should be a unique, short, character only string,
86
        eg "qgis" or "gdal". This string should not be localised.
87
        """
88
        return "threedi"
×
89

90
    def name(self, *args, **kwargs):
1✔
91
        """The human friendly name of your plugin in Processing.
92

93
        This string should be as short as possible (e.g. "Lastools", not
94
        "Lastools version 1.0.1 64-bit") and localised.
95
        """
NEW
96
        return self.tr("Rana Results Analysis")
×
97

98
    def icon(self):
1✔
99
        """Should return a QIcon which is used for your provider inside
100
        the Processing toolbox.
101
        """
NEW
102
        icon_path = os.path.join(os.path.dirname(os.path.dirname(__file__)), "icons", "rana_blue_on_transparent.svg")
×
103
        return QIcon(icon_path)
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc