Skip to content

[Add] Additional Python Wrapper (Release 2.7.0) - #5441

Merged
oliveralka merged 14 commits into
OpenMS:release/2.7.0from
oliveralka:add/additional_python_wrapper
Jul 20, 2021
Merged

oliveralka merged 14 commits into
OpenMS:release/2.7.0from
oliveralka:add/additional_python_wrapper

Conversation

@oliveralka

@oliveralka oliveralka commented Jul 19, 2021 •

Copy link
Copy Markdown
Contributor

Description

As discussed, we would like to add additional wrappers with examples for Release 2.7.0

BasicProteinInferenceAlgorithm.pxd
BayesianProteinInferenceAlgorithm.pxd
MzQCFile.pxd
FeatureFinderIdentificationAlgorithm.pxd

Checklist:

  • Make sure that you are listed in the AUTHORS file
  • Add relevant changes and new features to the CHANGELOG file
  • I have commented my code, particularly in hard-to-understand areas
  • New and existing unit tests pass locally with my changes
  • Updated or added python bindings for changed or new classes. (Tick if no updates were necessary.)

How can I get additional information on failed tests during CI:

If your PR is failing you can check out

Note:

  • Once you opened a PR try to minimize the number of pushes to it as every push will trigger CI (automated builds and test) and is rather heavy on our infrastructure (e.g., if several pushes per day are performed).

@oliveralka oliveralka changed the title Add/additional python wrapper [Add] Additional Python Wrapper (Release 2.7.0) Jul 19, 2021
@oliveralka

oliveralka commented Jul 20, 2021 •

Copy link
Copy Markdown
Contributor Author

FeatureFinderIdentificationAlgorithm.pxd
ProgressLogger& getProgressLogger() { return prog_log_; }
ProgressLogger getProgressLogger() nogil except + # wrap-ignore
Was not wrapped since it lead to a funky error:

Error compiling Cython file:
------------------------------------------------------------
...
    
    def getProgressLogger(self):
        """Cython signature: ProgressLogger getProgressLogger()
        Return progress logger
"""
        cdef _ProgressLogger * _r = new _ProgressLogger(self.inst.get().getProgressLogger())
                                                      ^
------------------------------------------------------------

@jpfeuffer

Copy link
Copy Markdown
Contributor

I don't think you can return references. You would need to return either a pointer or a copy. But I don't think anyone needs the ProgressLogger (since it's only for changing it). One can also just create a new one and overwrite the old. I don't even know if progress logging works reliably in python.

@poshul poshul left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like a good positive addition of more wrappers.

@timosachsenberg timosachsenberg left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice addition and thanks for the fixes.

@oliveralka
oliveralka merged commit 1b7536b into OpenMS:release/2.7.0 Jul 20, 2021
@oliveralka
oliveralka deleted the add/additional_python_wrapper branch July 20, 2021 16:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants