Skip to content

Commit

Permalink
Update headers
Browse files Browse the repository at this point in the history
  • Loading branch information
msouthee committed Mar 28, 2024
1 parent a2757ba commit 5f2fc4f
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 32 deletions.
27 changes: 1 addition & 26 deletions KBAToolsLocal/FullSpeciesMappingTool.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# Tool Name: "Mapping Tool - Species" [SINGLE GROUP LAYER]
#
# Script Created: 2022-01-05
# Last Updated: 2024-03-27
# Last Updated: 2024-03-28
# Script Author: Meg Southee
# Credits: © WCS Canada / Meg Southee 2021
#
Expand Down Expand Up @@ -373,31 +373,6 @@ def run_tool(self, parameters, messages):
else:
raise KBAExceptions.NoTableError

# """Error handling to check for existence of required symbology for new data layers.."""
# lyr = m.listLayers("InputPolygon")[0]
# sym = lyr.symbology # Access symbol parameters in arcpy
#
# counter = 0
# condition = False
# sym_list = sym.renderer.symbol.listSymbolsFromGallery("") # List of all symbols in the project gallery
#
# # While statement to run through the entire sym_list and try to find the custom Input Polygon symbol
# while not condition:
# current_name = sym_list[counter].name # Get the name of the current symbol
# if current_name == "Input Polygon":
# condition = True # exit the while loop after processing the statements in this clause
# arcpy.AddMessage("Custom WCSC-KBA-Symbology found.")
#
# # Update symbology for the InputPolygon layer in the SpeciesData group layer
# sym.renderer.symbol.applySymbolFromGallery("Input Polygon")
# lyr.symbology = sym
#
# else:
# counter += 1 # increase the counter to move to the next item in the list
# if counter == len(sym_list): # you have reached the end of the list and not found the desired sym
# condition = True
# raise KBAExceptions.SymbologyError

# # END ERROR HANDLING .....................................................................................

# # START DATA PROCESSING ..................................................................................
Expand Down
2 changes: 1 addition & 1 deletion KBAToolsLocal/FullSpeciesScopingTool.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# Tool Name: "Exploratory Tool - Species & Infraspecies" [SEPARATE GROUP LAYERS]
#
# Script Created: 2022-02-10
# Last Updated: 2024-03-27
# Last Updated: 2024-03-28
# Script Author: Meg Southee
# Credits: © WCS Canada / Meg Southee 2022
#
Expand Down
2 changes: 1 addition & 1 deletion KBAToolsLocal/InfraspeciesTool.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# Tool Name: "Mapping Tool - Infraspecies" [SEPARATE GROUP LAYERS]
#
# Script Created: 2022-02-15
# Last Updated: 2024-03-27
# Last Updated: 2024-03-28
# Script Author: Meg Southee
# Credits: © WCS Canada / Meg Southee 2022
#
Expand Down
6 changes: 3 additions & 3 deletions KBAToolsLocal/KBAToolsLocal.pyt
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@
# Script Name: KBAToolsLocal.pyt
#
# Script created: 2021-11-18
# Last Updated: 2024-03-27
# Last Updated: 2024-03-28
# Script Author: Meg Southee
# Credits: © WCS Canada / Meg Southee 2021
#
# Purpose: Python Toolbox to hold the LocalKBATools to be run by regional coordinators on local computers.
#
# Updates: Add parameters to handle french species names.
# Added functionality to fiter additional datasets out of the InputPolygons data layer. The filtered
# datasets are listed in the KBAUtils data dictionary.
#
# Added functionality to generate soutput datasets for seven subsets of data from the InputPolygons.
# The full list of filtered datasets are listed in the KBAUtils data dictionary.
# ----------------------------------------------------------------------------------------------------------------------

# Import libraries and modules
Expand Down
2 changes: 1 addition & 1 deletion KBAToolsLocal/KBAUtils.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
"COSEWICEOOMaps":
["COSEWIC EOO Map", "1121", {'RGB': [2, 172, 158, 30]}, {'RGB': [2, 172, 158, 100]}]}

# FUNCTIONS FOR KBATOOLSLOCAL

# FUNCTIONS FOR KBATOOLSLOCAL
def readFilteredInputDatasetID(key_value):
"""Return the inputdatasetid values based on the unique datasetsourceid value for each filtered dataset"""
datasetids = []
Expand Down

0 comments on commit 5f2fc4f

Please sign in to comment.