Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Nov 1, 2023
1 parent f428c1a commit b95caa2
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions tests/generator/test_make_md.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import copy
import glob
import json
import numpy as np
import os
import shutil
import sys
import unittest

import dpdata
import numpy as np

from dpgen.generator.run import parse_cur_job_sys_revmat, _read_model_devi_file
from dpgen.generator.run import _read_model_devi_file, parse_cur_job_sys_revmat

sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "..")))
__package__ = "generator"
Expand Down Expand Up @@ -247,9 +247,12 @@ def test_read_model_devi_file(self):
model_devi_array = np.zeros([3, 7])
model_devi_array[:, 0] = np.array([0, 2, 4])
for i in range(4):
np.savetxt(os.path.join(path, f"model_devi{i+1}.out"), model_devi_array, fmt="%d")
np.savetxt(
os.path.join(path, f"model_devi{i+1}.out"), model_devi_array, fmt="%d"
)
_read_model_devi_file(path)


class TestMakeModelDeviRevMat(unittest.TestCase):
def tearDown(self):
if os.path.isdir("iter.000000"):
Expand Down

0 comments on commit b95caa2

Please sign in to comment.