DavidT3 / XGA

X-ray: Generate and Analyse is a module designed to make the analysis of XMM observations simple and efficient. It provides an interface with SAS for the creation of XMM data products, as well as a way to easily perform fits (scalable for multiple observations) and retrieve information about an object, all within a Python package.
BSD 3-Clause "New" or "Revised" License
31 stars 3 forks source link

Python 3.12 doesn't recognise standard form as int #1263

Open HallJoseph opened 6 days ago

HallJoseph commented 6 days ago

For the random id number generation in xga/generate/esass/spec.py (and others), randint() throws a type error when passing e.g. 1e+8 as the upper limit, complaining that it is a float not an integer.

Suggest fixing by using e.g. 100_000_000 in place of 1e+8.

Might just be a python 3.12 bug.