Releases: iris-hep/func_adl
3.5.0 - `in` operator, dictionary merging, bug fixes
See below for full change list
- You can now use the
in
operator (p.absPdgId() in [31, 51]
) - You can now use dictionary combinations, even with
if
expressions as long as those can be evaluated as the func adl query is being assembled. This is designed to make MC vs Data ntuple extraction more straight forward. - A few bug fixes (
sqrt
no longer produced the undeclared warning, some specific code formats are now parsed correctly).
What's Changed
- Fix parsing of multiline lambda dictionaries by @gordonwatts in #196
- Implement the
in
operator by @gordonwatts in #197 - Add sqrt as builtin function by @gordonwatts in #198
- Support dict unpacking with conditional expression by @gordonwatts in #199
Full Changelog: 3.4.2...3.5.0
3.5.0b1 - beta of dictionary and in operator
The big changes are you can now combine dictionaries in your Select
statement. This allows you to dynamically alter the returned ntuple depending on mc/data.
What's Changed
- Fix parsing of multiline lambda dictionaries by @gordonwatts in #196
- Implement the
in
operator by @gordonwatts in #197 - Add sqrt as builtin function by @gordonwatts in #198
- Support dict unpacking with conditional expression by @gordonwatts in #199
Full Changelog: 3.4.2...3.5.0b1
3.4.2 - Fix bug in how Range is interpreted
Fixed a bug in how Range
was called.
What's Changed
- Make sure Range isn't Replaced by @gordonwatts in #190
Full Changelog: 3.4.1...3.4.2
3.4.1 - Correctly parse nested functions
This is a small bug fix to make sure nested functions can be used in our code.
What's Changed
- Feat/nested_functions by @gordonwatts in #188
Full Changelog: 3.4.0...3.4.1
3.4.0 - enums, data classes, 3.13, lambda arguments
Lots of new features in this code. See the list of pull requests below. In particular:
- dataclasses and named ntuples are now supported, allowing for the breakdown of large queries to be much easier.
- enums are now much more carefully handled, and correctly passed down to the backend
- outter arguments in a nested lambda function can now be correctly referenced.
Lots of other things, like official 3.13 python support, the start of removing 3.8 support, documentation, citation files, etc.
There is some possible backwards incompatibility - in particular in the way parameterized calls are processed. If you have any, you should test!
What's Changed
- Add preferred citation and CITAITON.cff by @gordonwatts in #157
- fix: Add citation information for repository by @matthewfeickert in #162
- docs: Add conda-forge badge to README by @matthewfeickert in #153
- build: Support Python 3.9+ by @matthewfeickert in #159
- Support 3.13 and also pyproject.toml by @gordonwatts in #166
- Fixup project distriubtion files by @gordonwatts in #168
- Add dataclasses and named tuples as syntatic sugar by @gordonwatts in #176
- Add docs for named tuples and data classes by @gordonwatts in #177
- Lambda arguments can be captured by @gordonwatts in #182
- deep copy for deref tuple, list, dict by @gordonwatts in #184
- Improve error message when you forget to parameterize a call with [cpp_xxx] by @gordonwatts in #185
- Enum pass through by @gordonwatts in #186
Full Changelog: 3.3.3...3.4.0
3.4.0b7 - enum and other fixes
Specific fixes below - but lots of details making code in the wild work.
What's Changed
- Lambda arguments can be captured by @gordonwatts in #182
- deep copy for deref tuple, list, dict by @gordonwatts in #184
- Improve error message when you forget to parameterize a call with [cpp_xxx] by @gordonwatts in #185
- Enum pass through by @gordonwatts in #186
Full Changelog: 3.4.0b6...3.4.0b7
3.4.0b6 - typed (named) data classes and tuples
What's Changed
- Add preferred citation and CITAITON.cff by @gordonwatts in #157
- fix: Add citation information for repository by @matthewfeickert in #162
- docs: Add conda-forge badge to README by @matthewfeickert in #153
- build: Support Python 3.9+ by @matthewfeickert in #159
- Support 3.13 and also pyproject.toml by @gordonwatts in #166
- Fixup project distriubtion files by @gordonwatts in #168
- Add dataclasses and named tuples as syntatic sugar by @gordonwatts in #176
- Add docs for named tuples and data classes by @gordonwatts in #177
Full Changelog: 3.3.3...3.4.0b6
3.4.0b5 - and again
Full Changelog: 3.4.0b4...3.4.0b5
3.4.0b4 - another attempt
Full Changelog: 3.4.0b3...3.4.0b4
3.4.0b3 - another try at python publishing
Full Changelog: 3.4.0b2...3.4.0b3