Skip to content

Comments

Fix cases where floating point numbers are used as array indices.#2

Open
Infinoid wants to merge 1 commit intodm6718:masterfrom
Infinoid:master
Open

Fix cases where floating point numbers are used as array indices.#2
Infinoid wants to merge 1 commit intodm6718:masterfrom
Infinoid:master

Conversation

@Infinoid
Copy link

Python (v3.6.9) fails to execute this code, with errors like the following:

examples$ python3 AFRL_demo.py 
Traceback (most recent call last):
  File "AFRL_demo.py", line 27, in <module>
    [phs, platform] = phsRead.AFRL(directory, pol, start_az, n_az = 3)
  File "../ritsar/phsRead.py", line 76, in AFRL
    R_c = pos[npulses/2]
IndexError: only integers, slices (`:`), ellipsis (`...`), numpy.newaxis (`None`) and integer or boolean arrays are valid indices

This fixes those errors for all of the examples.

@jks7592
Copy link

jks7592 commented Apr 2, 2020

I put the changes you listed that I didn't already have in my fork. Let me know if you see anything else, I've made quite a few changes in trying to get AFRL's Wide Angle SAR to work for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants