332dcbc0f9- Update to 6.1.3 ## Bug Fixes ### astropy.io.fits * Fix reading zero-width columns such as 0A fields. [#16894] * Ensure that QTable, like Table, can read zero-length string columns, and not convert them to length 1 strings. In the process, avoid a needless copy of all the data for QTable. [#16898] ### astropy.io.votable * Fix KeyError when parsing certain VOTables. [#16830] ### astropy.modeling * Fixed the fit_deriv calculations in the Lorentz1D model. [#16794] ### astropy.table * Pretty-printing of Tables now also works in the presence of zero-length string columns (which sometimes are present in FITS tables). [#16898] ### astropy.utils * Fix the return type for np.broadcast_arrays on a single Masked instance: it now correctly returns a 1-element sequence instead of a single array, just like would be the case with a regular array. [#16842] ### astropy.wcs * Fix a bug where wcs_info_str’s results would look different in numpy 2 VS numpy 1. [#16586] ## Other Changes and Additions * The minimum required version of PyArrow is now v7.0.0. [#16785]
devel
Benjamin Greiner2024-08-30 15:31:50 +00:00
79cc8953be- limit to numpy < 2 - Restrict numpy to < 2. features since the 4.0.x series of releases. In particular, this * A new SpectralCoord class for representing and transforming * Support for in-place setting of array-valued SkyCoord and frame * Change in the definition of equality comparison for coordinate * Support for units on otherwise unitless models via the which are first time contributors to Astropy * astropy.table Fixed a small bug where initializing an empty Column with a structured dtype with a length and a shape * Fixed installation of the source distribution with astropy.utils.data.download_file now supports FTPS/FTP over astropy.utils.data now uses a lock-free mechanism for caching. This new mechanism uses a new cache layout and so ignores caches created using earlier mechanisms (which were causing lockups on clusters). The two cache formats can coexist but do astropy.utils.data now ignores the config item astropy.utils.data.conf.download_cache_lock_attempts since no astropy.utils.data.download_file and related functions now interpret the parameter or config file setting timeout=0 to mean they should make no attempt to download files. [#10437, astropy.utils.import_file_to_cache now accepts a keyword-only argument replace, defaulting to True, to determine whether it should replace existing files in the cache, in a way as close astropy.utils.data.download_file and related functions now treat http://example.com and http://example.com/ as equivalent. The new auxiliary WCS parameters added in WCSLIB 7.1 are now Added an extra fallback to os.expanduser('~') when trying to Corrected definition of parsec to 648 000 / pi AU following IAUDirk Mueller2024-08-09 07:08:05 +00:00
707a3eff42- update to 6.1.2: * When reading CDS and MRT files, only interpret a line as a section delimiter if it contains exclusively dashes or equal signs. This enables rows starting with dashes. * Fix a spurious exception when reading integer compressed images with blanks. * Fixed a crash that occurred for files opened via fits.open(..., mode='update'), on Windows, and with numpy 2.0 installed. A warning is now emitted in cases most likely to escalate into undefined behavior (e.g., segfaults), i.e., when a closed memory map object is still referenced by external code. Please report any regression found. * Fixed a bug that caused models returned by non-linear fitters to have sync_constraints set to False, which caused constraints accessed through, e.g., Model.fixed to not be in sync with the fixed attribute of the parameters. * Fixed a bug that caused CompoundModel.without_units_for_data to return an incorrectly constructed model when the compound model contained a * or / operation, and which also caused fitting to not work correctly with compound models that contained * or / operations. * The OGIP parser is now less restrictive with strings that represent a unit that includes the sqrt function. For example, u.Unit("sqrt(m)**3", format="ogip") no longer causes a ValueError. * Fixed an edge-case bug in overlap_slices where the function could return an empty slice for non-overlapping slices. * Fixed a WCSAxes bug when overlaying a frame with default units that are not degrees.Dirk Mueller2024-08-09 06:55:59 +00:00
89a1f8a66eAccepting request 1188362 from devel:languages:python:numericAna Guerrero2024-07-19 13:27:41 +00:00
97e3e6581bAccepting request 1183096 from devel:languages:python:numericAna Guerrero2024-06-25 21:07:54 +00:00
4386646c87- Update to 6.1.1: * Let fitsdiff compare files with lower case HIERARCH keywords * Fix writing a `HDUList to file when numpy 2 is installed and at least some of the data is represented as dask arrays. * Fix display of diff reports with numpy 2. * Ensure that also zero-length tables preserve whether integer data are signed or unsigned. * Fix YAML table serialization compatibility with numpy 2. * Fix bugs in io.votable related to numpy 2's representation of scalars. * Ensure that return types from sigma_clipcenfunc and stdfunc are np.float64 for scalar values. * Ensure structured MaskedColumn are serialized correctly, including the mask. * Fix problems converting Pandas Series to Table with numpy >=2.0. * Ensure Time in ymdhms format can also be serialized to files as part of a table if it is masked. * Ensure Masked versions of np.recarray will show the correct class name of MaskedRecarray in their repr, and that they will be serialized correctly if part of a table. * Fix bugs with how masked structured arrays were represented with numpy 2. * MaskedQuantity now works properly with np.block. * Fix a bug where WCSAxes could be missing negative signs on axis labels when using matplotlib's usetex` mode. * Fix compilation with gcc 14, avoid implicit pointer conversions. - Drop patch 16450.patch, included upstream. - Remove upper bound on pytest, no longer required.Steve Kowalik2024-06-25 06:16:51 +00:00
6ed071351dAccepting request 1177165 from devel:languages:python:numericAna Guerrero2024-05-28 15:29:08 +00:00
b04a5b6dbaAccepting request 1177083 from home:glaubitz:branches:devel:languages:python:numericMatej Cepl2024-05-27 15:03:21 +00:00
530a97c55dAccepting request 1171973 from devel:languages:python:numericAna Guerrero2024-05-06 15:54:36 +00:00
3376c20c6cAccepting request 1171972 from home:bnavigator:branches:devel:languages:python:numericBenjamin Greiner2024-05-05 10:53:38 +00:00
33b99eddf1Accepting request 1163558 from devel:languages:python:numericAna Guerrero2024-04-02 14:40:31 +00:00
c7226b37f0- Update to 6.0.1 ## Bug Fixes ### astropy.coordinates * Previously passing a SkyCoord instance to the BaseCoordinateFrame separation() or separation_3d() methods could produce wrong results, depending on what additional frame attributes were defined on the SkyCoord, but now SkyCoord input can be used safely. [#15659] * Distance now accepts as parallax any angle-like value. This includes types like Column which have a unit but are not Quantity subclasses. [#15712] * The new default for the class method SkyCoord.from_name() is to look for coordinates first in SIMBAD, then in NED, and then in VizieR, instead of having no specific order. [#16046] ### astropy.io.ascii * Reading of CDS header files with multi-line descriptions where the continued line started with a number was broken. This is now fixed. [#15617] * Ensure that the names of mixin columns are properly propagated as labels for the MRT format. [#15848] * Fixed reading IPAC tables for long column type on some platforms, e.g., Windows. [#15992] ### astropy.io.fits * Fix TDISP parsing for floating numbers. [#16007] * Fix a crash when calling FITS writeto methods with stdout as the output stream. [#16008] * Fix TDISP parsing for floating numbers in formats ES / EN. [#16015] ### astropy.stats * Fix a spurious warning when calling sigma_clipped_stats on aBenjamin Greiner2024-03-29 17:08:26 +00:00
cb4c4c973aAccepting request 1161727 from devel:languages:python:numericAna Guerrero2024-03-26 18:28:06 +00:00
585d7c670aAccepting request 1132272 from home:bnavigator:branches:devel:languages:python:numericBenjamin Greiner2023-12-09 20:32:37 +00:00
5c12feec76Accepting request 1124146 from devel:languages:python:numericAna Guerrero2023-11-08 21:18:12 +00:00
26a13db1b8Accepting request 1124145 from home:bnavigator:branches:devel:languages:python:numericBenjamin Greiner2023-11-08 01:55:18 +00:00
fda1ca23e8Accepting request 1115987 from devel:languages:python:numericAna Guerrero2023-10-06 19:14:17 +00:00
739f562d36- Update to 5.3.4 ## Bug Fixes ### astropy.io.misc * Updated `astropy.io.misc.yaml so dump() with a numpy object array or `load() with YAML representing a Numpy object array both raise TypeError. This prevents problems like a segmentation fault. [#15373] ### astropy.io.votable * Fixed a bug in convert_to_writable_filelike where GzipFile was not closed properly. [#15359] ### astropy.units * In VOUnit, the spaces around the slash were removed in the formatting of fractions, and fractional powers now also use the "**" operator. [#15282] * We now ensure that the unit u.cgs.cm is just an alias of u.si.cm, instead of a redefinition. This ensures that u.Unit("cm") / u.cm will reliably cancel to dimensionless (instead of some "cm / cm"). [#15368] ### astropy.utils * For Masked, np.ptp and the .ptp() method now properly account for the mask, ensuring the result is identical to subtracting the maximum and minimum (with the same arguments). [#15380] ## Other Changes and Additions * Compatibility with Python 3.12. [#14784] * Replaced the URL of IETF_LEAP_SECOND_URL` because the original is now defunct and IETF now defers to IANA for such look-up. [#15421]Benjamin Greiner2023-10-06 08:23:25 +00:00
c5800f7ba4Accepting request 1111062 from devel:languages:python:numericAna Guerrero2023-09-14 14:26:07 +00:00
290ef4cce0- Update to 5.3.3 ## Bug Fixes ### astropy.coordinates * TransformGraph.to_dot_graph() now throws an exception for invalid savelayout. ### astropy.cosmology * The exponent of w0wzCDM functions in inv_efunc has been corrected to 3, from -3. [#15224] ### astropy.modeling * Astropy modeling can filter non-finite data values using the filter_non_finite keyword argument in a fitter call. Now when filter_non_finite is True, non-finite weights will also be filtered to prevent crashes in LevMarLSQFitter. [#15215] ### astropy.units * Fixed astropy.units.Quantity’s implementation of numpy.nanmedian(), where for Numpy >= 1.25 an exception was raised for some array shapes and axis combinations. [#15228] ## Other Changes and Additions * v5.3.x will not support NumPy 2.0 or later. [#15234]Benjamin Greiner2023-09-14 08:34:27 +00:00
f4a78dfb35Accepting request 1105314 from devel:languages:python:numericAna Guerrero2023-08-28 15:11:22 +00:00
7231c79a08Accepting request 1105313 from home:bnavigator:branches:devel:languages:python:numericBenjamin Greiner2023-08-22 18:37:34 +00:00
f1b8dd8243Accepting request 1100172 from devel:languages:python:numericAna Guerrero2023-07-26 11:23:25 +00:00
d41867f79f- update to 5.3.1: * The exponent in `wowzCDM.de_density_scale has been corrected to 3, from -3. * Fix crash when a PrimaryHDU has a GROUPS keyword with a non- boolean value (i.e. not a random-groups HDU). * Fixed a bug that caused Cutout2D to not work correctly with CompImageHDU.section * Fixed a bug that caused compressed images with TFORM missing the optional '1' prefix to not be readable. [#15001] * Restore bitmask propagation behavior in NDData.mask, plus a fix for arithmetic between masked and unmasked NDData` objects. * Fix a bug where table indexes were not using a stable sort order. This was causing the order of rows within groups to not match the original table order when an indexed table was grouped. [#14907] * In VOunits, "pix", "au", "a", and "ct" are removed from the list of deprecated units. [#14885]Dirk Mueller2023-07-16 11:42:16 +00:00
2629826604- Update to 5.3 * New flat astropy.cosmology classes * New union operators for Table * Efficient data access for compressed FITS files * Added support for NOCOMPRESS for compressed FITS files * New fraction option for representing units as strings * Change in order in unit string representations * Support for collapse operations on arbitrary axes in nddata * Refresh cached observatory site registry for EarthLocation methods * Support for collapse operations on arbitrary axes in nddata * New LombScargleMultiband class for multiband datasets - Remove unbundling of cfitsio -- gh#astropy/astropy#14311Benjamin Greiner2023-07-01 14:28:29 +00:00
0a4b093aa9- Suppress hypothesis health check for slow OBS episodesBenjamin Greiner2021-08-27 10:04:37 +00:00
30f6d7b91bAccepting request 912890 from devel:languages:python:numeric
Richard Brown
2021-08-20 14:57:37 +00:00
dcc0d037e9- Update to version 4.3.1 Bug Fixes astropy.io.fits * In fits.io.getdata do not fall back to first non-primary extension when user explicitly specifies an extension. [#11860] * Ensure multidimensional masked columns round-trip properly to FITS. [#11911] * Ensure masked times round-trip to FITS, even if multi-dimensional. [#11913] * Raise ValueError if an np.float32 NaN/Inf value is assigned to a header keyword. [#11922] astropy.modeling * Fixed bug in fix_inputs handling of bounding boxes. [#11908] astropy.table * Fix an error when converting to pandas any Table subclass that automatically adds a table index when the table is created. An example is a binned TimeSeries table. [#12018] astropy.units * Ensure that unpickling quantities and units in new sessions does not change hashes and thus cause problems with (de) composition such as getting different answers from the .si attribute. [#11879] * Fixed cannot import name imperial from astropy.units namespace. [#11977] astropy.utils * Ensure any .info on Masked instances is propagated correctly when viewing or slicing. As a consequence, MaskedQuantity can now be correctly written to, e.g., ECSV format with serialize_method='data_mask'. [#11910]Benjamin Greiner2021-08-18 11:38:58 +00:00