Skip to content

Commit

Permalink
Purge SerialMaster
Browse files Browse the repository at this point in the history
It is not productively used anymore and we were not even able to reconstruct the meaning of its tests.
  • Loading branch information
pmrv committed Dec 20, 2023
1 parent b9bd891 commit 1862ec6
Show file tree
Hide file tree
Showing 11 changed files with 9 additions and 435 deletions.
3 changes: 0 additions & 3 deletions pyiron_atomistics/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@
"AtomisticExampleJob": "pyiron_atomistics.testing.randomatomistic",
"Calphy": "pyiron_atomistics.calphy.job",
"ConvEncutParallel": "pyiron_atomistics.dft.master.convergence_encut_parallel",
"ConvEncutSerial": "pyiron_atomistics.dft.master.convergence_encut_serial",
"ConvergenceVolume": "pyiron_atomistics.atomistics.master.convergence_volume",
"ConvKpointParallel": "pyiron_atomistics.dft.master.convergence_kpoint_parallel",
"ElasticTensor": "pyiron_atomistics.atomistics.master.elastic",
"ExampleJob": "pyiron_atomistics.testing.randomatomistic",
Expand All @@ -42,7 +40,6 @@
"QuasiHarmonicJob": "pyiron_atomistics.atomistics.master.quasi",
"QuasiNewton": "pyiron_atomistics.interactive.quasi_newton",
"ScipyMinimizer": "pyiron_atomistics.interactive.scipy_minimizer",
"SerialMaster": "pyiron_atomistics.atomistics.master.serial",
"Sphinx": "pyiron_atomistics.sphinx.sphinx",
"StructureContainer": "pyiron_atomistics.atomistics.job.structurecontainer",
"StructureListMaster": "pyiron_atomistics.atomistics.master.structure",
Expand Down
2 changes: 1 addition & 1 deletion pyiron_atomistics/atomistics/job/atomistic.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ class AtomisticGenericJob(GenericJobCore, HasStructure):
.. attribute:: job_type
Job type object with all the available job types: ['ExampleJob', 'SerialMaster', 'ParallelMaster', 'ScriptJob',
Job type object with all the available job types: ['ExampleJob', 'ParallelMaster', 'ScriptJob',
'ListMaster']
"""

Expand Down
61 changes: 0 additions & 61 deletions pyiron_atomistics/atomistics/master/convergence_volume.py

This file was deleted.

72 changes: 0 additions & 72 deletions pyiron_atomistics/atomistics/master/serial.py

This file was deleted.

2 changes: 1 addition & 1 deletion pyiron_atomistics/atomistics/master/structure.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ class StructureListMaster(ParallelMaster):
.. attribute:: job_type
Job type object with all the available job types: ['ExampleJob', 'SerialMaster', 'ParallelMaster',
Job type object with all the available job types: ['ExampleJob', 'ParallelMaster',
'ScriptJob', 'ListMaster']
.. attribute:: child_names
Expand Down
68 changes: 0 additions & 68 deletions pyiron_atomistics/dft/master/convergence_encut_serial.py

This file was deleted.

13 changes: 5 additions & 8 deletions pyiron_atomistics/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,10 +209,10 @@ class Project(ProjectCore):
Job Type object with all the available job types: ['StructureContainer’, ‘StructurePipeline’, ‘AtomisticExampleJob’,
‘ExampleJob’, ‘Lammps’, ‘KMC’, ‘Sphinx’, ‘Vasp’, ‘GenericMaster’,
SerialMaster’, ‘AtomisticSerialMaster’, ‘ParallelMaster’, ‘KmcMaster’,
‘ParallelMaster’, ‘KmcMaster’,
‘ThermoLambdaMaster’, ‘RandomSeedMaster’, ‘MeamFit’, ‘Murnaghan’,
‘MinimizeMurnaghan’, ‘ElasticMatrix’, ‘ConvergenceVolume’,
ConvergenceEncutParallel’, ‘ConvergenceKpointParallel’, ’PhonopyMaster’,
‘MinimizeMurnaghan’, ‘ElasticMatrix’,
‘ConvergenceKpointParallel’, ’PhonopyMaster’,
‘DefectFormationEnergy’, ‘LammpsASE’, ‘PipelineMaster’,
’TransformationPath’, ‘ThermoIntEamQh’, ‘ThermoIntDftEam’, ‘ScriptJob’,
‘ListMaster']
Expand Down Expand Up @@ -251,8 +251,6 @@ def create_job(self, job_type, job_name, delete_existing_job=False):
- ‘Sphinx’:
- ‘Vasp’:
- ‘GenericMaster’:
- ‘SerialMaster’: series of jobs run in serial
- ‘AtomisticSerialMaster’:
- ‘ParallelMaster’: series of jobs run in parallel
- ‘KmcMaster’:
- ‘ThermoLambdaMaster’:
Expand All @@ -261,7 +259,6 @@ def create_job(self, job_type, job_name, delete_existing_job=False):
- ‘Murnaghan’:
- ‘MinimizeMurnaghan’:
- ‘ElasticMatrix’:
- ‘ConvergenceVolume’:
- ‘ConvergenceEncutParallel’:
- ‘ConvergenceKpointParallel’:
- ’PhonopyMaster’:
Expand All @@ -277,9 +274,9 @@ def create_job(self, job_type, job_name, delete_existing_job=False):
Args:
job_type (str): job type can be ['StructureContainer’, ‘StructurePipeline’, ‘AtomisticExampleJob’,
‘ExampleJob’, ‘Lammps’, ‘KMC’, ‘Sphinx’, ‘Vasp’, ‘GenericMaster’,
SerialMaster’, ‘AtomisticSerialMaster’, ‘ParallelMaster’, ‘KmcMaster’,
‘ParallelMaster’, ‘KmcMaster’,
‘ThermoLambdaMaster’, ‘RandomSeedMaster’, ‘MeamFit’, ‘Murnaghan’,
‘MinimizeMurnaghan’, ‘ElasticMatrix’, ‘ConvergenceVolume’,
‘MinimizeMurnaghan’, ‘ElasticMatrix’,
‘ConvergenceEncutParallel’, ‘ConvergenceKpointParallel’, ’PhonopyMaster’,
‘DefectFormationEnergy’, ‘LammpsASE’, ‘PipelineMaster’,
’TransformationPath’, ‘ThermoIntEamQh’, ‘ThermoIntDftEam’, ‘ScriptJob’,
Expand Down
4 changes: 2 additions & 2 deletions pyiron_atomistics/testing/randomatomistic.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ class ExampleJob(GenericJob):
.. attribute:: job_type
Job type object with all the available job types: ['ExampleJob', 'SerialMaster', 'ParallelMaster', 'ScriptJob',
Job type object with all the available job types: ['ExampleJob', 'ParallelMaster', 'ScriptJob',
'ListMaster']
"""

Expand Down Expand Up @@ -372,7 +372,7 @@ class AtomisticExampleJob(ExampleJob, GenericInteractive):
.. attribute:: job_type
Job type object with all the available job types: ['ExampleJob', 'SerialMaster', 'ParallelMaster', 'ScriptJob',
Job type object with all the available job types: ['ExampleJob', 'ParallelMaster', 'ScriptJob',
'ListMaster']
"""

Expand Down
17 changes: 0 additions & 17 deletions tests/atomic/master/test_murnaghan.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,23 +62,6 @@ def test_non_converged_run(self):
self.assertFalse(murn.convergence_check())
self.assertTrue(murn.status.not_converged)

def test_run(self):
job = self.project.create_job(
'AtomisticExampleJob', "job_test"
)
job.structure = self.basis
job_ser = self.project.create_job(
self.project.job_type.SerialMaster, "murn_iter"
)
job_ser.append(job)
job_ser.set_goal(convergence_goal, eps=0.4)
murn = self.project.create_job("Murnaghan", "murnaghan")
murn.ref_job = job_ser
murn.input['num_points'] = 3
murn.run()
# This converges only occasionally. Probably need to design a better test
self.assertTrue(murn.status.not_converged or murn.status.finished)

def test_fitting_routines(self):
ref_job = self.project.create.job.Lammps('ref')
murn = ref_job.create_job('Murnaghan', 'murn')
Expand Down
Loading

0 comments on commit 1862ec6

Please sign in to comment.