Skip to content

Commit f3b46f5

Browse files
authored
Update SharedArcNumericalLib.py
Update Doc strings. Minor edits. There are a lot of things one would do differently if done again, but incremental edits are what I can commit to.
1 parent a659cb4 commit f3b46f5

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

Scripts/SharedArcNumericalLib.py

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,11 @@ def arc_print(string, progressor_Bool=False):
137137

138138
@arc_tool_report
139139
def field_exist(featureclass, fieldname):
140-
"""ArcFunction
141-
Check if a field in a feature class field exists and return true it does, false if not.- David Wasserman
140+
"""Check if a field in a feature class field exists and return true it does, false if not.
141+
Parameters
142+
--------------
143+
featureclass - feature class - input whose fields are checked.
144+
fieldname - string - input used to check if a field exists in a feature class.
142145
"""
143146
fieldList = arcpy.ListFields(featureclass, fieldname)
144147
fieldCount = len(fieldList)
@@ -163,8 +166,10 @@ def add_new_field(
163166
field_is_required="#",
164167
field_domain="#",
165168
):
166-
"""ArcFunction
167-
Add a new field if it currently does not exist. Add field alone is slower than checking first.- David Wasserman
169+
"""Add a new field if it currently does not exist. Add field alone is slower than checking first.- David Wasserman
170+
Parameters
171+
-----------
172+
Same as Add Field: https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/add-field.htm
168173
"""
169174
if field_exist(in_table, field_name):
170175
print(field_name + " Exists")

0 commit comments

Comments
 (0)