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

MAINT: Remodel electrochemistry module interface API to adhere to PEP-8 conventions #218

Merged
merged 11 commits into from
Jan 14, 2024
Merged
Prev Previous commit
Next Next commit
MAINT: a little bit of trial and error on what will make fenics logs …
…silent in CI
  • Loading branch information
jotelha committed Jan 14, 2024
commit aca11d8c207d992f306b3d78cee0d80c4b7ac0fa
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,12 @@ class ArgumentDefaultsAndRawDescriptionHelpFormatter(
# fenics writes some log messages to stdout. If we pipe the output,
# we don't want that, hence here we have to suppress fenics logging
# if no output file has been specified
dolfin.cpp.log.set_log_active(False)
try:
dolfin.cpp.log.set_log_active(False)
logging.getLogger('UFL').setLevel(logging.WARNING)
logging.getLogger('FFC').setLevel(logging.WARNING)
except: # if fenics not available, ignore any error here
pass

pnp.solve()

Expand Down
Loading