Skip to content

Commit 8175f7e

Browse files
Copilotnjzjz
andcommitted
Fix E101 mixed-spaces-and-tabs errors and add __all__ to remaining modules
Co-authored-by: njzjz <[email protected]>
1 parent c50ad12 commit 8175f7e

File tree

14 files changed

+560
-500
lines changed

14 files changed

+560
-500
lines changed

dpgen2/conf/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
__all__ = [
1717
"AlloyConfGenerator",
18-
"ConfGenerator",
18+
"ConfGenerator",
1919
"FileConfGenerator",
2020
"conf_styles",
2121
]

dpgen2/exploration/selector/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@
2121
}
2222

2323
__all__ = [
24+
"BoxLengthFilter",
25+
"BoxSkewnessConfFilter",
2426
"ConfFilter",
2527
"ConfFilters",
2628
"ConfSelector",
2729
"ConfSelectorFrames",
28-
"BoxLengthFilter",
29-
"BoxSkewnessConfFilter",
3030
"DistanceConfFilter",
3131
"conf_filter_styles",
3232
]

dpgen2/exploration/task/__init__.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,23 +43,23 @@
4343
)
4444

4545
__all__ = [
46+
"BaseExplorationTaskGroup",
4647
"CalyTaskGroup",
4748
"ConfSamplingTaskGroup",
4849
"CustomizedLmpTemplateTaskGroup",
4950
"DiffCSPTaskGroup",
51+
"ExplorationStage",
52+
"ExplorationTask",
53+
"ExplorationTaskGroup",
5054
"LmpTemplateTaskGroup",
55+
"NPTTaskGroup",
5156
"caly_normalize",
5257
"caly_task_group_args",
5358
"diffcsp_normalize",
54-
"normalize_lmp_task_group_config",
5559
"lmp_task_group_args",
5660
"make_calypso_task_group_from_config",
5761
"make_diffcsp_task_group_from_config",
5862
"make_lmp_task_group_from_config",
63+
"normalize_lmp_task_group_config",
5964
"variant_task_group",
60-
"NPTTaskGroup",
61-
"ExplorationStage",
62-
"ExplorationTask",
63-
"BaseExplorationTaskGroup",
64-
"ExplorationTaskGroup",
6565
]

dpgen2/exploration/task/calypso/__init__.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,10 @@
44
calypso_run_opt_str_end,
55
make_calypso_input,
66
)
7+
8+
__all__ = [
9+
"calypso_check_opt_str",
10+
"calypso_run_opt_str",
11+
"calypso_run_opt_str_end",
12+
"make_calypso_input",
13+
]
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
from .lmp_input import (
22
make_lmp_input,
33
)
4+
5+
__all__ = [
6+
"make_lmp_input",
7+
]

dpgen2/flow/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
from .dpgen_loop import (
22
ConcurrentLearning,
33
)
4+
5+
__all__ = [
6+
"ConcurrentLearning",
7+
]

dpgen2/op/__init__.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,23 @@
4545
from .select_confs import (
4646
SelectConfs,
4747
)
48+
49+
__all__ = [
50+
"CollRunCaly",
51+
"CollectData",
52+
"DiffCSPGen",
53+
"PrepCalyDPOptim",
54+
"PrepCalyInput",
55+
"PrepCalyModelDevi",
56+
"PrepDPTrain",
57+
"PrepLmp",
58+
"PrepRelax",
59+
"RunCalyDPOptim",
60+
"RunCalyModelDevi",
61+
"RunDPTrain",
62+
"RunLmp",
63+
"RunLmpHDF5",
64+
"RunRelax",
65+
"RunRelaxHDF5",
66+
"SelectConfs",
67+
]

dpgen2/superop/__init__.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,12 @@
1616
from .prep_run_lmp import (
1717
PrepRunLmp,
1818
)
19+
20+
__all__ = [
21+
"ConcurrentLearningBlock",
22+
"PrepRunCaly",
23+
"PrepRunDPTrain",
24+
"PrepRunDiffCSP",
25+
"PrepRunFp",
26+
"PrepRunLmp",
27+
]

dpgen2/utils/__init__.py

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,31 @@
4545
from .step_config import (
4646
step_conf_args,
4747
)
48+
49+
__all__ = [
50+
"BinaryFileInput",
51+
"bohrium_config_from_dict",
52+
"chdir",
53+
"dflow_config",
54+
"dflow_s3_config",
55+
"dump_object_to_file",
56+
"find_slice_ranges",
57+
"gen_doc_step_dict",
58+
"get_artifact_from_uri",
59+
"get_iteration",
60+
"get_last_iteration",
61+
"get_last_scheduler",
62+
"get_subkey",
63+
"init_executor",
64+
"load_object_from_file",
65+
"matched_step_key",
66+
"normalize_step_dict",
67+
"print_keys_in_nice_format",
68+
"run_command",
69+
"set_directory",
70+
"setup_ele_temp",
71+
"sort_slice_ops",
72+
"step_conf_args",
73+
"upload_artifact_and_print_uri",
74+
"workflow_config_from_dict",
75+
]

0 commit comments

Comments
 (0)