Skip to content

Commit

Permalink
Merge pull request #16 from harveybc/dev
Browse files Browse the repository at this point in the history
updated parse_args
  • Loading branch information
harveybc committed Apr 20, 2020
2 parents bb6e1fb + cd47288 commit 3672487
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 17 deletions.
2 changes: 2 additions & 0 deletions .bettercodehub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ exclude:
- .*/setup\.py
- .*/__init__\.py
- .*/__main__\.py
- .*/preprocessor\.py

2 changes: 1 addition & 1 deletion preprocessor/preprocessor.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
""" This File contains the Preprocessor class, it is the base class for DataTrimmer, FeatureSelector, Standardizer, MSSADecomposer. """
""" This File contains the Preprocessor class, it is the base class for DataTrimmer, FeatureSelector, Standardizer and MSSADecomposer classes. """

import argparse
import sys
Expand Down
10 changes: 2 additions & 8 deletions preprocessor/sliding_window/sliding_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,8 @@ def parse_args(self, args):
Returns:
:obj:`argparse.Namespace`: command line parameters namespace
"""
parser = argparse.ArgumentParser(
description="SlidingWindow: performs the sliding window technique on the input dataset."
)
parser.add_argument("--window_size",
help="Size of the window to be use for the sliding window technique. Default 30",
type=int,
default=30
)
parser = argparse.ArgumentParser(description="SlidingWindow: performs the sliding window technique on the input dataset.")
parser.add_argument("--window_size", type=int, default=30, help="Size of the window to be use for the sliding window technique. Default 30")
parser = self.parse_cmd(parser)
pargs = parser.parse_args(args)
if hasattr(pargs, "window_size"):
Expand Down
10 changes: 2 additions & 8 deletions preprocessor/standardizer/standardizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,8 @@ def parse_args(self, args):
Returns:
:obj:`argparse.Namespace`: command line parameters namespace
"""
parser = argparse.ArgumentParser(
description="Dataset Standardizer: standarizes a dataset."
)
parser.add_argument("--no_config",
help="Do not generate an output configuration file.",
action="store_true",
default=False
)
parser = argparse.ArgumentParser(description="Dataset Standardizer: standarizes a dataset.")
parser.add_argument("--no_config", help="Do not generate an output configuration file.", action="store_true",default=False)
parser = self.parse_cmd(parser)
pargs = parser.parse_args(args)
self.assign_arguments(pargs)
Expand Down

0 comments on commit 3672487

Please sign in to comment.