find_hot_spots says too many arguments are given

399
2
Jump to solution
04-11-2017 12:23 PM
CourtneyClaessens
Occasional Contributor III

Hello again, 

I am trying to run `find_hot_spots` with two arguments, but I receive an error saying I gave nine. 

 

Any tips?

Tags (1)
0 Kudos
1 Solution

Accepted Solutions
RohitSingh2
Esri Contributor

I checked and found that you have run into a bug. We've added the fix for the next update, but for now, you may edit analyze_patterns.py at the path in the stack trace, and remove the first (gis) parameter from line 128. It should be:

return gis._tools.featureanalysis.find_hot_spots(
    analysis_layer,
    analysis_field,
    divided_by_field,
    bounding_polygon_layer,
    aggregation_polygon_layer,
    output_name,
    context)

View solution in original post

2 Replies
DanPatterson_Retired
MVP Esteemed Contributor

analysis_layer=...
it shouldn't matter, but when using named parameters, maybe naming them all will help

0 Kudos
RohitSingh2
Esri Contributor

I checked and found that you have run into a bug. We've added the fix for the next update, but for now, you may edit analyze_patterns.py at the path in the stack trace, and remove the first (gis) parameter from line 128. It should be:

return gis._tools.featureanalysis.find_hot_spots(
    analysis_layer,
    analysis_field,
    divided_by_field,
    bounding_polygon_layer,
    aggregation_polygon_layer,
    output_name,
    context)