Skip to content
Snippets Groups Projects
Commit 25dfe1b8 authored by paul.tresson_ird.fr's avatar paul.tresson_ird.fr
Browse files

remove duplicate variable declaration

parent 5e230283
No related branches found
No related tags found
No related merge requests found
import os
import time
import numpy as np
from pathlib import Path
from typing import Dict, Any
......@@ -132,12 +133,10 @@ class SimilarityAlgorithm(QgsProcessingAlgorithm):
Here is where the processing itself takes place.
"""
self.process_options(parameters, context, feedback)
template_path = self.template # Replace with the actual attribute holding the file path
# Create a dictionary to store the template path
# Create a dictionary to store the template path
dictionnary_cosine = {
'cosine_path': template_path
'cosine_path': self.template
}
gdf = gpd.read_file(self.template)
......@@ -163,7 +162,6 @@ class SimilarityAlgorithm(QgsProcessingAlgorithm):
input_bands = [i_band -1 for i_band in self.selected_bands]
with rasterio.open(self.rlayer_path) as ds:
gdf = gdf.to_crs(ds.crs)
pixel_values = []
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment