File tree Expand file tree Collapse file tree 2 files changed +12
-5
lines changed
Expand file tree Collapse file tree 2 files changed +12
-5
lines changed Original file line number Diff line number Diff line change 11name = " Beamlines"
22uuid = " 5bb90b03-0719-46b8-8ce4-1ef3afd3cd4b"
33authors = [" Matt Signorelli <mgs255@cornell.edu> and contributors" ]
4- version = " 0.8.3 "
4+ version = " 0.8.4 "
55
66[deps ]
77Accessors = " 7d9f7c33-5ae7-4f3b-8dc6-eff91059b697"
Original file line number Diff line number Diff line change 1- @kwdef mutable struct MapParams{F<: Function , P<: Tuple } <: AbstractParams
1+ @kwdef mutable struct MapParams{F<: Function , P} <: AbstractParams
22 transport_map:: F = (v, q, p= nothing ) -> (v, q)
3- transport_map_params:: P = ()
3+ transport_map_params:: P = nothing
44end
55
66function Base. isapprox (a:: MapParams , b:: MapParams )
7- return a. transport_map == b. transport_map &&
8- all (a. transport_map_params .≈ b. transport_map_params)
7+ if xor (isnothing (a. transport_map_params), isnothing (b. transport_map_params))
8+ return false
9+ elseif isnothing (a. transport_map_params) && isnothing (b. transport_map_params)
10+ return true
11+ else
12+ return a. transport_map == b. transport_map &&
13+ all (a. transport_map_params .≈ b. transport_map_params)
14+ end
915end
1016
17+
1118# === THIS BLOCK WAS PARTIALLY WRITTEN BY CLAUDE ===
1219# Generated function for arbitrary-length tuples
1320@generated function deval (mp:: MapParams{F,P} ) where {F,P}
You can’t perform that action at this time.
0 commit comments