Skip to content

Commit 6d265d1

Browse files
committed
Add setup.cfg
1 parent 4858f06 commit 6d265d1

14 files changed

+32
-84
lines changed

qgis_processing/cleaningAlgorithm.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,10 @@
1-
import sys
2-
import pandas as pd
3-
41
from movingpandas import OutlierCleaner
52

63
from qgis.core import (
7-
QgsProcessingParameterString,
8-
QgsProcessingParameterEnum,
94
QgsProcessingParameterNumber,
105
)
116

12-
sys.path.append("..")
13-
14-
from .trajectoriesAlgorithm import (
7+
from qgis_processing.trajectoriesAlgorithm import (
158
TrajectoryManipulationAlgorithm,
169
help_str_base,
1710
help_str_traj,

qgis_processing/createTrajectoriesAlgorithm.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
import sys
2-
3-
sys.path.append("..")
4-
5-
from .trajectoriesAlgorithm import (
1+
from qgis_processing.trajectoriesAlgorithm import (
62
TrajectoryManipulationAlgorithm,
73
help_str_base,
84
help_str_traj,

qgis_processing/extractPtsAlgorithm.py

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,8 @@
1-
import os
2-
import sys
3-
41
import pandas as pd
52
from movingpandas import TrajectoryStopDetector
63

7-
from qgis.PyQt.QtCore import QCoreApplication, QVariant
4+
from qgis.PyQt.QtCore import QVariant
85
from qgis.core import (
9-
QgsProcessingParameterExtent,
10-
QgsProcessingParameterVectorLayer,
116
QgsProcessingParameterNumber,
127
QgsProcessingParameterString,
138
QgsProcessingParameterFeatureSink,
@@ -17,12 +12,9 @@
1712
QgsFeatureSink,
1813
QgsFields,
1914
)
20-
from qgis.core import QgsMessageLog, Qgis
21-
22-
sys.path.append("..")
2315

24-
from .trajectoriesAlgorithm import TrajectoriesAlgorithm, help_str_base
25-
from .qgisUtils import feature_from_gdf_row
16+
from qgis_processing.trajectoriesAlgorithm import TrajectoriesAlgorithm, help_str_base
17+
from qgis_processing.qgisUtils import feature_from_gdf_row
2618

2719

2820
class ExtractODPtsAlgorithm(TrajectoriesAlgorithm):

qgis_processing/generalizationAlgorithm.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,12 @@
1010

1111
from qgis.core import (
1212
QgsProcessingParameterString,
13-
QgsProcessingParameterEnum,
1413
QgsProcessingParameterNumber,
1514
)
1615

1716
sys.path.append("..")
1817

19-
from .trajectoriesAlgorithm import (
18+
from qgis_processing.trajectoriesAlgorithm import (
2019
TrajectoryManipulationAlgorithm,
2120
help_str_base,
2221
help_str_traj,

qgis_processing/gtfsAlgorithm.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,14 @@
11
import os
2-
import sys
32

43
from qgis.PyQt.QtCore import QCoreApplication, QVariant
5-
from qgis.PyQt.QtGui import QIcon
64
from qgis.core import (
75
QgsProcessing,
86
QgsProcessingAlgorithm,
97
QgsProcessingParameterFeatureSink,
108
QgsProcessingParameterFile,
11-
QgsProcessingParameterField,
129
QgsProcessingUtils,
1310
QgsCoordinateReferenceSystem,
1411
QgsWkbTypes,
15-
QgsProcessingParameterString,
1612
QgsProcessingParameterBoolean,
1713
QgsField,
1814
QgsFields,
@@ -30,9 +26,6 @@
3026
"https://github.com/Bondify/gtfs_functions."
3127
) from error
3228

33-
sys.path.append("..")
34-
35-
from .qgisUtils import tc_from_pt_layer, feature_from_gdf_row, df_from_pt_layer
3629

3730
pluginPath = os.path.dirname(__file__)
3831

qgis_processing/overlayAlgorithm.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
import sys
2-
31
import shapely.wkt
4-
from shapely.geometry import Polygon
52

63
from qgis.PyQt.QtCore import QVariant
74
from qgis.core import (
@@ -11,9 +8,7 @@
118
QgsField,
129
)
1310

14-
sys.path.append("..")
15-
16-
from .trajectoriesAlgorithm import (
11+
from qgis_processing.trajectoriesAlgorithm import (
1712
TrajectoryManipulationAlgorithm,
1813
help_str_base,
1914
help_str_traj,

qgis_processing/privacyAttackAlgorithm.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
import os
2-
import sys
32

43
from pandas import merge
54
from pyproj import CRS
65
from qgis.PyQt.QtGui import QIcon
7-
from qgis.PyQt.QtCore import QCoreApplication, QVariant
6+
from qgis.PyQt.QtCore import QVariant
87
from qgis.core import QgsWkbTypes, QgsField, QgsProcessingUtils
98

109
try:
@@ -17,10 +16,8 @@
1716
"see https://github.com/scikit-mobility/scikit-mobility."
1817
) from error
1918

20-
sys.path.append("..")
21-
22-
from .qgisUtils import tc_from_df
23-
from .trajectoriesAlgorithm import TrajectoryManipulationAlgorithm
19+
from qgis_processing.qgisUtils import tc_from_df
20+
from qgis_processing.trajectoriesAlgorithm import TrajectoryManipulationAlgorithm
2421

2522
pluginPath = os.path.dirname(__file__)
2623

qgis_processing/qgisUtils.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010
QgsFeature,
1111
QgsGeometry,
1212
QgsPointXY,
13-
QgsFeatureSink,
14-
QgsMessageLog,
1513
Qgis,
1614
NULL,
1715
)

qgis_processing/smoothingAlgorithm.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,12 @@
1-
import sys
2-
import pandas as pd
3-
41
from movingpandas import (
52
KalmanSmootherCV,
63
)
74

85
from qgis.core import (
9-
QgsProcessingParameterString,
10-
QgsProcessingParameterEnum,
116
QgsProcessingParameterNumber,
127
)
138

14-
sys.path.append("..")
15-
16-
from .trajectoriesAlgorithm import (
9+
from qgis_processing.trajectoriesAlgorithm import (
1710
TrajectoryManipulationAlgorithm,
1811
help_str_base,
1912
help_str_traj,

qgis_processing/splitTrajectoriesAlgorithm.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import os
2-
import sys
31
import pandas as pd
42

53
from movingpandas import (
@@ -16,9 +14,7 @@
1614
QgsProcessingParameterField,
1715
)
1816

19-
sys.path.append("..")
20-
21-
from .trajectoriesAlgorithm import (
17+
from qgis_processing.trajectoriesAlgorithm import (
2218
TrajectoryManipulationAlgorithm,
2319
help_str_base,
2420
help_str_traj,

0 commit comments

Comments
 (0)