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
returnf"The group {str(groups[0])} is not dimensionless."
19
-
else:
20
-
return"The groups "+", ".join([str(g) forgingroups[0:-1]])+"and"+str(groups[-1])+"are not dimensionless."
21
-
22
14
parsing_feedback_responses= {
23
15
"PARSE_ERROR_WARNING": lambdax: f"`{x}` could not be parsed as a valid mathematical expression. Ensure that correct notation is used, that the expression is unambiguous and that all parentheses are closed.",
24
16
"PER_FOR_DIVISION": "Note that 'per' was interpreted as '/'. This can cause ambiguities. It is recommended to use parentheses to make your entry unambiguous.",
"SUBSTITUTIONS_NOT_WRITTEN_CORRECTLY": "List of substitutions not written correctly.",
28
20
}
29
21
22
+
23
+
deffeedback_not_dimensionless(groups):
24
+
groups=list(groups)
25
+
iflen(groups) ==1:
26
+
returnf"The group {str(groups[0])} is not dimensionless."
27
+
else:
28
+
return"The groups "+", ".join([str(g) forgingroups[0:-1]])+" and "+str(groups[-1])+" are not dimensionless."
29
+
30
30
buckingham_pi_feedback_responses= {
31
31
"VALID_CANDIDATE_SET": "",
32
32
"NOT_DIMENSIONLESS": feedback_not_dimensionless,
33
33
"MORE_GROUPS_THAN_REFERENCE_SET": "Response has more groups than necessary.",
34
-
"CANDIDATE_GROUPS_NOT_INDEPENDENT": lambdar, n: f"Groups in response are not independent. It has {r} independent groups and contains {n} groups.",
35
-
"TOO_FEW_INDEPENDENT_GROUPS": lambdaname, r, n: f"{name} contains too few independent groups. It has {r} independent products and needs at least {n} independent groups.",
34
+
"CANDIDATE_GROUPS_NOT_INDEPENDENT": lambdar, n: f"Groups in response are not independent. It has {r} independent group(s) and contains {n} groups.",
35
+
"TOO_FEW_INDEPENDENT_GROUPS": lambdaname, r, n: f"{name} contains too few independent groups. It has {r} independent group(s) and needs at least {n} independent groups.",
"SUM_WITH_INDEPENDENT_TERMS": lambdas: f"Sum in {s} group contains more independent terms that there are groups in total. Group expressions should ideally be written as a comma-separated list where each item is an entry of the form `q_1**c_1*q_2**c_2*...*q_n**c_n`."
0 commit comments