Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add logger #180

Merged
merged 14 commits into from
Dec 23, 2024
Merged

Add logger #180

merged 14 commits into from
Dec 23, 2024

Conversation

tomjholland
Copy link
Collaborator

This pull request introduces logging improvements across various modules in the pyprobe package. The changes primarily involve adding logging for error messages and other significant events, which will help in better tracking and debugging.

Logging Enhancements:

  • pyprobe/__init__.py: Added a call to configure_logging() to set up logging when the package is initialized.
  • pyprobe/analysis/degradation_mode_analysis.py, pyprobe/analysis/smoothing.py, pyprobe/analysis/utils.py: Imported the logging module and initialized loggers. Replaced direct ValueError raises with logging the error messages before raising the exceptions. [1] [2] [3] [4] [5] [6] [7] [8] [9]
  • pyprobe/cell.py: Added logging for various error conditions and replaced print statements with logger.info calls. [1] [2] [3] [4] [5] [6] [7] [8]
  • pyprobe/cyclers/basecycler.py, pyprobe/cyclers/neware.py: Added logging for error conditions in cycler data processing. [1] [2] [3] [4] [5] [6] [7] [8]
  • pyprobe/filters.py: Introduced logging for error messages in filter operations. [1] [2] [3] [4] [5]

@tomjholland tomjholland added the infrastructure Modification or update of tooling for QA, installation, CI or deployment label Dec 23, 2024
@tomjholland tomjholland merged commit 41cd620 into main Dec 23, 2024
2 checks passed
@tomjholland tomjholland deleted the add-logger branch December 23, 2024 16:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
infrastructure Modification or update of tooling for QA, installation, CI or deployment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant