Skip to content

Commit

Permalink
fix: add csv_colum parameter to request in ponts_layers_proc
Browse files Browse the repository at this point in the history
  • Loading branch information
merydian committed May 24, 2024
1 parent 2f925e7 commit 4ed220e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ORStools/proc/directions_points_layers_proc.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,9 @@ def processAlgorithm(
options = self.parseOptions(parameters, context)

csv_factor = self.parameterAsDouble(parameters, self.CSV_FACTOR, context)
csv_column = self.parameterAsString(parameters, self.CSV_COLUMN, context)
if csv_factor > 0:
options["profile_params"] = {"weightings": {"csv_factor": csv_factor}}
options["profile_params"] = {"weightings": {"csv_factor": csv_factor, "csv_column": csv_column}}

extra_info = self.parameterAsEnums(parameters, self.EXTRA_INFO, context)
extra_info = [EXTRA_INFOS[i] for i in extra_info]
Expand Down

0 comments on commit 4ed220e

Please sign in to comment.