Closed wangzyphysics closed 6 months ago
dpgen2/exploration/task/__init__.py
2-2: `.caly_task_group.CalyTaskGroup` imported but unused; consider removing, adding to `__all__`, or using a redundant alias --- 5-5: `.conf_sampling_task_group.ConfSamplingTaskGroup` imported but unused; consider removing, adding to `__all__`, or using a redundant alias --- 8-8: `.customized_lmp_template_task_group.CustomizedLmpTemplateTaskGroup` imported but unused; consider removing, adding to `__all__`, or using a redundant alias --- 11-11: `.lmp_template_task_group.LmpTemplateTaskGroup` imported but unused; consider removing, adding to `__all__`, or using a redundant alias --- 14-14: `.make_task_group_from_config.caly_normalize` imported but unused; consider removing, adding to `__all__`, or using a redundant alias --- 15-15: `.make_task_group_from_config.caly_task_group_args` imported but unused; consider removing, adding to `__all__`, or using a redundant alias --- 18-18: `.make_task_group_from_config.lmp_normalize` imported but unused; consider removing, adding to `__all__`, or using a redundant alias --- 21-21: `.make_task_group_from_config.lmp_task_group_args` imported but unused; consider removing, adding to `__all__`, or using a redundant alias --- 22-22: `.make_task_group_from_config.make_calypso_task_group_from_config` imported but unused; consider removing, adding to `__all__`, or using a redundant alias --- 23-23: `.make_task_group_from_config.make_lmp_task_group_from_config` imported but unused; consider removing, adding to `__all__`, or using a redundant alias --- 24-24: `.make_task_group_from_config.variant_task_group` imported but unused; consider removing, adding to `__all__`, or using a redundant alias --- 27-27: `.npt_task_group.NPTTaskGroup` imported but unused; consider removing, adding to `__all__`, or using a redundant alias --- 30-30: `.stage.ExplorationStage` imported but unused; consider removing, adding to `__all__`, or using a redundant alias --- 33-33: `.task.ExplorationTask` imported but unused; consider removing, adding to `__all__`, or using a redundant alias --- 36-36: `.task_group.BaseExplorationTaskGroup` imported but unused; consider removing, adding to `__all__`, or using a redundant alias --- 37-37: `.task_group.ExplorationTaskGroup` imported but unused; consider removing, adding to `__all__`, or using a redundant alias
Attention: Patch coverage is 83.63636%
with 9 lines
in your changes missing coverage. Please review.
Project coverage is 84.40%. Comparing base (
9408071
) to head (9773936
). Report is 31 commits behind head on master.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Please check the following part. it seems that when "calypso:merge" and "calypso:default" are not supported.
please raise an error if no condition is hit.
This func make_task_group_from_config
is not in use any more.
def make_naive_exploration_scheduler(
config,
):
# use npt task group
explore_style = config["explore"]["type"]
if explore_style == "lmp":
return make_lmp_naive_exploration_scheduler(config)
elif "calypso" in explore_style:
return make_calypso_naive_exploration_scheduler(config)
else:
raise KeyError(
f"Unknown key `{explore_style}`, Only support `lmp`, `calypso`, `calypso:merge` and `calypso:default`."
)
Summary by CodeRabbit
New Features
Bug Fixes
explore_style
parameter and mode assignments.Refactor
Tests