Skip to content

Commit

Permalink
checkpointing: remove warning for now
Browse files Browse the repository at this point in the history
  • Loading branch information
ksagiyam committed Jul 12, 2024
1 parent d12fdfe commit b83970e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions firedrake/checkpointing.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,10 @@ class DumbCheckpoint(object):
def __init__(self, basename, single_file=True,
mode=FILE_UPDATE, comm=None):
import warnings

Check failure on line 100 in firedrake/checkpointing.py

View workflow job for this annotation

GitHub Actions / Run linter

F401

firedrake/checkpointing.py:100:9: F401 'warnings' imported but unused
with warnings.catch_warnings():
warnings.simplefilter('always', DeprecationWarning)
warnings.warn("DumbCheckpoint class will soon be deprecated; use CheckpointFile class instead.",
DeprecationWarning)
#with warnings.catch_warnings():

Check failure on line 101 in firedrake/checkpointing.py

View workflow job for this annotation

GitHub Actions / Run linter

E265

firedrake/checkpointing.py:101:9: E265 block comment should start with '# '
# warnings.simplefilter('always', DeprecationWarning)
# warnings.warn("DumbCheckpoint class will soon be deprecated; use CheckpointFile class instead.",
# DeprecationWarning)
self.comm = comm or COMM_WORLD
self._comm = internal_comm(self.comm, self)
self.mode = mode
Expand Down

0 comments on commit b83970e

Please sign in to comment.