/
test_scipyminimizer.py
32 lines (26 loc) · 1.09 KB
/
test_scipyminimizer.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# coding: utf-8
# Copyright (c) Max-Planck-Institut für Eisenforschung GmbH - Computational Materials Design (CM) Department
# Distributed under the terms of "New BSD License", see the LICENSE file.
import os
import unittest
from pyiron.project import Project
class TestSxExtOptInteractive(unittest.TestCase):
@classmethod
def setUpClass(cls):
cls.file_location = os.path.dirname(os.path.abspath(__file__))
cls.project = Project(os.path.join(cls.file_location, "../static/minim"))
cls.basis = cls.project.create_structure("Fe", "bcc", 2.8)
job = cls.project.create_job(
cls.project.job_type.AtomisticExampleJob, "job_single"
)
job.server.run_mode.interactive = True
job.structure = cls.basis
cls.minim = cls.project.create_job("ScipyMinimizer", "job_scipy")
cls.minim.ref_job = job
@classmethod
def tearDownClass(cls):
cls.project.remove_jobs_silently(recursive=True)
def test_minimizer(self):
self.assertEqual(self.minim.minimizer, 'CG')
if __name__ == "__main__":
unittest.main()