Skip to content

Commit 605e111

Browse files
authored
Merge pull request #126 from SymbolicML/fix-generic-views
fix: avoid returning view for generic operators
2 parents 66f8e2b + cc589e5 commit 605e111

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

.github/workflows/check-format.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
#
2929
# julia -e 'using Pkg; Pkg.add(PackageSpec(name="JuliaFormatter", version="0.13.0"))'
3030
run: |
31-
julia -e 'using Pkg; Pkg.add(PackageSpec(name="JuliaFormatter"))'
31+
julia -e 'using Pkg; Pkg.add(PackageSpec(name="JuliaFormatter", version="1"))'
3232
julia -e 'using JuliaFormatter; format(".", verbose=true)'
3333
- name: Format check
3434
run: |

.github/workflows/fix-format.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
- uses: actions/checkout@v2
1212
- name: Install JuliaFormatter and format
1313
run: |
14-
julia -e 'import Pkg; Pkg.add("JuliaFormatter")'
14+
julia -e 'import Pkg; Pkg.add(PackageSpec(name="JuliaFormatter", version="1"))'
1515
julia -e 'using JuliaFormatter; format(".")'
1616
1717
- name: Create Pull Request

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "DynamicExpressions"
22
uuid = "a40a106e-89c9-4ca8-8020-a735e8728b6b"
33
authors = ["MilesCranmer <miles.cranmer@gmail.com>"]
4-
version = "1.10.0"
4+
version = "1.10.1"
55

66
[deps]
77
ChainRulesCore = "d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4"

src/Evaluate.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -868,7 +868,7 @@ end
868868
if N == 1
869869
return (cX[tree.feature]), true
870870
else
871-
return selectdim(cX, 1, tree.feature), true
871+
return copy(selectdim(cX, 1, tree.feature)), true
872872
end
873873
end
874874
elseif tree.degree == 1

0 commit comments

Comments
 (0)