Skip to content

Commit

Permalink
Updated type_values in factor operation to be optional
Browse files Browse the repository at this point in the history
  • Loading branch information
VisLab committed Feb 1, 2024
1 parent f7a1bdf commit 5098840
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion hed/tools/remodeling/operations/factor_hed_type_op.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def __init__(self, parameters):
"""
super().__init__(parameters)
self.type_tag = parameters["type_tag"]
self.type_values = parameters["type_values"]
self.type_values = parameters.get("type_values", None)

def do_op(self, dispatcher, df, name, sidecar=None):
""" Factor columns based on HED type and append to tabular data.
Expand Down
3 changes: 3 additions & 0 deletions hed/tools/util/io_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,9 @@ def get_file_list(root_path, name_prefix=None, name_suffix=None, extensions=None
Returns:
list: The full paths.
Notes: Exclude directories are paths relative to the root path.
"""
file_list = []
if not exclude_dirs:
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = hedtools
author = VisLab, Ian Callanan, Jeremy Cockfield, Alexander Jones, Owen Winterberg, Kay Robbins
author = VisLab (Kay Robbins), Ian Callanan, Monique Dennisen, Jeremy Cockfield, Alexander Jones, Owen Winterberg
author_email = [email protected]
description = HED validation, summary, and analysis tools.
long_description = file: README.md
Expand Down

0 comments on commit 5098840

Please sign in to comment.