Prroblem with running ezCon.py

75 views
Skip to first unread message

Stephen Arbogast

unread,
Mar 23, 2025, 7:27:59 PM3/23/25
to Society of Amateur Radio Astronomers
Is this    a  version  mismatch?
Getting   this   error message.....    from astropy.....

 ========== not locBase =======================
   "raH" line input to dataAzimuthDeg   = 329.5678550679712
                       dataElevationDeg = 1.8540843031345604
   dataAzimuthDeg   = 329.5678550679712
   dataElevationDeg = 1.8540843031345604
 file = 0 of 1 in dir 1 of 1 = .\data\Durango250322_12.txt samplesRead= 1,175   fileRawLen= 1,175   rawLen= 1,175   antL file = 0 of 1 in dir 1 of 1 = .\data\Durango250322_12.txt
   dataAzimuthDeg   = 180.0
   dataElevationDeg = 45.0
 file = 0 of 1 in dir 1 of 1 = .\data\Durango250322_12.txtantLen ?= 1,176
Traceback (most recent call last):
  File "C:\Users\sarbo\ezRABase\ezRA\ezCon.py", line 11698, in <module>
    main()
    ~~~~^^
  File "C:\Users\sarbo\ezRABase\ezRA\ezCon.py", line 11330, in main
    readDataDir()   # creates ezRAObsLat, ezRAObsLon, ezRAObsAmsl, ezRAObsName
    ~~~~~~~~~~~^^
  File "C:\Users\sarbo\ezRABase\ezRA\ezCon.py", line 1953, in readDataDir
    if not locBase:
           ^^^^^^^
  File "C:\Users\sarbo\AppData\Local\Programs\Python\Python313\Lib\site-packages\astropy\units\quantity.py", line 1318, in __bool__
    raise ValueError(
    ...<2 lines>...
    )
ValueError: EarthLocation truthiness is ambiguous, especially for logarithmic units and temperatures. Use explicit comparisons.


tedcl...@gmail.com

unread,
Mar 23, 2025, 8:53:49 PM3/23/25
to Society of Amateur Radio Astronomers
Wow, lots of unhappy text there.

It may be that Python 3.13 or a new Astropy that does not like my use of a "0." value   locBase   as a flag for locBase not calculated yet.

I will now email you to ask for your
      Durango250322_12.txt
data file.

---
Ted Cline
TedClineGit at gmail.com


On Sunday, March 23, 2025 at 5:27:59 PM UTC-6 Stephen Arbogast wrote:
Is this    a  version  mismatch?
Getting   this   error message.....    from astropy.....
...

Stephen Arbogast

unread,
Mar 23, 2025, 9:54:28 PM3/23/25
to Society of Amateur Radio Astronomers
Durango250322_12.zip

tedcl...@gmail.com

unread,
Mar 27, 2025, 3:24:31 PM3/27/25
to Society of Amateur Radio Astronomers

I think the new version of ezCon.py,
      ezCon250323a.py
posted on Mar-24-2025, fixes this "ValueError: EarthLocation truthiness is ambiguous" error that Stephen found.

Reply all
Reply to author
Forward
0 new messages