Private
Public Access
1
0
This commit is contained in:
2024-11-26 19:40:10 +01:00
parent a8973b80b1
commit 029dddd1db
5 changed files with 42 additions and 9 deletions

View File

@@ -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):