We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b755541 commit ec33788Copy full SHA for ec33788
src/transformations/correction/geometry_correction.jl
@@ -43,6 +43,9 @@ Any `GeometryCorrection` must implement two functions:
43
"""
44
abstract type GeometryCorrection end
45
46
+# Make sure that geometry corrections are treated as scalars when broadcasting.
47
+Base.Broadcast.broadcastable(c::GeometryCorrection) = (c,)
48
+
49
application_level(gc::GeometryCorrection) = error("Not implemented yet for $(gc)")
50
51
(gc::GeometryCorrection)(geometry) = gc(GI.trait(geometry), geometry)
0 commit comments