Eero Vaher

Results 49 issues of Eero Vaher

**Is your feature request related to a problem? Please describe.** The ability to create time dependent analytic potentials would be helpful for running N-body simulations, as it would allow to...

feature request

### Description This pull request enables using unit format names as string format specifiers for `Quantity` objects, e.g. ```python >>> from astropy import units as u >>> f'{1*u.m/u.s:latex_inline}' '$1 \\;...

units
Enhancement

`ConfigItem` instances have a `description` attribute, the contents of which are written to the configuration file as comments. However, there is currently no convenient way of accessing the `description` strings...

config

### Description Currently `astropy.utils.data.get_readable_fileobj()` checks the file signature of a non-random access file-like object (i.e. one that does not have a `seek()` method) by reading in *all* its contents to...

utils
Refactoring
no-changelog-entry-needed
Extra CI

Previously changing `simbad` config items at runtime had no effect. Now the config items are read when they are needed, unless the user has specified the corresponding class or instance...

simbad

Three updates have been made to the subpackage template. 1) It now recommends implementing private properties so that it would be possible to use the `astropy` configuration system at runtime,...

template module

The first commit of this pull request adds the `row_limit` argument to the `query_object` and `cone_search` families of functions in the Gaia module. It also ensures that the row limit...

gaia
esa

### Description [The recommended way of generating random numbers in `numpy` is through `np.random.default_rng()`](https://numpy.org/doc/stable/reference/random/index.html#quick-start). All code examples in the narrative documentation now follow this recommendation. That `default_rng()` is now indeed...

Docs
nddata
units
coordinates
modeling
stats
convolution
visualization
no-changelog-entry-needed
uncertainty
timeseries
backport-v5.0.x
backport-v5.1.x

### Description [PLR0911](https://docs.astral.sh/ruff/rules/too-many-return-statements/) guards against functions with very many return statements. The three functions in `astropy.io` violating that rule (which all happened to be in `io.fits`) have been updated. Two...

testing
io.fits
Refactoring
no-changelog-entry-needed
dev-automation

### Description The function has been unused since 4ef6c24b186694658be2300f16ea1a5b1c038eb2. [It is a part of the public API](https://docs.astropy.org/en/stable/api/astropy.utils.xml.unescaper.unescape_all.html#astropy.utils.xml.unescaper.unescape_all), so we cannot remove it immediately. - [x] By checking this box, the...

utils
Close?
API change