1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23 """The model_free saveframe category (used to be called order_parameters).
24
25 For example, see http://www.bmrb.wisc.edu/dictionary/3.1html_frame/frame_SaveFramePage.html#order_parameters
26 """
27
28
29 from bmrblib.base_classes import BaseSaveframe, TagCategory, TagCategoryFree
30
31
33 """The sample conditions saveframe class."""
34
35
36 sf_label = 'sample_conditions'
37
45
46
48 """Base class for the SampleConditionList tag category."""
49
51 """Setup the SampleConditionList tag category.
52
53 @param sf: The saveframe object.
54 @type sf: saveframe instance
55 """
56
57
58 super(SampleConditionList, self).__init__(sf)
59
60
61 self.add(key='SampleConditionListID', var_name='count_str', format='int')
62 self.add(key='Details', var_name='details', format='str')
63
64
65
67 """Base class for the SampleConditionCitation tag category."""
68
70 """Setup the SampleConditionCitation tag category.
71
72 @param sf: The saveframe object.
73 @type sf: saveframe instance
74 """
75
76
77 super(SampleConditionCitation, self).__init__(sf)
78
79
80 self.add(key='CitationID', var_name='data_ids', format='int')
81 self.add(key='CitationLabel', var_name='citation_label', format='str')
82 self.add(key='SampleConditionListID', var_name='count_str', format='int')
83
84
85
87 """Base class for the SampleConditionVariable tag category."""
88
90 """Setup the SampleConditionVariable tag category.
91
92 @param sf: The saveframe object.
93 @type sf: saveframe instance
94 """
95
96
97 super(SampleConditionVariable, self).__init__(sf)
98
99
100 self.add(key='Type', var_name='type', format='str')
101 self.add(key='Val', var_name='value', format='str')
102 self.add(key='ValErr', var_name='error', format='str')
103 self.add(key='ValUnits', var_name='units', format='str')
104 self.add(key='SampleConditionListID', var_name='count_str', format='int')
105