Skip to content

Commit d91af65

Browse files
committed
Replace os.mknod in nopbc
1 parent 63b760a commit d91af65

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

dpdata/deepmd/comp.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,6 @@ def dump(folder,
110110
except OSError:
111111
pass
112112
if data.get("nopbc", False):
113-
#os.mknod(os.path.join(folder, "nopbc"))
114113
with open(os.path.join(folder, "nopbc"), "w") as fw_nopbc:
115-
fw_nopbc.write("")
114+
pass
116115

dpdata/deepmd/raw.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ def dump (folder, data) :
7474
except OSError:
7575
pass
7676
if data.get("nopbc", False):
77-
#os.mknod(os.path.join(folder, "nopbc"))
7877
with open(os.path.join(folder, "nopbc"), "w") as fw_nopbc:
79-
fw_nopbc.write("")
78+
pass
8079

0 commit comments

Comments
 (0)