Skip to content

Version 0.11.0

Choose a tag to compare

@teutoburg teutoburg released this 21 Sep 15:57
· 337 commits to main since this release

Large release in preparation of the ScopeSim Workshop happening next week. See below for important changes and deprecations.

Highlights

  • Finally add support for Python 3.13 and Numpy 2.
  • Partially resolve circular dependency between ScopeSim and ScopeSim_Templates
  • Several new effects in preparation for MOSAIC simulations (#796).
  • New and improved plotting methods on some classes for easier and nicer visualisation of results.

What's Changed

Deprecations

Download functionality

  • Deprecate downloading IRDB packages directly from GitHub by @teutoburg in #727

Installing IRDB packages directly from GitHub using download_packages() is deprecated. We're not aware that this functionality saw any significant use by the community. If you do need to install unreleased IRDB packages from the GitHub repository (and you know why you need that!), the same result can be achieved by cloning the repository (or your own fork) and then use sim.link_irdb(<path_to_clone>) to point ScopeSim there. That solution has the added benefit that you can keep thing in sync through git alone, which is more reliable anyway. The relevant functionality will be removed in version 0.12.0, at which point attempting to use download_packages() with a GitHub ref will result in an error.

Passing a list as the first argument to download_example_data() has been deprecated since version 0.8.4 and will now result in a TypeError being raised. This is to catch any remaining uses of the old call signature of this function. From version 0.12.0 onwards, arguments will be silently forwarded to the file retriever, meaning if a list is still passed at that point, it will result in an error further downstream.

Source Fields

  • Deprecate direct attribute access in SourceField by @teutoburg in #733

After the SourceField refactor in version 0.9.0, it was still possible to access any item of the underlying data structur (Table or ImageHDU) directly through the SourceField via a standard dict-like syntax. This was retained for backwards compatibility, because some code still relied on this functionality. It does however have the potential to leade to some hard-to-track bugs and is generally an unclean solution, which is why we have been working behind the scenes to slowly remove all internal code that still uses this feature. Now because this is related to how the Source object might be put together in user code, we're using a more carefuly approach in deprecating this, to avoid breaking existing code for no urgent reason. We're thus activating a PendingDeprecationWarning now, which should give users an advanced warning that we will probably fully deprecate this in the future. If you do encounter this warning, please try to use the .field attribute to explicitly access the underlying data structur before using dict-like lookup on it.

API Changes

Bugs fixed

  • Fix creation of cube source from file name by @teutoburg in #559
  • Fix WCU radiometry by @oczoske in #754
  • Use RegularGridInterpolator for proper extrapolation of small PSF images by @oczoske in #798

Changes to or addition of Effects

  • Functionality for MOSAIC minimum viable product by @oczoske in #796

New Features or Improvements

Dependency Changes

Documentation Improvements

Other Changes

Full Changelog: v0.10.0...v0.11.0