Recent Releases of asdf
asdf - 4.5.0
What's Changed
- use updated terminology for standard by @braingram in https://github.com/asdf-format/asdf/pull/1953
- warn when bundled pytest plugin runs by @braingram in https://github.com/asdf-format/asdf/pull/1959
- fix bug in assumption about what is tagged by @braingram in https://github.com/asdf-format/asdf/pull/1960
- add note discouraging metaschemas by @braingram in https://github.com/asdf-format/asdf/pull/1964
Full Changelog: https://github.com/asdf-format/asdf/compare/4.4.0...4.5.0
- Python
Published by braingram 6 months ago
asdf - 4.4.0
What's Changed
- asdftool fixes by @braingram in https://github.com/asdf-format/asdf/pull/1939
- Port benchmarks to pytest-benchmark, enable codspeed by @braingram in https://github.com/asdf-format/asdf/pull/1943
- add asdftool validate by @braingram in https://github.com/asdf-format/asdf/pull/1952
- Bump actions/checkout from 4 to 5 by @dependabot[bot] in https://github.com/asdf-format/asdf/pull/1954
- Simplify open by @braingram in https://github.com/asdf-format/asdf/pull/1955
- Check for external pytest-asdf-plugin and don't register bundled plugin if the external one exists by @braingram in https://github.com/asdf-format/asdf/pull/1957
- update changelog for 4.4.0 by @braingram in https://github.com/asdf-format/asdf/pull/1958
Full Changelog: https://github.com/asdf-format/asdf/compare/4.3.0...4.4.0
- Python
Published by braingram 6 months ago
asdf - 4.3.0
What's Changed
- return ndarray if lazy_load=False by @braingram in https://github.com/asdf-format/asdf/pull/1929
- Add
dumploaddumpsandloadsto top levelasdfby @braingram in https://github.com/asdf-format/asdf/pull/1930 - Bump OpenAstronomy/github-actions-workflows from 1 to 2 by @dependabot[bot] in https://github.com/asdf-format/asdf/pull/1933
- Docs updates by @braingram in https://github.com/asdf-format/asdf/pull/1938
- Fix urljoin usage for python 3.14 by @braingram in https://github.com/asdf-format/asdf/pull/1932
- deprecate resolver argument to load_schema by @braingram in https://github.com/asdf-format/asdf/pull/1934
- deprecate refreshextensionmanager by @braingram in https://github.com/asdf-format/asdf/pull/1935
- Restrict scope of ndarray validators by @braingram in https://github.com/asdf-format/asdf/pull/1937
- Fixes for custom schemas by @braingram in https://github.com/asdf-format/asdf/pull/1931
- deprecate urlmapping argument to getvalidator by @braingram in https://github.com/asdf-format/asdf/pull/1936
- generate changelog for 4.3.0 by @braingram in https://github.com/asdf-format/asdf/pull/1942
Full Changelog: https://github.com/asdf-format/asdf/compare/4.2.0...4.3.0
- Python
Published by braingram 7 months ago
asdf - 4.2.0
What's Changed
- fix downstream astrocut tests by @braingram in https://github.com/asdf-format/asdf/pull/1905
- Use fsspec for all non-local urls by @braingram in https://github.com/asdf-format/asdf/pull/1906
- allow extra keywords in structured datatype validation by @braingram in https://github.com/asdf-format/asdf/pull/1901
- use yaml constructors for _IgnoreCustomTagsLoader by @braingram in https://github.com/asdf-format/asdf/pull/1907
- Datatype validator fix by @braingram in https://github.com/asdf-format/asdf/pull/1904
- fix astrocut downstream tests by @braingram in https://github.com/asdf-format/asdf/pull/1912
- add weldx downstream by @braingram in https://github.com/asdf-format/asdf/pull/1919
- update pyproject.toml to avoid setuptools warnings by @braingram in https://github.com/asdf-format/asdf/pull/1917
- allow non-null post tree pre block padding by @braingram in https://github.com/asdf-format/asdf/pull/1918
- allow block index loading to use CSafeLoader by @braingram in https://github.com/asdf-format/asdf/pull/1920
- Cleanup docs by @braingram in https://github.com/asdf-format/asdf/pull/1913
- provide usedforsecurity to hashlib for block md5 by @braingram in https://github.com/asdf-format/asdf/pull/1925
- fix deepcopy of lazy tree by @braingram in https://github.com/asdf-format/asdf/pull/1922
- update changelog for 4.2.0 release by @braingram in https://github.com/asdf-format/asdf/pull/1926
Full Changelog: https://github.com/asdf-format/asdf/compare/4.1.0...4.2.0
- Python
Published by braingram 9 months ago
asdf - 4.1.0
What's Changed
- update downstream jobs to run on python 3.12 by @braingram in https://github.com/asdf-format/asdf/pull/1876
- fix type and filter docs for search by @braingram in https://github.com/asdf-format/asdf/pull/1880
- cleanup downstream by @braingram in https://github.com/asdf-format/asdf/pull/1885
- improve schema info collection combiner handling by @braingram in https://github.com/asdf-format/asdf/pull/1875
- pyproject.toml: versionfile requires setuptoolsscm>=8 by @wdconinc in https://github.com/asdf-format/asdf/pull/1894
- Add
Converter.to_infoto customizeinfoandsearchby @braingram in https://github.com/asdf-format/asdf/pull/1884 - fix dkist downstream test by @braingram in https://github.com/asdf-format/asdf/pull/1896
- docs/theme-updates by @alphasentaurii in https://github.com/asdf-format/asdf/pull/1897
- prep 4.1.0 release notes by @braingram in https://github.com/asdf-format/asdf/pull/1898
New Contributors
- @wdconinc made their first contribution in https://github.com/asdf-format/asdf/pull/1894
- @alphasentaurii made their first contribution in https://github.com/asdf-format/asdf/pull/1897
Full Changelog: https://github.com/asdf-format/asdf/compare/4.0.0...4.1.0
- Python
Published by braingram about 1 year ago
asdf - 4.0.0
This is a major release for asdf that includes removal of deprecated features and changes to some defaults.
Please see the "what's new" documentation: https://asdf.readthedocs.io/en/4.0.0/asdf/whats_new.html#whats-new-4-0-0 for a description of the included changes.
Changes include:
Feature
- Switch default ASDF standard to 1.6.0. (
#1744 <https://github.com/asdf-format/asdf/pull/1744>_) - Raise RuntimeError if a Convert subclass supports multiple tags but doesn't
implement selecttag. (
#1853 <https://github.com/asdf-format/asdf/pull/1853>)
General
- Set
memmap=Falseto default forasdf.openandAsdfFile.__init__. (#1801 <https://github.com/asdf-format/asdf/pull/1801>_)
Removal
- remove
copy_arrays(replaced bymemmap) (#1800 <https://github.com/asdf-format/asdf/pull/1800>_) - Remove deprecated API. See docs for full details. (
#1852 <https://github.com/asdf-format/asdf/pull/1852>_) - Switch default convertunknownndarraysubclasses to False and issue
deprecation warning if it is enabled. (
#1858 <https://github.com/asdf-format/asdf/pull/1858>)
- Python
Published by braingram over 1 year ago
asdf - 3.5.0
Bugfix
- Allow
asdf.util.load_yamlto handle recursive objects (#1825 <https://github.com/asdf-format/asdf/pull/1825>_)
Doc
- added issue links to changelog entries #1827
- Change asdf standard changelog entries to notes to ease transition to towncrier #1830
General
- fix changelog checker to remove brackets #1828
Removal
- Deprecate
ignore_version_mismatch. This option has done nothing since asdf 3.0.0 and will be removed in an upcoming asdf version #1819
- Python
Published by braingram over 1 year ago
asdf - 3.4.0
- Fix issue where roundtripping a masked array with no masked values removes the mask [#1803]
- Use a custom exception
AsdfSerializationErrorto indicate when an object in the tree fails to be serialized by asdf (and by yaml). This exception currently inherits fromyaml.representer.RepresenterErrorto provide backwards compatibility. However this inheritance may be dropped in a future asdf version. Please migrate to the newAsdfSerializationError. [#1809] - Drop
importlib_metadataas a dependency on Python 3.12 and newer [#1810] - Bumped minimal requirement on
attrsfrom20.1.0to22.2.0[#1815]
- Python
Published by braingram over 1 year ago
asdf - 3.3.0
- Fix
__asdf_traverse__for non-tagged objects [#1739] - Deprecate
asdf.testing.helpers.format_tag[#1774] - Deprecate
asdf.versioning.AsdfSpec[#1774] - Deprecate
asdf.util.filepath_to_urlusepathlib.Path.to_uri[#1735] - Record package providing manifest for extensions used to write
a file and
AsdfPackageVersionWarningwhen installed extension/manifest package does not match that used to write the file [#1758] - Fix bug where a dictionary containing a key
idcaused any contained references to fail to resolve [#1716] - Issue a
AsdfManifestURIMismatchWarningduring write if a used extension was created from a manifest registered with a uri that does not match the id in the manifest [#1785] - Allow converters to provide types as strings that can resolve to public classes (even if the class is implemented in a private module). [#1654]
- Add options to control saving the base array when saving array views
controlled via
AsdfConfig.default_array_save_base,AsdfFile.set_array_save_baseandSerializationContext.set_array_save_base[#1753] - Deprecate
ignore_implicit_conversionand "implicit conversion" [#1724] - Add
lazy_treeoption toasdf.openandasdf.configto allow lazy deserialization of ASDF tagged tree nodes to custom objects. [#1733]
- Python
Published by braingram over 1 year ago
asdf - 3.1.0
3.1.0 (2024-02-27)
The ASDF Standard is at v1.6.0 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Cleanup
asdf.utilincluding deprecating:human_listresolve_nameminversionanditer_subclasses[#1688]Deprecate validation on
AsdfFile.treeassignment. Please useAsdfFile.validateto validate the tree [#1691]Deprecate validation during
AsdfFile.resolve_references. Please useAsdfFile.validateto validate the tree [#1691]Deprecate
asdf.asdfandAsdfFile.resolve_and_inline[#1690]Deprecate automatic calling of
AsdfFile.find_referencesduringAsdfFile.__init__andasdf.open[#1708]Allow views of memmapped arrays to keep the backing mmap open to avoid segfaults [#1668]
Introduce
memmapargument toasdf.openthat overridescopy_arrayswith documentation that describes that the default formemmapwhencopy_arraysis removed in an upcoming asdf release will beFalseand asdf will no longer by-default memory map arrays. [#1667]Introduce
asdf.util.load_yamlto load just the YAML contents of an ASDF file (with the optiontaggedto load the contents as a tree ofasdf.tagged.Taggedinstances to preserve tags) [#1700]Require pytest 7+ and update asdf pytest plugin to be compatible with the current development version of pytest (8.1) [#1731]
Eliminate the use of the legacy
tmpdirfixture in favor of the newtmp_pathfixture for temporary directory creation. [#1759]Remove conversion of warnings to errors in asdf pytest plugin. This prevented other warning filters (like those provided with
-W) from working. If you want these warnings to produce errors you can now add your own warning filter [#1757]Only show
strrepresentation duringinfoandsearchif it contains a single line (and does not fail) [#1748]
- Python
Published by braingram almost 2 years ago
asdf - 3.0.0
Asdf 3.0.0 is the first major asdf release since 2018.
Thank you to all the contributors!
There are many large and small changes in asdf 3.0.
Please see the updated docs and the What's New page for more details.
The ASDF Standard is at v1.6.0 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- Drop support for ASDF-in-FITS. [#1288]
- Add
all_array_storage,all_array_compressionandall_array_compression_kwargstoasdf.config.AsdfConfig[#1468] - Move built-in tags to converters (except ndarray and integer). [#1474]
- Add block storage support to Converter [#1508]
- Remove deprecated legacy extension API [#1464]
- Fix issue opening files that don't support
fileno[#1557] - Allow Converters to defer conversion to other Converters
by returning
NoneinConverter.select_tag[#1561] - Remove deprecated tests.helpers [#1597]
- Remove deprecated loadcustomschema [#1596]
- Remove deprecated TagDefinition.schema_uri [#1595]
- Removed deprecated AsdfFile.open and deprecated asdf.open AsdfFile.write_to and AsdfFile.update kwargs [#1592]
- Fix
AsdfFile.infoloading all array data [#1572] - Blank out AsdfFile.tree on close [#1575]
- Move ndarray to a converter, add
convert_unknown_ndarray_subclassestoasdf.config.AsdfConfig, moveasdf.Streamtoasdf.tags.core.Stream, update block storage support for Converter and update internal block API [#1537] - Remove deprecated resolvelocalrefs argument to load_schema [#1623]
- Move IntegerType to converter and drop cache of converted values. [#1527]
- Remove legacy extension API [#1637]
- Fix bug that left out the name of the arrays that differed
for
asdftool diffcomparisons [#1652]
- Python
Published by braingram over 2 years ago
asdf - 2.15.1
The ASDF Standard is at v1.6.0
- Drop Python 3.8 support [#1556]
- Drop NumPy 1.20, 1.21 support [#1568]
- Convert numpy scalars to python types during yaml encoding to handle NEP51 changes for numpy 2.0 [#1605]
- Vendorize jsonschema 4.17.3 [#1591]
jsonschema vendorization
Asdf 2.15.1 includes internally a version of jsonschema 4.17.3. This inclusion was done to deal with incompatible changes in jsonschema 4.18.
Many libraries that use asdf import jsonschema to allow catching of ValidationError instances that might be raised during schema validation. Prior to asdf 2.15 this error type was not part of the public asdf API. For 2.15 and later users are expected to import ValidationError from asdf.exceptions (instead of jsonschema directly).
To further ease the transition, asdf will, when possible, use exceptions imported from any installed version of jsonschema. This means that when the asdf internal jsonschema raises a ValidationError on a system where jsonschema was separately installed, the internal jsonschema will attempt to use ValidationError from the installed version. This should allow code that catches exceptions imported from jsonschema to continue to work with no changes. However, asdf cannot guarantee compatibility with future installed jsonschema versions and users are encouraged to update their code to import ValidationError from asdf.exceptions.
Finally, asdf is temporarily keeping jsonschema as a dependency as many libraries expected this to be installed by asdf. We expect to drop this requirement soon (likely in 3.0.0) and this change might occur in a minor or even patch version.
The above text is also available in the updated docs under What's New.
Full Changelog: https://github.com/asdf-format/asdf/compare/2.15.0...2.15.1
- Python
Published by braingram over 2 years ago
asdf -
The ASDF Standard is at v1.6.0
- Require numpy<1.25 for python 3.8 [#1327]
- Add AsdfProvisionalAPIWarning to warn developers of new features that may undergo breaking changes but are likely to be included as stable features (without this warning) in a future version of ASDF [#1295]
- Add AsdfDeprecationWarning to AsdfFile.blocks [#1336]
- Document policy for ASDF release cycle including when support for ASDF versions end. Also document dependency support policy. [#1323]
- Update lower pins on
numpy(per release policy),packaging, andpyyamlto ones that we can successfully build and test against. [#1360] - Provide more informative filename when failing to open a file [#1357]
- Add new plugin type for custom schema validators. [#1328]
- Add AsdfDeprecationWarning to
asdf.types.CustomType[#1359] - Throw more useful error when provided with a path containing an extra leading slash [#1356]
- Add AsdfDeprecationWarning to AsdfInFits. Support for reading and writing ASDF in fits files is being moved to stdatamodels. [#1337]
- Add AsdfDeprecationWarning to asdf.resolver [#1362]
- Add AsdfDeprecationWarning to asdf.tests.helpers.assertextensioncorrectness [#1388]
- Add AsdfDeprecationWarning to asdf.type_index [#1403]
- Add warning to use of asdftool extract and remove-hdu about deprecation and impending removal [#1411]
- Deprecate AsdfFile attributes that use the legacy extension api [#1417]
- Add AsdfDeprecationWarning to asdf.types [#1401]
- deprecate defaultextensions, getdefaultresolver and getcachedasdfextension_list in asdf.extension [#1409]
- move asdf.types.formattag to asdf.testing.helpers.formattag [#1433]
- Deprecate AsdfExtenion, AsdfExtensionList, BuiltinExtension [#1429]
- Add AsdfDeprecationWarning to asdf_extensions entry point [#1361]
- Deprecate asdf.tests.helpers [#1440]
- respect umask when determining file permissions for written files [#1451]
- rename master branch to main [#1479]
- Python
Published by braingram almost 3 years ago
asdf - 2.14.0
Changes include:
- Update citation. [#1184]
- Add search support to ~asdf.AsdfFile.schema_info. [#1187]
- Add asdf.search.AsdfSearchResult support for ~asdf.AsdfFile.schema_info and
~asdf.search.AsdfSearchResult.schema_info method. [#1197]
- Use forc ndarray flag to correctly test for fortran array contiguity [#1206]
- Unpin jsonschema version and fix jsonschema deprecation warnings. [#1185]
- Replace pkg_resources with importlib.metadata. [#1199]
- Fix default validation for jsonschema 4.10+ [#1203]
- Add asdf-unit-schemas as a dependency, for backwards compatibility. [#1210]
- Remove stray toplevel packages docker docs and compatibility_tests from wheel [#1214]
- Close files opened during a failed call to asdf.open [#1221]
- Modify generic_file for fsspec compatibility [#1226]
- Add fsspec http filesystem support [#1228]
- Memmap whole file instead of each array [#1230]
- Fix issue #1232 where array data was duplicated during resaving of a fits file [#1234]
- Python
Published by braingram over 3 years ago
asdf - 2.12.1
Changes include:
- Overhaul of the ASDF documentation to make it more consistent and readable.
- Update deprecated instances of
abstractpropertytoabstractmethod - Move build configuration into
pyproject.toml - Pin
jsonschemato below4.10.0.
- Python
Published by WilliamJamieson over 3 years ago
asdf - 2.9.0
The ASDF Standard is at v1.6.0.
Changes include:
- Add the capability for classes to expose their contents to AsdfFile.info and AsdfFile.search via the
__asdf_traverse__method. - Drop support for Python 3.6.
- Update setup.py to raise error if "git submodule update --init" has not been run.
- Add ability for tags to correspond to multiple schemauri, with an implied allOf among the schemauris.
- Add the URL of the file being parsed to SerializationContext.
- Add asdf.testing.helpers module with simplified versions of test helpers previously available in asdf.tests.helpers.
- Python
Published by eslavich about 4 years ago
asdf - 2.8.2
The ASDF Standard is at v1.6.0.
Changes include:
Fix array compression for non-native byte order.
Fix bug in schema loading when URI is claimed by both legacy and new-style extensions.
Hide 'name' and 'version' attributes on instances of NDArrayType.
- Python
Published by eslavich about 4 years ago
asdf - 2.7.5
The ASDF Standard is at v1.6.0.
Changes include:
Fix bug in
asdf.schema.check_schemacausing relative references in metaschemas to be resolved incorrectly.Fix bug that corrupts ndarray views when a new block is added to an existing file in absence of a block index.
- Python
Published by eslavich over 4 years ago
asdf - 2.8.0
The ASDF Standard is at v1.6.0.
Changes include:
New plugin APIs for block compressors, extensions, and schemas.
New global configuration mechanism (
asdf.get_config()).Support for the asdf:// URI scheme.
Drop support for Python 3.5.
Support for ASDF Standard 1.6.0, which is available via the
versionargument toAsdfFile.__init__but not yet the default.Values that match defaults defined in schemas are no longer automatically removed from the ASDF tree.
Nonevalues are no longer removed from the tree on write.Remove the
asdf.testmethod andasdf.__githash__attribute.And more, see CHANGES.rst for details.
- Python
Published by eslavich almost 5 years ago
asdf - 2.7.4
The ASDF Standard is at v1.5.0.
Changes include:
Fix pytest plugin failure under older versions of pytest.
Fix bugs when serializing views over non-contiguous and FITS base arrays.
Add support for opening files from HTTPS URLs and following HTTP/HTTPS redirects.
- Python
Published by eslavich almost 5 years ago
asdf - 2.7.3
The ASDF Standard is at v1.5.0.
Changes include:
- Fix bug resulting in invalid strides values for views over FITS arrays.
- Add pytest plugin options to skip and xfail individual tests and xfail the unsupported ndarray-1.0.0 schema example.
- Python
Published by eslavich almost 5 years ago
asdf - 2.7.2
The ASDF Standard is at v1.5.0.
Changes include:
Fix bug causing test collection failures under Python 3.9.
Fix bug when decompressing arrays with numpy 1.20.
Replace
assertstatements withraiseat the behest of the bandit security linter.
- Python
Published by eslavich about 5 years ago
asdf - 2.7.0
The ASDF Standard is at v1.5.0.
Changes include:
Performance improvements when reading and validating ASDF files.
Numerous bug fixes. See CHANGES.rst for details.
Add option to
asdf.openthat disables schema validation on read.Improved warning messages. All asdf library warnings now subclass
asdf.exceptions.AsdfWarning.Drop support for filling default values from subschemas within oneOf or anyOf combiners.
Resolve deprecation warnings from the ASDF pytest plugin when used with newer versions of pytest.
Drop support for 2.x versions of the jsonschema package.
- Python
Published by eslavich over 5 years ago
asdf - 2.6.0
The ASDF Standard is at v1.5.0.
Changes include:
ASDF Standard 1.5.0 is now the default for new files. Changes to the standard include several new and updated transform schemas, and removal of wcs schemas that were previously deprecated and moved to the
gwcspackage.Add
asdf.infoandAsdfFile.searchmethods for visualizing and interactively searching an ASDF tree.Fix bug causing too many bytes to be consumed when reading compressed blocks.
Support validation and serialization of additional numpy scalar types.
Fix serialization of trees containing implicit internal references and reference cycles, and simplify handling of children in
ExtensionTypesubclasses.Fix bug preventing addition of history entries to a file that was initially saved without them.
Expand developer documentation to cover the details of pyyaml integration and conversion between tagged trees and custom trees.
- Python
Published by eslavich almost 6 years ago
asdf - Asdf-2.5.0
The ASDF Standard is at v1.4.0.
Changes include:
- Added convenience method for fetching the default resolver
- Fixed load_schema LRU cache memory usage issue
- Fixed bug causing segfault after update of a memory-mapped file.
- Python
Published by nden about 6 years ago
asdf - ASDF-2.4.1
- Define the
inoperator for top-levelAsdfFileobjects. [#623] - Overhaul packaging infrastructure. Remove use of
astropy_helpers. [#670] - Automatically register schema tester plugin. Do not enable schema tests by default. Add configuration setting and command line option to enable schema tests. [#676]
- Enable handling of subclasses of known custom types by using decorators for convenience. [#563]
- Add support for
jsonschema 3.x.[#684]
- Python
Published by nden over 6 years ago
asdf - 2.3.3
2.3.3 release (bugfix). See the change log for details.
- Python
Published by drdavella almost 7 years ago
asdf - 2.3.2
Bugfix release. See the change log for details.
- Python
Published by drdavella about 7 years ago
asdf - 2.3.1
Bug fix release. See the change log for details.
- Python
Published by drdavella about 7 years ago
asdf - 2.3.0
New feature release. See change log for details.
- Python
Published by drdavella about 7 years ago
asdf - 2.2.1
Fixes a packaging bug that was introduced in 2.2.0. See change log for details.
- Python
Published by drdavella over 7 years ago
asdf - 2.2.0
New feature release. See change log for details.
- Python
Published by drdavella over 7 years ago
asdf - 2.1.2
Fixes a regression introduced in v2.1.1. See change log for details.
- Python
Published by drdavella over 7 years ago
asdf - 2.1.1
Bugfix release. See the change log for additional details.
- Python
Published by drdavella over 7 years ago
asdf - 2.1.0
To install:
$ pip install asdf~=2.1
See the change log for details.
- Python
Published by drdavella over 7 years ago