Repository navigation
Fixes
- Galaxy-targeted (3D) schedules work with NumPy ≥ 2.4. Every 3D schedule failed with
TypeError: only 0-dimensional arrays can be converted to Python scalarsas soon as it found its first pointing. The schedules themselves are unchanged. (#155) - The integrated strategy no longer fails when a visible galaxy lies within one FoV radius of a celestial pole (
ValueError: Latitude angle(s) must be within -90 deg <= angle <= 90 deg). A single such galaxy made the whole schedule fail in 3.0.8 and 3.1.0, for example for S190425z seen from the H.E.S.S. site. (#156, #157) - Polygonal FoVs are built and tested on the sphere. They now have the same size on the sky at every declination (they were too narrow in RA away from the equator, half as wide at dec 60), contain the right galaxies across RA 0/360 and extend over the poles. This applies to
ComputePGalinFOV, which also uses the configurednumberSidesinstead of always 4, and to the 2D path throughhp.query_polygon. (#157) - The integrated strategy ranks its candidate galaxies with the circle of radius
FOVthat it then counts and subtracts, as before 3.0.0, instead of an inscribed 4-vertex diamond (64% of the area of the circle). The galaxy probability that selects a pointing is now the probability that the pointing adds. (#157) ObservationParameterscreated directly, not from a configuration file, storedshape,numberSides,alphaRandbetaRas one-element tuples. (#154)
API changes
ModifyCatalogue(prob, cat, FOV, totaldPdV, n_sides=0): thensideargument, which was passed on as the number of sides, is replaced byn_sides(0 for the circle). (#157)Tools.get_regular_polygon_verticesraisesValueErrorfor fewer than 3 sides or a radius outside (0, 90) deg. NewTools.points_in_spherical_polygonfor containment on the sphere. (#157)
Documentation
- The README documents every configuration parameter, including the
[general]section, and says which ones are read but not used yet. (#154) - The installation guide uses the
masterbranch: the@maininstall command and the link toexamples/were broken. (#154)
Maintenance
- New tests run 3D schedules (
PGalinFoV,PGalinFoV_NObs) on a synthetic map, and check the FoV geometry near the poles and across RA 0/360. (#155, #156, #157)
Note: integrated-strategy schedules change for every circular FoV, anywhere on the sky, because of the ranking fix (#157). For S190425z from H.E.S.S. (FOV 2, 20 pointings), the galaxy probability covered goes from 0.044 to 0.048 and 16 of the 20 pointings change. minProbcut, secondRound and zenithWeighting now act on that probability, so a time slot that was skipped before can get a pointing. Polygonal FoVs (space scheduling, GetBestTiles2D/GetBestTiles3D) also change away from the equator.