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 This file is part of the U{BMRB library<https://sourceforge.net/projects/bmrblib>}.
26
27 For example, see http://www.bmrb.wisc.edu/dictionary/3.1html_frame/frame_SaveFramePage.html#order_parameters
28 """
29
30
31 from bmrblib.base_classes import BaseSaveframe, TagCategory, TagCategoryFree
32
33
35 """The sample conditions saveframe class."""
36
37
38 sf_label = 'sample_conditions'
39
47
48
50 """Base class for the SampleConditionList tag category."""
51
53 """Setup the SampleConditionList tag category.
54
55 @param sf: The saveframe object.
56 @type sf: saveframe instance
57 """
58
59
60 super(SampleConditionList, self).__init__(sf)
61
62
63 self.add(key='SampleConditionListID', var_name='count_str', format='int')
64 self.add(key='Details', var_name='details', format='str')
65
66
67
69 """Base class for the SampleConditionCitation tag category."""
70
72 """Setup the SampleConditionCitation tag category.
73
74 @param sf: The saveframe object.
75 @type sf: saveframe instance
76 """
77
78
79 super(SampleConditionCitation, self).__init__(sf)
80
81
82 self.add(key='CitationID', var_name='data_ids', format='int')
83 self.add(key='CitationLabel', var_name='citation_label', format='str')
84 self.add(key='SampleConditionListID', var_name='count_str', format='int')
85
86
87
89 """Base class for the SampleConditionVariable tag category."""
90
92 """Setup the SampleConditionVariable tag category.
93
94 @param sf: The saveframe object.
95 @type sf: saveframe instance
96 """
97
98
99 super(SampleConditionVariable, self).__init__(sf)
100
101
102 self.add(key='Type', var_name='type', format='str')
103 self.add(key='Val', var_name='value', format='str')
104 self.add(key='ValErr', var_name='error', format='str')
105 self.add(key='ValUnits', var_name='units', format='str')
106 self.add(key='SampleConditionListID', var_name='count_str', format='int')
107