You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First statement is for removing duplicate heads, transforming ["pbe_mp", "pbe_mp", "r2scan"] to ["pbe_mp", "r2scan"].
if we know that heads starts out as a list, list(set(["pbe_mp"] + heads)) is cleaner in my opinion. But if we care about the order, I'm not sure what set() guarantees. But also, if we care about the order, I think something more explicit is better anyway (e.g. ["pbe_mp"] + list(set(heads) - set(["pbe_mp"])). What exactly are the requirements of the result of this statement?
[edit] Or, maybe cleaner to just do
if "pbe_mp" not in heads:
heads = ["pbe_mp"] + heads
or heads.insert("pbe_mp", 0), if we want to modify the existing object
What is line line supposed to be doing?
mace/mace/cli/run_train.py
Line 184 in fb35950
Why are these keys taken from the user's settings, rather than a default (plain?) property name, or just ignored?
mace/mace/cli/run_train.py
Line 265 in fb35950
The text was updated successfully, but these errors were encountered: