John,
I don't know if it is related to my problems with the skin, , but I have a 
failed comparison when running your test scripts :

======================================================================================================
 test session starts 
=======================================================================================================
platform linux -- Python 3.11.2, pytest-9.1.1, pluggy-1.6.0
rootdir: /home/meteo/weewx-skyfield-main
collected 428 items                                                             
                                                                                
                                                                 

tests/test_almanac.py 
.........................................................F..........................................................................................................................................
 [ 45%]
...........................................................................................................................................................................................
                                [ 89%]
tests/test_sky_page.py .............................................            
                                                                                
                                                           [100%]

============================================================================================================
 FAILURES 
============================================================================================================
___________________________________________________________________________________
 TestPhysicalAttributes.test_magnitudes_agree_with_pyephem 
____________________________________________________________________________________

self = <test_almanac.TestPhysicalAttributes object at 0x7fff290fb0d0>, almanac 
= <weewx.almanac.Almanac object at 0x7fff28c7cd10>

    def test_magnitudes_agree_with_pyephem(self, almanac):
        ephem = pytest.importorskip('ephem')
        observer = pyephem_observer()
        for planet in ('mercury', 'venus', 'mars', 'jupiter', 'saturn', 
'uranus', 'neptune',
                       'sun', 'moon', 'pluto'):
            body = getattr(ephem, planet.title())()
            body.compute(observer)
            # PyEphem uses older magnitude models, so agreement is loose.
>           assert getattr(almanac, planet).mag == pytest.approx(body.mag, 
> abs=0.6), planet
E           AssertionError: moon
E           assert np.float64(-8.420329067365575) == -10.9 ± 0.6
E             
E             comparison failed
E             Obtained: -8.420329067365575
E             Expected: -10.9 ± 0.6

tests/test_almanac.py:656: AssertionError
========================================================================================================
 warnings summary 
========================================================================================================

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/weewx-user/C72B29DD-F726-4F21-87C8-7E55EF6A63B2%40gmail.com.

Reply via email to