Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
6c628a4
feat: add default profiles
merydian Mar 6, 2025
2766415
feat: add box for profiles to settings and connect it
merydian Mar 6, 2025
77dc892
feat: ensure backward compatibility
merydian Mar 6, 2025
f994984
feat: make reset work with profiles
merydian Mar 6, 2025
f06b607
feat: ensure newly created config will be set up right
merydian Mar 6, 2025
359b008
refactor: rework ui to use QListWidget
merydian Mar 6, 2025
2911716
feat: add functionality to use add profile button
merydian Mar 6, 2025
e68c24e
feat: add functionality to use remove profile button
merydian Mar 6, 2025
afa4783
refactor: rename profile list widget
merydian Mar 6, 2025
1407f17
fix: modify the right listwidget
merydian Mar 6, 2025
f297e32
feat: add load button to get profiles from status endpoint
merydian Mar 6, 2025
9fb6613
feat: save state and add reset to defaults button
merydian Mar 6, 2025
b6dcf9e
feat: import profiles from existing source
merydian Mar 6, 2025
4b9e584
feat: add profiles key to settings key
merydian Mar 6, 2025
fa49b91
feat: set custom profiles in base processing alg
merydian Mar 6, 2025
77e1657
style: run ruff
merydian Mar 6, 2025
e7ecf54
refactor: make profiles and providers member of base class
merydian Mar 6, 2025
42e4483
fix: buttons wrongly positioned
merydian May 19, 2025
66f8a24
refactor: remove unused duplicate method
merydian May 19, 2025
bb84d28
feat: show warning when trying to query status endpoint of live API
merydian May 19, 2025
41cb3fb
feat: implement profile refresh functionality for routing travel comb…
merydian Jun 24, 2025
f4bdd51
fix: actually save settings
merydian Jun 24, 2025
be9cd11
style: run ruff
merydian Jun 24, 2025
1e0e3ff
fix: update profile retrieval to use instance profiles
merydian Jun 25, 2025
722b964
fix: improve error handling for invalid profile parameters
merydian Jun 25, 2025
8999359
fix: enhance error handling for provider configuration
merydian Jun 25, 2025
876d69f
test: update assertions to use assertAlmostEqual for precision
merydian Jun 26, 2025
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
Prev Previous commit
Next Next commit
fix: update profile retrieval to use instance profiles
  • Loading branch information
merydian committed Jun 25, 2025
commit 1e0e3ff0a76d621e1c464e7a39c26257ffdcbace
2 changes: 1 addition & 1 deletion ORStools/proc/directions_lines_proc.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def processAlgorithm(
) -> Dict[str, str]:
ors_client = self._get_ors_client_from_provider(parameters[self.IN_PROVIDER], feedback)

profile = dict(enumerate(PROFILES))[parameters[self.IN_PROFILE]]
profile = dict(enumerate(self.profiles))[parameters[self.IN_PROFILE]]

preference = dict(enumerate(PREFERENCES))[parameters[self.IN_PREFERENCE]]

Expand Down
2 changes: 1 addition & 1 deletion ORStools/proc/directions_points_layer_proc.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def processAlgorithm(
) -> Dict[str, str]:
ors_client = self._get_ors_client_from_provider(parameters[self.IN_PROVIDER], feedback)

profile = dict(enumerate(PROFILES))[parameters[self.IN_PROFILE]]
profile = dict(enumerate(self.profiles))[parameters[self.IN_PROFILE]]

preference = dict(enumerate(PREFERENCES))[parameters[self.IN_PREFERENCE]]

Expand Down
2 changes: 1 addition & 1 deletion ORStools/proc/directions_points_layers_proc.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def processAlgorithm(
) -> Dict[str, str]:
ors_client = self._get_ors_client_from_provider(parameters[self.IN_PROVIDER], feedback)

profile = dict(enumerate(PROFILES))[parameters[self.IN_PROFILE]]
profile = dict(enumerate(self.profiles))[parameters[self.IN_PROFILE]]

preference = dict(enumerate(PREFERENCES))[parameters[self.IN_PREFERENCE]]

Expand Down
2 changes: 1 addition & 1 deletion ORStools/proc/export_proc.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def processAlgorithm(
ors_client = self._get_ors_client_from_provider(parameters[self.IN_PROVIDER], feedback)

# Get profile value
profile = dict(enumerate(PROFILES))[parameters[self.IN_PROFILE]]
profile = dict(enumerate(self.profiles))[parameters[self.IN_PROFILE]]

target_crs = QgsCoordinateReferenceSystem("EPSG:4326")
rect = self.parameterAsExtent(parameters, self.IN_EXPORT, context, crs=target_crs)
Expand Down
2 changes: 1 addition & 1 deletion ORStools/proc/isochrones_layer_proc.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def processAlgorithm(
) -> Dict[str, str]:
ors_client = self._get_ors_client_from_provider(parameters[self.IN_PROVIDER], feedback)

profile = dict(enumerate(PROFILES))[parameters[self.IN_PROFILE]]
profile = dict(enumerate(self.profiles))[parameters[self.IN_PROFILE]]
dimension = dict(enumerate(DIMENSIONS))[parameters[self.IN_METRIC]]
location_type = dict(enumerate(LOCATION_TYPES))[parameters[self.LOCATION_TYPE]]

Expand Down
2 changes: 1 addition & 1 deletion ORStools/proc/isochrones_point_proc.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def processAlgorithm(
) -> Dict[str, str]:
ors_client = self._get_ors_client_from_provider(parameters[self.IN_PROVIDER], feedback)

profile = dict(enumerate(PROFILES))[parameters[self.IN_PROFILE]]
profile = dict(enumerate(self.profiles))[parameters[self.IN_PROFILE]]
dimension = dict(enumerate(DIMENSIONS))[parameters[self.IN_METRIC]]
location_type = dict(enumerate(LOCATION_TYPES))[parameters[self.LOCATION_TYPE]]

Expand Down
2 changes: 1 addition & 1 deletion ORStools/proc/matrix_proc.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def processAlgorithm(
ors_client = self._get_ors_client_from_provider(parameters[self.IN_PROVIDER], feedback)

# Get profile value
profile = dict(enumerate(PROFILES))[parameters[self.IN_PROFILE]]
profile = dict(enumerate(self.profiles))[parameters[self.IN_PROFILE]]

# TODO: enable once core matrix is available
# options = self.parseOptions(parameters, context)
Expand Down
2 changes: 1 addition & 1 deletion ORStools/proc/snap_layer_proc.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def processAlgorithm(
ors_client = self._get_ors_client_from_provider(parameters[self.IN_PROVIDER], feedback)

# Get profile value
profile = dict(enumerate(PROFILES))[parameters[self.IN_PROFILE]]
profile = dict(enumerate(self.profiles))[parameters[self.IN_PROFILE]]

# Get parameter values
source = self.parameterAsSource(parameters, self.IN_POINTS, context)
Expand Down
2 changes: 1 addition & 1 deletion ORStools/proc/snap_point_proc.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def processAlgorithm(
ors_client = self._get_ors_client_from_provider(parameters[self.IN_PROVIDER], feedback)

# Get profile value
profile = dict(enumerate(PROFILES))[parameters[self.IN_PROFILE]]
profile = dict(enumerate(self.profiles))[parameters[self.IN_PROFILE]]

# Get parameter values
point = self.parameterAsPoint(parameters, self.IN_POINT, context, self.crs_out)
Expand Down