-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor to work with matchms 0.6.0 #35
Conversation
…2vec into refactor_environment
Not yet sure why that is, but in the CI verify runs it seems to install the released |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The build and verify jobs do not have same matrix.
Also the upload artifact name does not include matrix identifiers making it possible to get wires crossed.
Let me do some local testing:
- try to make build artifact with a identifier for current workflow run in version of build package
- try to add
--use-local
to https://github.com/iomega/spec2vec/blob/refactor_environment/.github/workflows/conda_build.yml#L200-L205 - try to add
--only-deps
to https://github.com/iomega/spec2vec/blob/refactor_environment/.github/workflows/conda_build.yml#L200-L205 and doconda install $BUILDDIR
Co-authored-by: Stefan Verhoeven <[email protected]>
Luckliy a local conda build has the Spec2Vec class extending BaseSimilarity.
Seems https://anaconda.org/nlesc/spec2vec/0.2.0/download/noarch/spec2vec-0.2.0-pyhec00094_0.tar.bz2 and GH workflow /home/runner/work/_temp/spec2vec/_build/noarch/spec2vec-0.2.0-pyhec00094_0.tar.bz2 have the same version + build string so for conda it does not matter which is installed. -number: 0
+number: 999 The install with So I think adding a step before https://github.com/iomega/spec2vec/blob/refactor_environment/.github/workflows/conda_build.yml#L125 to change the build number in conda/meta.yml should fix it. |
Thanks a lot @sverhoeven . That looks better than the hard coded fix I had added in the end (installing matchms first, and then spec2vec). |
…2vec into refactor_environment
It also worked for me, locally. But here it still fails and picks |
Grr, can you add listing for /home/runner/work/_temp/spec2vec/_build and |
Seems to me like the file in
[edit]: |
Agree, let's rollback the build string 999 change and go with |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great to see the CI green again.
Just have some minor improvements.
Co-authored-by: Stefan Verhoeven <[email protected]>
Co-authored-by: Stefan Verhoeven <[email protected]>
Kudos, SonarCloud Quality Gate passed! 0 Bugs |
Thanks a lot for the help, Stefan! |
Started simple and became somewhat bigger with the recent changes of matchms.
Python 3.8
(and CI for this).Spec2Vec
andSpec2VecParallel
and make them inherit fromBaseSimilarity
.Spec2Vec.pair()
and.matrix()
methods.