mirror of
https://github.com/NicolasBohn/NexQuant.git
synced 2026-07-28 07:57:44 +00:00
chore: refine env command (#1193)
This commit is contained in:
@@ -114,10 +114,10 @@ def all_summarize_win():
|
||||
if not summary:
|
||||
return
|
||||
|
||||
valid_rate = float(base_df["Valid Improve"].mean())
|
||||
test_rate = float(base_df["Test Improve"].mean())
|
||||
submit_merge_rate = float(base_df["Submit Merge"].mean())
|
||||
merge_sota_avg = float(base_df["Merge Sota"].mean())
|
||||
valid_rate = float(base_df.get("Valid Improve", pd.Series()).mean())
|
||||
test_rate = float(base_df.get("Test Improve", pd.Series()).mean())
|
||||
submit_merge_rate = float(base_df.get("Submit Merge", pd.Series()).mean())
|
||||
merge_sota_avg = float(base_df.get("Merge Sota", pd.Series()).mean())
|
||||
base_df = percent_df(base_df)
|
||||
base_df.insert(0, "Select", True)
|
||||
bt1, bt2 = st.columns(2)
|
||||
|
||||
@@ -293,13 +293,13 @@ class Env(Generic[ASpecificEnvConf]):
|
||||
return p.parts[0]
|
||||
return None
|
||||
|
||||
chmod_cmd = f"chmod -R 777 $(find {workspace_path} -mindepth 1 -maxdepth 1"
|
||||
find_cmd = f"find {workspace_path} -mindepth 1 -maxdepth 1"
|
||||
for name in [
|
||||
_get_path_stem(T("scenarios.data_science.share:scen.cache_path").r()),
|
||||
_get_path_stem(T("scenarios.data_science.share:scen.input_path").r()),
|
||||
]:
|
||||
chmod_cmd += f" ! -name {name}"
|
||||
chmod_cmd += ")"
|
||||
find_cmd += f" ! -name {name}"
|
||||
chmod_cmd = f"{find_cmd} -exec chmod -R 777 {{}} +"
|
||||
return chmod_cmd
|
||||
|
||||
if self.conf.running_timeout_period is None:
|
||||
|
||||
Reference in New Issue
Block a user