X-Git-Url: http://mmka.chem.univ.gda.pl/gitweb/?a=blobdiff_plain;f=django_simple%2Ftodo%2Fforms.py;h=7ca4ce381dc7a05fd86d5b0c58e7fe8667bc4dae;hb=8421252fcfe79dc7771823b337d7a38903af54a6;hp=d8ea95dacb0302dee5f67bae1e4832b9ef6024bd;hpb=591ac48194b207c02ffd7cda59c1c9709a114498;p=django_unres.git diff --git a/django_simple/todo/forms.py b/django_simple/todo/forms.py index d8ea95d..7ca4ce3 100644 --- a/django_simple/todo/forms.py +++ b/django_simple/todo/forms.py @@ -3,6 +3,7 @@ from .models import Task from .models import MIN_CHOICE from .models import MD_START from .models import MD_LANG +from .models import FF_CHOICE import json class MultiWidgetBasic(forms.MultiWidget): @@ -49,6 +50,8 @@ class TaskForm_min(forms.Form): class TaskForm_min_a(forms.Form): name = forms.CharField(max_length=20) + unres_ff = forms.ChoiceField(choices=FF_CHOICE,widget=forms.RadioSelect, + label='Force Field',initial='E0LL2Y') min_choice = forms.ChoiceField(choices=MIN_CHOICE,label='minimization algorithm') min_overlap = forms.BooleanField(required=False,label='remove overlap') min_searchsc = forms.BooleanField(required=False,label='MC for sidechain overlap') @@ -62,6 +65,12 @@ class TaskForm_min_a(forms.Form): min_unres_pdb = forms.BooleanField(required=False,label='uploaded input unres PDB', help_text='(CA and CB atoms only, CB represents SC in UNRES)') min_pdbout = forms.BooleanField(required=False,label='output PDB',initial='true') + boxx = forms.FloatField(label='Box X',initial=1000.0, + help_text='box x dimension') + boxy = forms.FloatField(label='Box Y',initial=1000.0, + help_text='box y dimension') + boxz = forms.FloatField(label='Box Z',initial=1000.0, + help_text='box z dimension') class TaskForm_md(forms.Form): @@ -109,6 +118,8 @@ class TaskForm_md(forms.Form): class TaskForm_md_a(forms.Form): name = forms.CharField(max_length=20) + unres_ff = forms.ChoiceField(choices=FF_CHOICE,widget=forms.RadioSelect, + label='Force Field',initial='E0LL2Y') md_start = forms.ChoiceField(choices=MD_START,widget=forms.RadioSelect, label='starting structure',initial='extconf') md_seq = forms.CharField(label='Sequence', @@ -139,6 +150,13 @@ class TaskForm_md_a(forms.Form): help_text='scaling of the friction coefficients (Langevin)') md_mdpdb = forms.BooleanField(required=False,label='trajectory as PDB') + boxx = forms.FloatField(label='Box X',initial=1000.0, + help_text='box x dimension') + boxy = forms.FloatField(label='Box Y',initial=1000.0, + help_text='box y dimension') + boxz = forms.FloatField(label='Box Z',initial=1000.0, + help_text='box z dimension') + def clean(self): cleaned_data = super(TaskForm_md_a, self).clean() @@ -203,6 +221,8 @@ class TaskForm_remd(forms.Form): class TaskForm_remd_a(forms.Form): name = forms.CharField(max_length=20) + unres_ff = forms.ChoiceField(choices=FF_CHOICE,widget=forms.RadioSelect, + label='Force Field',initial='E0LL2Y') md_start = forms.ChoiceField(choices=MD_START,widget=forms.RadioSelect, label='starting structure',initial='extconf') md_seq = forms.CharField(label='Sequence', @@ -230,11 +250,21 @@ class TaskForm_remd_a(forms.Form): help_text='number of replicas') remd_nstex = forms.IntegerField(label='NSTEX',initial=1000, help_text='exchange and write trajectory every nstex steps') + md_ntwx = forms.IntegerField(label='NTWX',initial=1000, + help_text='write trajectory every ntwx steps') remd_cluter_temp = forms.FloatField(label='TEMPER', help_text='temperature for cluster analysis',initial=280) # remd_traj1file = forms.BooleanField(required=False,label='single trajectory file',initial='true') # remd_rest1file = forms.BooleanField(required=False,label='single restart file',initial='true') + boxx = forms.FloatField(label='Box X',initial=1000.0, + help_text='box x dimension') + boxy = forms.FloatField(label='Box Y',initial=1000.0, + help_text='box y dimension') + boxz = forms.FloatField(label='Box Z',initial=1000.0, + help_text='box z dimension') + + def clean(self): cleaned_data = super(TaskForm_remd_a, self).clean()