Skip to content

Commit

Permalink
Merge pull request #801 from jessicavers/master
Browse files Browse the repository at this point in the history
Optional argument for expand was changed
  • Loading branch information
nicwade authored Jul 13, 2021
2 parents 675a110 + 83200e5 commit 63d02bb
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 8 deletions.
2 changes: 2 additions & 0 deletions doc/source/tutorials/confluence/savu/savu_notes.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
:orphan:

.. _savu_notes:

Savu - notes on basic use
Expand Down
2 changes: 2 additions & 0 deletions doc/source/tutorials/confluence/savu/savu_tutorial.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
:orphan:

.. _savu_tutorial:

Savu - tutorial on basic use
Expand Down
5 changes: 0 additions & 5 deletions plugin_examples/example_median_filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,6 @@


class ExampleMedianFilter(BaseFilter, CpuPlugin):
"""
A plugin to filter each frame with a 3x3 median filter
:param kernel_size: Kernel size for the filter. Default: (1, 3, 3).
"""

def __init__(self):
logging.debug("Starting Median Filter")
Expand Down
15 changes: 15 additions & 0 deletions plugin_examples/example_median_filter_tools.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
from savu.plugins.plugin_tools import PluginTools

class ExampleMedianFilterTools(PluginTools):
"""
A plugin to filter each frame with a 3x3 median filter
"""

def define_parameters(self):
"""
kernel_size:
visibility: basic
dtype: list[int]
description: Kernel size for the filter.
default: [1, 3, 3]
"""
Original file line number Diff line number Diff line change
Expand Up @@ -110,5 +110,4 @@ def process_frames(self, data):
def post_process(self):
# This method is called once after all processing has completed
# (after an MPI barrier).
pass

pass
2 changes: 1 addition & 1 deletion scripts/config_generator/arg_parsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ def _expand_arg_parser(args=None, doc=True):
parser.add_argument('dim_view', nargs="?", default=False,
help=argparse.SUPPRESS)
expand_off_str = "Turn off the expand view"
parser.add_argument("-o", "--off", action="store_true",
parser.add_argument("--off", action="store_true",
dest="off", help=expand_off_str, default=False)
return __arg_parser(parser, args, "expand", doc)

Expand Down

0 comments on commit 63d02bb

Please sign in to comment.