File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -137,8 +137,11 @@ def arc_print(string, progressor_Bool=False):
137137
138138@arc_tool_report
139139def 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" )
You can’t perform that action at this time.
0 commit comments