Skip to content

feat: MACE logging - #257

Closed
FelyCZ wants to merge 5 commits into
PHOTOX:dh-macefrom
FelyCZ:dh-mace
Closed

feat: MACE logging#257
FelyCZ wants to merge 5 commits into
PHOTOX:dh-macefrom
FelyCZ:dh-mace

Conversation

@FelyCZ

@FelyCZ FelyCZ commented Aug 5, 2026

Copy link
Copy Markdown
Collaborator

This PR replaces the standard use of 'print' with a correctly configured 'logging' module.

It also introduces a dump of the environment information (for debugging purposes).

--
related to #242

@FelyCZ FelyCZ mentioned this pull request Aug 5, 2026
4 tasks
@codecov

codecov Bot commented Aug 5, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 84.02%. Comparing base (6f1c328) to head (2e76d97).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff            @@
##           dh-mace     #257   +/-   ##
========================================
  Coverage    84.02%   84.02%           
========================================
  Files           49       49           
  Lines         6787     6787           
  Branches       786      786           
========================================
  Hits          5703     5703           
  Misses         878      878           
  Partials       206      206           
Flag Coverage Δ
unittests 18.25% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@danielhollas
danielhollas deleted the branch PHOTOX:dh-mace August 9, 2026 16:13
@danielhollas

Copy link
Copy Markdown
Contributor

@FelyCZ sorry, this has been closed accidentally when I merged the dh-mace branch to main. Can you please open a new PR against the main branch? I am not able to re-open this.

Comment thread interfaces/MACE/README.md

After installation, run the MACE tests to make sure the basic communication works.
```console
```bash

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This one should be kept as console because it contains the command outputs as well

setup_logger(debug=False)
model = config.model_path
if not model.startswith("__MOCK_") and not Path(model).is_file():
sys.exit(f"ERROR: file '{config.model_path}' not found")

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I'd prefer to keep this as is was so that the error message always gets printed regardless of logging configuration. But I don't feel strongly

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