Commit c56d91b5 authored by Hervé  MENAGER's avatar Hervé MENAGER
Browse files

change labels for pIC50, pEC50 etc. to IC50, EC50

FIX #200
parent 4f763df5
Pipeline #28690 passed with stages
in 13 minutes and 8 seconds
......@@ -937,10 +937,20 @@ class CompoundActivityResultForm(ModelForm):
class CompoundActivityResultBaseInlineNestedFormSet(BaseInlineNestedFormSet):
__compound_names = []
# pIC50, pEC50, etc. activity types are labelled below as IC50, EC50, etc.
# specifically because the user enters them in these forms as the former
# value but they are converted to and stored in the latter.
__activity_types = [
("pIC50", "IC50 (half maximal inhibitory concentration)"),
("pEC50", "EC50 (half maximal effective concentration)"),
("pKd", "Kd (dissociation constant)"),
("pKi", "Ki (inhibition constant)"),
def add_fields(self, form, index):
super().add_fields(form, index)
form.fields["compound_name"].choices = self.__compound_names
form.fields["activity_type"].choices = self.__activity_types
def set_modulation_type(self, modulation_type):
for form in self.forms:
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment