Skip to content

Commit

Permalink
Accept single file feature generation target
Browse files Browse the repository at this point in the history
  • Loading branch information
wonkoderverstaendige committed Dec 11, 2019
1 parent 983da95 commit 73aabbd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion dataman/features/features.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,11 @@ def main(args):
cli_args = parser.parse_args(args)

matpath = Path(cli_args.target).resolve()
matfiles = sorted(list(map(Path.resolve, matpath.glob('tetrode??.mat'))))
if matpath.is_file():
matfiles = [matpath]
else:
matfiles = sorted(list(map(Path.resolve, matpath.glob('tetrode??.mat'))))

logger.debug([mf.name for mf in matfiles])
logger.info('Found {} waveform files'.format(len(matfiles)))

Expand Down

0 comments on commit 73aabbd

Please sign in to comment.