ICSM / ampere

A tool to fit the SED and spectra of dusty objects to constrain, among other things, the dust properties and mineralogy
6 stars 2 forks source link

Python 3.10/3.11 updates #53

Closed pscicluna closed 1 year ago

pscicluna commented 2 years ago

The most recent versions of Python are making a lot of updates. These range from updates that provide more informative error messages, to type hints which make code clearer and more stable, to improvements in the underlying CPython implementation that provide up to 64% speed improvements (typically 20%).

We should update ampere so that it can exploit these new features. This would involve:

  1. Updating any code that relies on features that are deprecated or removed in python 3.11 (or earlier)
  2. Adding type hints wherever useful
  3. Ensuring dependencies are up to date and run on python 3.11
  4. Updating setup.py to reflect the latest versions
  5. All update the virtual environments we use for ampere to at least python 3.9, preferably 3.10 or even 3.11 pre-release.

Please add yourself to the assignees if you can help out with any part of this. I won't be able to handle this all myself in a reasonable time frame.

jontymarshall commented 1 year ago

Ampere seems to run fine under Python 3.9.12 without complaint. I am therefore closing this issue, with an option to reopen it if new features cause ampere to cease working.