ucam-department-of-psychiatry / camcops

Cambridge Cognitive and Psychiatric Test Kit (CamCOPS)
Other
12 stars 8 forks source link

EDEQ: Refactor subscale() to use self.mean_fields() #247

Closed martinburchell closed 2 years ago

martinburchell commented 2 years ago

As suggested I've refactored the subscale calculation in the EDEQ task to use self.mean_fields()

I think it's probably better not to expand the options to mean_fields() any further. Instead I've just added a check in the task to see if any fields are None before calling it.