Skip to content

Commit

Permalink
Merge pull request #160 from flucoma/pre-production
Browse files Browse the repository at this point in the history
1.0.6 preprod to prod
  • Loading branch information
tremblap authored Mar 28, 2023
2 parents c59b359 + 1491a7c commit 386d174
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 20 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
- uses: flucoma/actions/env@main
- uses: flucoma/actions/sc@main
with:
branch: origin/production
branch: origin/${{ github.ref_name }}

- name: sign binaries
uses: flucoma/actions/distribution@main
Expand All @@ -38,7 +38,7 @@ jobs:
- uses: flucoma/actions/env@main
- uses: flucoma/actions/sc@main
with:
branch: origin/production
branch: origin/${{ github.ref_name }}

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

- name: compress archive
run: tar -zcvf FluCoMa-SC-Linux.tar.gz FluidCorpusManipulation
Expand All @@ -73,7 +73,7 @@ jobs:
path: install/FluCoMa-SC-Linux.tar.gz

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

release:
Expand All @@ -93,6 +93,14 @@ jobs:
with:
name: linuxbuild

- name: delete pre-existing release
uses: dev-drprasad/[email protected]
with:
delete_release: true # default: false
tag_name: ${{ needs.linuxbuild.outputs.version }} # tag name to delete
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: package and upload
uses: softprops/action-gh-release@v1
with:
Expand All @@ -101,5 +109,6 @@ jobs:
files: FluCoMa*
prerelease: true
tag_name: ${{ needs.linuxbuild.outputs.version }}
target_commitish: ${{ github.sha }}
draft: false

12 changes: 4 additions & 8 deletions release-packaging/Classes/FluidKDTree.sc
Original file line number Diff line number Diff line change
Expand Up @@ -48,22 +48,18 @@ FluidKDTree : FluidModelObject
this.prSendMsg(this.kNearestDistMsg(buffer,k));
}

kr{|trig, inputBuffer,outputBuffer, numNeighbours = 1, lookupDataSet|
/* this.numNeighbours_(numNeighbours);
lookupDataSet = lookupDataSet ? -1;
this.lookupDataSet_(lookupDataSet);*/

kr{|trig, inputBuffer, outputBuffer, numNeighbours, radius, lookupDataSet|
^FluidKDTreeQuery.kr(trig,
this, numNeighbours, this.radius,lookupDataSet.asUGenInput,
this, numNeighbours??{this.numNeighbours}, radius??{this.radius}, lookupDataSet.asUGenInput,
inputBuffer,outputBuffer);
}

}

FluidKDTreeQuery : FluidRTMultiOutUGen
{
*kr{ |trig, tree, numNeighbours, radius,lookupDataSet, inputBuffer, outputBuffer |
^this.multiNew('control',trig, tree.asUGenInput, numNeighbours, radius,lookupDataSet!?(_.asUGenInput)??{-1}, inputBuffer.asUGenInput, outputBuffer.asUGenInput)
*kr{ |trig, tree, numNeighbours, radius, lookupDataSet, inputBuffer, outputBuffer |
^this.multiNew('control', trig, tree.asUGenInput, numNeighbours, radius, lookupDataSet!?(_.asUGenInput)??{-1}, inputBuffer.asUGenInput, outputBuffer.asUGenInput)
}

init { arg ... theInputs;
Expand Down
20 changes: 12 additions & 8 deletions release-packaging/Classes/FluidKNNRegressor.sc
Original file line number Diff line number Diff line change
Expand Up @@ -23,23 +23,27 @@ FluidKNNRegressor : FluidModelObject {
^this.prMakeMsg(\predict,this.id,sourceDataSet.id,targetDataSet.id)
}

predict{ |sourceDataSet, targetDataSet,action|
predict{ |sourceDataSet, targetDataSet, action|
actions[\predict] = [nil, action];
this.prSendMsg(this.predictMsg(sourceDataSet, targetDataSet));
}

predictPointMsg { |buffer|
^this.prMakeMsg(\predictPoint,id, this.prEncodeBuffer(buffer));
predictPointMsg { |sourceBuffer, targetBuffer|
^this.prMakeMsg(\predictPoint,id,
this.prEncodeBuffer(sourceBuffer),
this.prEncodeBuffer(targetBuffer),
["/b_query", targetBuffer.asUGenInput]);
}

predictPoint { |buffer, action|
actions[\predictPoint] = [number(FluidMessageResponse,_,_),action];
this.prSendMsg(this.predictPointMsg(buffer));
predictPoint { |sourceBuffer, targetBuffer, action|
actions[\predictPoint] = [nil,{action.value(targetBuffer)}];
this.predictPointMsg(sourceBuffer, targetBuffer);
this.prSendMsg(this.predictPointMsg(sourceBuffer, targetBuffer));
}

kr{|trig, inputBuffer,outputBuffer|
kr{|trig, inputBuffer, outputBuffer, numNeighbours, weight|
^FluidKNNRegressorQuery.kr(K2A.ar(trig),
this, this.numNeighbours, this.weight,
this, numNeighbours??{this.numNeighbours}, weight??{this.weight},
this.prEncodeBuffer(inputBuffer),
this.prEncodeBuffer(outputBuffer));
}
Expand Down

0 comments on commit 386d174

Please sign in to comment.