Skip to content

Add configurable LOG_INTERVAL for protein processing logs#80

Open
GeorgWa wants to merge 2 commits into
mainfrom
configurable-log-interval
Open

Add configurable LOG_INTERVAL for protein processing logs#80
GeorgWa wants to merge 2 commits into
mainfrom
configurable-log-interval

Conversation

@GeorgWa
Copy link
Copy Markdown
Contributor

@GeorgWa GeorgWa commented Dec 22, 2025

  • Add LOG_INTERVAL config parameter (default: 100)
  • Add set_log_interval() function following existing config pattern
  • Update protein_intensity_estimation.py to use config.LOG_INTERVAL instead of hardcoded value

GeorgWa and others added 2 commits December 22, 2025 12:09
- Add LOG_INTERVAL config parameter (default: 100)
- Add set_log_interval() function following existing config pattern
- Update protein_intensity_estimation.py to use config.LOG_INTERVAL instead of hardcoded value

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@GeorgWa GeorgWa requested review from Copilot and mschwoer December 22, 2025 11:12
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds configurability to the protein processing log interval by introducing a new LOG_INTERVAL configuration parameter. Previously, the logging frequency was hardcoded to every 100 proteins.

Key changes:

  • Introduced LOG_INTERVAL config parameter with default value of 100
  • Added set_log_interval() function to allow runtime configuration
  • Updated protein processing logic to use the configurable interval instead of hardcoded value

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
directlfq/config.py Added LOG_INTERVAL configuration variable and set_log_interval() setter function following the existing config pattern
directlfq/protein_intensity_estimation.py Updated logging condition to use config.LOG_INTERVAL instead of hardcoded value 100

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread directlfq/config.py
@@ -13,6 +13,12 @@ def set_log_processed_proteins(log_processed_proteins = True):
global LOG_PROCESSED_PROTEINS
LOG_PROCESSED_PROTEINS = log_processed_proteins

Copy link

Copilot AI Dec 22, 2025

Choose a reason for hiding this comment

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

The separator comment uses inconsistent formatting compared to other separators in the file. The separator at line 23 uses the same format, but the separator at line 16 appears after the function definition instead of before the variable declaration like line 23. Consider moving this separator to line 15 to maintain consistency with the existing pattern where separators precede variable declarations.

Suggested change

Copilot uses AI. Check for mistakes.
Copy link
Copy Markdown
Contributor

@mschwoer mschwoer left a comment

Choose a reason for hiding this comment

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

please name 3 reasons why I prefer https://github.com/MannLabs/directlfq/pull/79/changes :-D

@GeorgWa
Copy link
Copy Markdown
Contributor Author

GeorgWa commented Dec 22, 2025

I used the same global variable mechanism and set method on purpose. If this is what you mean :D

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.

3 participants