预处理增加并行计算

This commit is contained in:
2025-12-14 15:53:11 +08:00
parent 1fee324c90
commit f27fd3e3ce
2 changed files with 123 additions and 56 deletions

12
main.py
View File

@@ -47,6 +47,18 @@ def get_user_input(env: dict):
break
print(f"❌ 路径不存在: {db_path}")
# 检测当前Conda环境路径
conda_env_path = env.get('conda_prefix', '')
if not conda_env_path:
conda_env_path = os.path.expanduser("~/anaconda3/envs/screen")
print(f"\n检测到Conda环境: {conda_env_path}")
custom_env = input(f"使用此环境? [Y/n] 或输入其他路径: ").strip()
if custom_env.lower() == 'n':
conda_env_path = input("请输入Conda环境完整路径: ").strip()
elif custom_env and custom_env.lower() != 'y':
conda_env_path = custom_env
# 目标阳离子
cation = input("🎯 请输入目标阳离子 [默认: Li]: ").strip() or "Li"