Skip to content

wavetool.py: clarify cmd_args. No functional change. - #334

Merged
aiChaoSONG merged 1 commit into
thesofproject:masterfrom
marc-hb:wavetools-args
Aug 13, 2020
Merged

aiChaoSONG merged 1 commit into
thesofproject:masterfrom
marc-hb:wavetools-args

Conversation

@marc-hb

@marc-hb marc-hb commented Aug 12, 2020

Copy link
Copy Markdown
Collaborator

The output of argparse was disguised with two steps:

  • it was converted to (slightly more verbose) dictionary for no
    particular reason

  • that dictionary was passed entirely as is as kwargs to every function,
    looking like these functions could be called with changing parameters.

Remove these two steps and make it clear that these values are always
the same global constants.

No other change; no functional change.

Signed-off-by: Marc Herbert marc.herbert@intel.com

The output of argparse was disguised with two steps:

- it was converted to (slightly more verbose) dictionary for no
particular reason

- that dictionary was passed entirely as is as kwargs to every function,
  looking like these functions could be called with changing parameters.

Remove these two steps and make it clear that these values are always
the same global constants.

No other change; no functional change.

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
@marc-hb
marc-hb requested a review from a team as a code owner August 12, 2020 03:08

@aiChaoSONG aiChaoSONG left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Let's use the global cmd line parameters, rather than pass through it to every function

@aiChaoSONG
aiChaoSONG merged commit 4f98922 into thesofproject:master Aug 13, 2020
@marc-hb
marc-hb deleted the wavetools-args branch October 22, 2020 02:04
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.

2 participants