Skip to content

Commit

Permalink
mv all flow other than dpgen_loop to suerpop
Browse files Browse the repository at this point in the history
  • Loading branch information
Han Wang committed Feb 27, 2022
1 parent ef08f44 commit db3f12a
Show file tree
Hide file tree
Showing 12 changed files with 16 additions and 15 deletions.
2 changes: 1 addition & 1 deletion dpgen2/flow/loop.py → dpgen2/flow/dpgen_loop.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
from dpgen2.exploration.report import ExplorationReport
from dpgen2.exploration.task import ExplorationTaskGroup
from dpgen2.exploration.selector import ConfSelector
from dpgen2.flow.block import ConcurrentLearningBlock
from dpgen2.superop.block import ConcurrentLearningBlock

class SchedulerWrapper(OP):

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
url="https://github.com/deepmodeling/dpgen2",
packages=['dpgen2',
'dpgen2/op',
'dpgen2/flow',
'dpgen2/superop',
'dpgen2/utils',
'dpgen2/fp',
],
Expand Down
1 change: 1 addition & 0 deletions tests/mocked_ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
OPIOSign,
Artifact,
upload_packages,
FatalError,
)

upload_packages.append(__file__)
Expand Down
8 changes: 4 additions & 4 deletions tests/test_block_cl.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@
pass
from context import upload_python_package
from dpgen2.op.prep_lmp import PrepLmp
from dpgen2.flow.prep_run_dp_train import PrepRunDPTrain
from dpgen2.flow.prep_run_lmp import PrepRunLmp
from dpgen2.flow.prep_run_fp import PrepRunFp
from dpgen2.flow.block import ConcurrentLearningBlock
from dpgen2.superop.prep_run_dp_train import PrepRunDPTrain
from dpgen2.superop.prep_run_lmp import PrepRunLmp
from dpgen2.superop.prep_run_fp import PrepRunFp
from dpgen2.superop.block import ConcurrentLearningBlock
from dpgen2.exploration.task import ExplorationTask, ExplorationTaskGroup
from dpgen2.fp.vasp import VaspInputs

Expand Down
12 changes: 6 additions & 6 deletions tests/test_loop.py → tests/test_dpgen_loop.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,13 @@
ExplorationScheduler,
)
from dpgen2.op.prep_lmp import PrepLmp
from dpgen2.flow.prep_run_dp_train import PrepRunDPTrain
from dpgen2.flow.prep_run_lmp import PrepRunLmp
from dpgen2.flow.prep_run_fp import PrepRunFp
from dpgen2.flow.block import ConcurrentLearningBlock
from dpgen2.superop.prep_run_dp_train import PrepRunDPTrain
from dpgen2.superop.prep_run_lmp import PrepRunLmp
from dpgen2.superop.prep_run_fp import PrepRunFp
from dpgen2.superop.block import ConcurrentLearningBlock
from dpgen2.exploration.task import ExplorationTask, ExplorationTaskGroup
from dpgen2.fp.vasp import VaspInputs
from dpgen2.flow.loop import ConcurrentLearning
from dpgen2.flow.dpgen_loop import ConcurrentLearning
from dpgen2.exploration.report import ExplorationReport
from dpgen2.exploration.task import ExplorationTaskGroup, ExplorationStage
from dpgen2.exploration.selector import TrustLevelConfSelector, TrustLevel
Expand Down Expand Up @@ -514,7 +514,7 @@ def test_update_artifact(self):
wf_0.submit()
id_0 = wf_0.id

# wf_0 = Workflow(id='dpgen-kjd6c')
# wf_0 = Workflow(id='dpgen-rdhxw')

while wf_0.query_status() in ["Pending", "Running"]:
time.sleep(4)
Expand Down
2 changes: 1 addition & 1 deletion tests/test_prep_run_dp_train.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
# case of upload everything to argo, no context needed
pass
from context import upload_python_package
from dpgen2.flow.prep_run_dp_train import PrepRunDPTrain
from dpgen2.superop.prep_run_dp_train import PrepRunDPTrain
from dpgen2.constants import train_task_pattern
from mocked_ops import (
mocked_template_script,
Expand Down
2 changes: 1 addition & 1 deletion tests/test_prep_run_lmp.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
pass
from context import upload_python_package
from dpgen2.op.prep_lmp import PrepLmp
from dpgen2.flow.prep_run_lmp import PrepRunLmp
from dpgen2.superop.prep_run_lmp import PrepRunLmp
from dpgen2.exploration.task import ExplorationTask, ExplorationTaskGroup
from mocked_ops import (
mocked_numb_models,
Expand Down
2 changes: 1 addition & 1 deletion tests/test_prep_run_vasp.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
# case of upload everything to argo, no context needed
pass
from context import upload_python_package
from dpgen2.flow.prep_run_fp import PrepRunFp
from dpgen2.superop.prep_run_fp import PrepRunFp
from mocked_ops import (
mocked_incar_template,
MockedPrepVasp,
Expand Down

0 comments on commit db3f12a

Please sign in to comment.