Skip to content

Commit 386d174

Browse files
authored
Merge pull request #160 from flucoma/pre-production
1.0.6 preprod to prod
2 parents c59b359 + 1491a7c commit 386d174

File tree

3 files changed

+29
-20
lines changed

3 files changed

+29
-20
lines changed

.github/workflows/release.yml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
- uses: flucoma/actions/env@main
1212
- uses: flucoma/actions/sc@main
1313
with:
14-
branch: origin/production
14+
branch: origin/${{ github.ref_name }}
1515

1616
- name: sign binaries
1717
uses: flucoma/actions/distribution@main
@@ -38,7 +38,7 @@ jobs:
3838
- uses: flucoma/actions/env@main
3939
- uses: flucoma/actions/sc@main
4040
with:
41-
branch: origin/production
41+
branch: origin/${{ github.ref_name }}
4242

4343
- name: remove pdb files
4444
run: Remove-Item install -Recurse -Include *.pdb
@@ -61,7 +61,7 @@ jobs:
6161
- uses: flucoma/actions/env@main
6262
- uses: flucoma/actions/sc@main
6363
with:
64-
branch: origin/production
64+
branch: origin/${{ github.ref_name }}
6565

6666
- name: compress archive
6767
run: tar -zcvf FluCoMa-SC-Linux.tar.gz FluidCorpusManipulation
@@ -73,7 +73,7 @@ jobs:
7373
path: install/FluCoMa-SC-Linux.tar.gz
7474

7575
- id: get-version
76-
run: echo "::set-output name=version::$(cat flucoma.version.rc)"
76+
run: echo "version=$(cat flucoma.version.rc)" >> $GITHUB_OUTPUT
7777
working-directory: build/_deps/flucoma-core-src
7878

7979
release:
@@ -93,6 +93,14 @@ jobs:
9393
with:
9494
name: linuxbuild
9595

96+
- name: delete pre-existing release
97+
uses: dev-drprasad/[email protected]
98+
with:
99+
delete_release: true # default: false
100+
tag_name: ${{ needs.linuxbuild.outputs.version }} # tag name to delete
101+
env:
102+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
103+
96104
- name: package and upload
97105
uses: softprops/action-gh-release@v1
98106
with:
@@ -101,5 +109,6 @@ jobs:
101109
files: FluCoMa*
102110
prerelease: true
103111
tag_name: ${{ needs.linuxbuild.outputs.version }}
112+
target_commitish: ${{ github.sha }}
104113
draft: false
105114

release-packaging/Classes/FluidKDTree.sc

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,22 +48,18 @@ FluidKDTree : FluidModelObject
4848
this.prSendMsg(this.kNearestDistMsg(buffer,k));
4949
}
5050

51-
kr{|trig, inputBuffer,outputBuffer, numNeighbours = 1, lookupDataSet|
52-
/* this.numNeighbours_(numNeighbours);
53-
lookupDataSet = lookupDataSet ? -1;
54-
this.lookupDataSet_(lookupDataSet);*/
55-
51+
kr{|trig, inputBuffer, outputBuffer, numNeighbours, radius, lookupDataSet|
5652
^FluidKDTreeQuery.kr(trig,
57-
this, numNeighbours, this.radius,lookupDataSet.asUGenInput,
53+
this, numNeighbours??{this.numNeighbours}, radius??{this.radius}, lookupDataSet.asUGenInput,
5854
inputBuffer,outputBuffer);
5955
}
6056

6157
}
6258

6359
FluidKDTreeQuery : FluidRTMultiOutUGen
6460
{
65-
*kr{ |trig, tree, numNeighbours, radius,lookupDataSet, inputBuffer, outputBuffer |
66-
^this.multiNew('control',trig, tree.asUGenInput, numNeighbours, radius,lookupDataSet!?(_.asUGenInput)??{-1}, inputBuffer.asUGenInput, outputBuffer.asUGenInput)
61+
*kr{ |trig, tree, numNeighbours, radius, lookupDataSet, inputBuffer, outputBuffer |
62+
^this.multiNew('control', trig, tree.asUGenInput, numNeighbours, radius, lookupDataSet!?(_.asUGenInput)??{-1}, inputBuffer.asUGenInput, outputBuffer.asUGenInput)
6763
}
6864

6965
init { arg ... theInputs;

release-packaging/Classes/FluidKNNRegressor.sc

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,23 +23,27 @@ FluidKNNRegressor : FluidModelObject {
2323
^this.prMakeMsg(\predict,this.id,sourceDataSet.id,targetDataSet.id)
2424
}
2525

26-
predict{ |sourceDataSet, targetDataSet,action|
26+
predict{ |sourceDataSet, targetDataSet, action|
2727
actions[\predict] = [nil, action];
2828
this.prSendMsg(this.predictMsg(sourceDataSet, targetDataSet));
2929
}
3030

31-
predictPointMsg { |buffer|
32-
^this.prMakeMsg(\predictPoint,id, this.prEncodeBuffer(buffer));
31+
predictPointMsg { |sourceBuffer, targetBuffer|
32+
^this.prMakeMsg(\predictPoint,id,
33+
this.prEncodeBuffer(sourceBuffer),
34+
this.prEncodeBuffer(targetBuffer),
35+
["/b_query", targetBuffer.asUGenInput]);
3336
}
3437

35-
predictPoint { |buffer, action|
36-
actions[\predictPoint] = [number(FluidMessageResponse,_,_),action];
37-
this.prSendMsg(this.predictPointMsg(buffer));
38+
predictPoint { |sourceBuffer, targetBuffer, action|
39+
actions[\predictPoint] = [nil,{action.value(targetBuffer)}];
40+
this.predictPointMsg(sourceBuffer, targetBuffer);
41+
this.prSendMsg(this.predictPointMsg(sourceBuffer, targetBuffer));
3842
}
3943

40-
kr{|trig, inputBuffer,outputBuffer|
44+
kr{|trig, inputBuffer, outputBuffer, numNeighbours, weight|
4145
^FluidKNNRegressorQuery.kr(K2A.ar(trig),
42-
this, this.numNeighbours, this.weight,
46+
this, numNeighbours??{this.numNeighbours}, weight??{this.weight},
4347
this.prEncodeBuffer(inputBuffer),
4448
this.prEncodeBuffer(outputBuffer));
4549
}

0 commit comments

Comments
 (0)