Resolving barrier_mapper error in s6_barriers.py line 241#183
Resolving barrier_mapper error in s6_barriers.py line 241#183lstoneburner-sfei wants to merge 1 commit into
Conversation
…Focal Statistics parameter by revising in_neighborhood on line 233; revised script works in ArcPro 3.3.2
|
Thanks Lauren! I just posted this to the community email list: |
|
Pull request #176 is the more correct way to fix this issue. |
|
Hi All, Thanks @dkav ! But something else may be going on, as #176 did not work in ArcPro, while this one does. All, please note that it is ideal to also test the code from the other pull request: https://github.com/sdy623/linkage-mapper/archive/refs/heads/arcgis_pro_dev.zip Maybe it works on ArcPro after all? Otherwise, if Lauren's fix works on both ArcMap and ArcPro, and we are not sure about the other one, I think we should implement her's as a temporary fix at least. All, If anyone can be proactive, see also Darren's comment in that other pull request, namely: "I cannot test but the change looks correct. It is not the only neighborhood class update needed in this file. Defining neighborhood as a string and not as class goes back to ArcGIS 9.3. May be related to this Google Groups post." Thanks, John |
|
@johngallo you might include the errors reported for the solution in #176. The approach in this PR is not documented in either ArcGIS Desktop or ArcGIS Pro help. |
|
Unfortunately, the above fix did not work when running the Barrier Mapper tool in ArcPro 3.4.0. Has anyone else experienced this issue with a slightly newer version of Pro? I've attached the log file here. |
|
@megan-e-obrien have you tried the solution in #176? |
|
@dkav I have, but unfortunately that did not solve the issue. I received the same error as before. |
|
@megan-e-obrien what does the following log when you replace lines 233-234 with: |
|
Hi all - any further solutions to this issue? Have tried all from above thread but same error - using ArcGIS Pro 3.4.0. Thanks |
|
I have tried all the above methods, but the same error still occurs. Best regards, |
|
We are looking into the alternatives for raising funds to support code maintenance and development. I am accepting resumes of interested applicants that we will refer to before deciding if we will advertise the position (if we are successful). Regarding the Barrier Mapper bug, it only arises in certain conditions. It could be that certain parameter configurations trigger the bug. You may want to try some different parameters, and if they do or not work, then to document them in a spreadsheet, and then share that here. Tip: I suspect that the shortest radius searched for should be greater than the diagonal of cell. Probably double that to be on the safe side. And best to have the longest radius be a multiple of the shortest. |
|
Any movement on this issue? I have tried everything I could find in these threads, including increasing the radius size, but barrier mapper still will not work. |
|
Hi @miistakis , We applied for a grant to fund further dev and to make the software more robust, including fixing this bug that occurs for some people and not others. It was approved with bells on by one org judging the grant but the other company did not approve, and it needed unanimity. So close! More on that soon I hope. In the meantime, barrier mapper is working in most applications. The good news is that I have a potential contract to do some barrier mapper work and I'll bet the client would approve me spending some of the time fixing this bug, regardless of it arises for their landscape or not. this would endure the analysis could be updated more easily in the future. More soon I hope. |
Users have been experiencing an error at line 241 of s6_barriers.py, where Focal Statistics parameter was invalid. This update revises in_neighborhood on line 233 by changing capitalization of "Annulus ". The revised script runs to completion in ArcPro 3.3.2.