v0.6.0
0.6.0 (29.04.2022)
This release includes major changes to the handling and support of units in the API and ASDF schemas.
All classes now support and require quantities where appropriate. Plain numbers without units are no longer supported
and will raise an exception. If the number is truly dimensionless, you still have to wrap it with
the quantity class weldx.Q_
like this:
my_number = 42.0
my_number_wrapped = weldx.Q_(my_number, "meter")
Furthermore, a new class called GenericSeries
was added. It provides a common interface to describe coordinate-based
data either by discrete values or mathematical expressions. A built-in mechanism lets you derive specialized series with
specific requirements. For more information, have a look
at the new tutorial .
added
DynamicShapeSegment
[#713]SpatialSeries
andDynamicTraceSegment
[#699]- first draft of the
multi_pass_weld
schema for WelDX files [#667] - add
GenericSeries
as base class supporting arrays and equations [#618] - add experimental unit support for
.weldx.interp_like
accessor [#518] - new tutorial series that introduces the most important WelDX features
step by step based on a full example file [#555] - add
path
option toWeldxFile.info
andWeldxFile.show_asdf_header
[#555]
removed
- removed access to
WeldxFile.data
[#744]
changes
- The
wx_property_tag
validator now also accepts lists of different tags. [#670]
When multiple tags are passed, validation will fail if none of the supplied patterns match. - Due to a
pandas
update, using the + operator withTime
and either apandas.TimedeltaIndex
orpandas.DatetimeIndex
now only works if theTime
instance is on the left-hand side. [#684] LocalCoordinateSystem
andCoordinateSystemManager
now supportpint.Quantity
as coordinates.
Types without units are still supported but are deprecated. [#683]- Renamed show_asdf_header of
WeldxFile
toWeldxFile.header
. [#694] WeldxFile.custom_schema
now accepts an optional tuple with the first element being a schema to validate upon read,
the second upon writing the data. [#697]- Reshape
SpatialData
coordinates to(-1, 3)
before exporting withmeshio
for compatibility. [#723] SpatialData
,LocalCoordinateSystem
andCoordinateSystemManager
now require units [#731]
fixes
TimeSeries
can now be serialized correctly when using absolute times [#677]
documentation
- update PR link format in the changelog [#658]
- new tutorial that describes how to work with workpiece data from a WelDX file [#681]
ASDF
- update weldx extension and manifest version to
0.1.1
[#655] - removed legacy
weldx
tag and schema support [#600] - update
core/geometry/spatial_data
to version0.1.1
with support for multidimensional data [#655] - add
wx_shape
validation support forcore/data_array
[#655] - update
core/time_series
schema to usetime/time
[#677] - update
core/variable
schema to allow single string as data [#707] - update the default sorting order of
select_tag
forWeldxConverter
[#733] - add custom validation behavior to
wx_unit
[#739]
deprecations
- Coordinates without units for
LocalCoordinateSystem
andCoordinateSystemManager
dependencies
weldx
now works with Python-3.10. [#696]- bump to
asdf >=2.8.2
[#668] - add
pint-xarray
dependency [#518] - bump to
numpy>=1.20
(for numpy.typing) [#656] - bump to
pint >=0.18
for typing [#664] - bump to
xarray >=0.19
for array creation compatibility [#618] - add
bidict
dependency [#618] - set
networkx !=2.7
for plotting compatibility (for now) [#714, #722]
What's Changed
- update zenodo badge by @CagtayFabry in #653
- remove legacy schemas and code by @CagtayFabry in #600
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #654
- add dependabot.yml by @CagtayFabry in #659
- Bump codecov/codecov-action from 1 to 2.1.0 by @dependabot in #660
- Bump mamba-org/provision-with-micromamba from 10 to 11 by @dependabot in #661
- add issue and PR directives for sphinx by @CagtayFabry in #658
- Pint xarray by @CagtayFabry in #518
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #662
- use numpy typing for ArrayLike by @CagtayFabry in #656
- update spatial data schema by @CagtayFabry in #655
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #666
- update to pint >=0.18 by @CagtayFabry in #664
- asdf 2.8.2 fixes by @CagtayFabry in #668
- wx_property_tag list by @CagtayFabry in #670
- add flake8 plugins to pre-commit by @CagtayFabry in #669
- New tutorials by @vhirtham in #555
- set meshio<5.2 for sphinx builds by @CagtayFabry in #673
- Add
GenericSeries
by @vhirtham in #618 - [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #675
- Prevent circular ImportError meshio by @marscher in #676
- add time_series-0.1.1.yaml by @CagtayFabry in #677
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #679
- fix time behavior in tests and filter warnings for pandas 1.4 by @CagtayFabry in #689
- run PEP585 upgrade by @CagtayFabry in #678
- Third tutorial: geometry by @vhirtham in #681
- Fix failing tests and documentation by @vhirtham in #684
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #692
- Rename wxfile asdf header by @marscher in #694
- [doc] fix SciPy intersphinx link by @marscher in #698
- add and run mdformat by @CagtayFabry in #701
- treat
pint.UnitStrippedWarning
as error in pytest runs by @CagtayFabry in #702 - split read/write schema validation by @marscher in #697
- Check units of coordinates by @vhirtham in #683
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #704
- allow string in
core/variable
, default tag sorting by @CagtayFabry in #707 - Fix package build.yml by @vhirtham in #708
- add multi_pass_weld-0.1.0.yaml by @CagtayFabry in #667
- Download
single_pass_weld.wx
directly in the tutorials by @vhirtham in #705 - use Python-3.10 in docs building, testing by @marscher in #696
- ignore matplotlib docs link warnings by @CagtayFabry in #710
SpatialSeries
andDynamicTraceSegment
by @vhirtham in #699- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #711
- set networkx<2.7 by @CagtayFabry in #714
- allow asdf 2.10 by @CagtayFabry in #717
- Bump actions/setup-python from 2 to 3 by @dependabot in #718
- Fix sympy error by @vhirtham in #721
- Bump actions/checkout from 2 to 3 by @dependabot in #719
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #720
- allow networkx >2.7.0 by @CagtayFabry in #722
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #724
- Add
DynamicShapeSegment
by @vhirtham in #713 - reshape point data for
meshio
file export by @CagtayFabry in #723 - Update
GenericSeries
docstrings by @vhirtham in #712 - [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #726
- Bump actions/cache from 2 to 3 by @dependabot in #728
- fix docs build by @CagtayFabry in #729
- add git diff check by @CagtayFabry in #730
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #732
- Fix doctests by @vhirtham in #734
- [RTD] use new post_checkout build phase to unshallow copy. by @marscher in #735
- set default tag sorting order by @CagtayFabry in #733
- Bump actions/upload-artifact from 2 to 3 by @dependabot in #736
- Bump codecov/codecov-action from 2.1.0 to 3.0.0 by @dependabot in #737
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #738
- custom
wx_unit
validation behavior by @CagtayFabry in #739 - Bump codecov/codecov-action from 3.0.0 to 3.1.0 by @dependabot in #741
- cache conda env in CI runs by @CagtayFabry in #740
- Update ci by @CagtayFabry in #742
- Strict quantities by @vhirtham in #731
New Contributors
- @dependabot made their first contribution in #660
Full Changelog: v0.5.2...v0.6.0