Skip to content

Conversation

@agerardin
Copy link
Contributor

This PR updates the rolling ball plugin to the new plugin standard.
* New project structure
* Versioning
* Bump version: 1.0.2 → 1.1.0-dev0
* Switch from argparse to typer
* Update logging level
* Add CI tools
* Update tests

    * New project structure
    * Versioning
    * Bump version: 1.0.2 → 1.1.0-dev0
    * Switch from argparse to typer
    * Update logging level
    * Add CI tools
    * Update tests
Copy link
Contributor

@nishaq503 nishaq503 left a comment

Choose a reason for hiding this comment

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

There are a couple of minor changes needed here. The main change though is that the tests should be updated to only use pytest and not the unittest module.

Copy link
Member

@hamshkhawar hamshkhawar left a comment

Choose a reason for hiding this comment

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

@agerardin Please have a look at my comments and let me know if you have questions

…base.

* refactor unit tests with pytests
* add new tests for the client
* add exceptions for bad plugin inputs
* add a preview option
agerardin added 3 commits June 1, 2023 10:54
* add type info to method signature
* better handle plugin parameters
Copy link
Contributor

@nishaq503 nishaq503 left a comment

Choose a reason for hiding this comment

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

There are come more changes needed here:

  • Update the email addresses of authors to the nih.gov domain.
  • See my comments on the pyproject.toml file.
  • This plugin needs a filepattern argument as input and use it to filter input images.

"title": "Rolling Ball",
"description": "A WIPP plugin to perform background subtraction using the rolling-ball algorithm.",
"author": "Najib Ishaq (najib.ishaq@axleinfo.com)",
"author": "Najib Ishaq (najib.ishaq@nih.gov), Antoine Gerardin (antoine.gerardin@gmail.com)",
Copy link
Contributor

Choose a reason for hiding this comment

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

Both email addresses should be in the nih.gov domain.

name = "polus-plugins-transforms-images-rolling-ball"
version = "1.1.0-dev0"
description = "A WIPP plugin to perform background subtraction using the rolling-ball algorithm."
authors = ["Najib Ishaq <najib.ishaq@nih.gov>", "Antoine Gerardin <antoine,gerardin@gmail.com>"]
Copy link
Contributor

Choose a reason for hiding this comment

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

Email address here as well.

packages = [{include = "polus", from = "src"}]

[tool.poetry.dependencies]
python = "^3.9.15"
Copy link
Contributor

Choose a reason for hiding this comment

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

Specify this as ">=3.9,<3.12"


[tool.poetry.dependencies]
python = "^3.9.15"
bfio = "2.1.9"
Copy link
Contributor

Choose a reason for hiding this comment

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

Use all extras. bfio = { version = "2.1.9", extras = ["all]" }

Comment on lines +16 to +20
[[tool.poetry.source]]
name = "test"
url = "https://test.pypi.org/simple/"
default = false
secondary = true
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove this and use the newest version of filepattern from pypi

Comment on lines +26 to +27
flake8 = "^6.0.0"
flake8-docstrings = "^1.7.0"
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove flake8 and add ruff



@app.command()
def main(
Copy link
Contributor

Choose a reason for hiding this comment

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

Add an input argument for filepattern

"-m",
"polus.plugins.transforms.images.rolling_ball"
],
"inputs": [
Copy link
Contributor

Choose a reason for hiding this comment

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

We need a filepattern input parameter.

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