Skip to content

Commit

Permalink
updated script to grab only "published" iterations
Browse files Browse the repository at this point in the history
  • Loading branch information
cosbyr committed May 15, 2019
1 parent b55233a commit 9d369d6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions autodetectblight.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,8 @@ def checkValidProject(tr, prj):
return True

def getCurrentIteration(tr, prj):
return sorted(tr.get_iterations(prj.id), key=lambda itr: itr.trained_at, reverse=True)[0]


iterationList = [iteration for iteration in tr.get_iterations(prj.id) if iteration.publish_name]
return sorted(iterationList, key=lambda itr: itr.trained_at, reverse=True)[0]


fcURL = arcpy.GetParameterAsText(0)
Expand Down

0 comments on commit 9d369d6

Please sign in to comment.