tested
This commit is contained in:
@@ -1478,15 +1478,18 @@ class FusionMetricChoiceForm(ModelForm):
|
||||
value in self.fields['columns'].choices}
|
||||
|
||||
for label in labeldict:
|
||||
if df.loc[:, label].std() == 0:
|
||||
try:
|
||||
formaxlabels2.pop(label)
|
||||
except KeyError: # pragma: no cover
|
||||
pass
|
||||
try:
|
||||
if df.loc[:, label].std() == 0:
|
||||
try:
|
||||
formaxlabels2.pop(label)
|
||||
except KeyError: # pragma: no cover
|
||||
pass
|
||||
except KeyError: # pragma: no cover
|
||||
formaxlabels2.pop(label)
|
||||
|
||||
metricchoices = list(
|
||||
sorted(formaxlabels2.items(), key=lambda x: x[1]))
|
||||
self.fields['columns'].choices = metricchoices
|
||||
metricchoices = list(
|
||||
sorted(formaxlabels2.items(), key=lambda x: x[1]))
|
||||
self.fields['columns'].choices = metricchoices
|
||||
|
||||
|
||||
class PlannedSessionSelectForm(forms.Form):
|
||||
|
||||
Reference in New Issue
Block a user