Skip to content

fixed CLI duplicate bug - #449

Merged
Little-Ryugu merged 1 commit into
mainfrom
CLI-duplicates-bug-fix
Jul 24, 2026
Merged

fixed CLI duplicate bug#449
Little-Ryugu merged 1 commit into
mainfrom
CLI-duplicates-bug-fix

Conversation

@Little-Ryugu

Copy link
Copy Markdown
Collaborator

Fixes #434 .

CSVReader had a log output that none of the other logs had. This caused duplicate CLI prints when the sample reader and full reader were called. I've moved this log to convert.py so it only occurs once.

logger. propagate was set to False to avoid other duplicate logs, such as in the output file log.

Review Checklist for Source Code Changes

  • Does pip install still work?
  • Have you written a unit test for any new functions?
  • Do all the units tests run successfully?
  • Does Layup run successfully on a test set of input files/databases?
  • Have you used black on the files you have updated to confirm python programming style guide enforcement?

CSVReader had a log output that none of the other logs had. This caused duplicate CLI prints when sample reader and full reader were called. I've moved this log to convert.py so it only occurs once.

logger.propagate was set to False to avoid other duplicate logs such as in the output file log.

@matthewholman matthewholman left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Looks good to me.

@Little-Ryugu
Little-Ryugu merged commit bec2747 into main Jul 24, 2026
7 checks passed
@Little-Ryugu
Little-Ryugu deleted the CLI-duplicates-bug-fix branch July 24, 2026 14:26
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.

CLI logging is duplicated, and convert reads the CSV header twice

2 participants