Skip to content

Commit 6fc66ab

Browse files
committed
Move the warning to simpeg_drivers instead
1 parent 6d5989b commit 6fc66ab

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

simpeg/directives/_save_geoh5.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import logging
21
import re
32
from abc import ABC, abstractmethod
43
from datetime import datetime
@@ -397,13 +396,6 @@ def write(self, iteration: int, **_):
397396
filepath = dirpath / "SimPEG.out"
398397

399398
if iteration == 0:
400-
401-
if filepath.exists():
402-
logging.WARNING(
403-
"SimPEG.out file already exists and will be overwritten."
404-
)
405-
filepath.unlink()
406-
407399
with open(filepath, "w", encoding="utf-8") as f:
408400
f.write("iteration beta phi_d phi_m time\n")
409401
log = []

0 commit comments

Comments
 (0)