labimotion 1.3.0.rc2 → 1.3.0.rc4

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,465 @@
1
+ module Labimotion
2
+ ## Converter State
3
+ class Units
4
+ FIELDS = [
5
+ {
6
+ "type": "numeric",
7
+ "field": "acceleration",
8
+ "label": "Acceleration",
9
+ "default": "",
10
+ "position": 10,
11
+ "placeholder": "acceleration",
12
+ "units": [{ "key": "mm_s2", "label": "mm/s<sup>2</sup>" }]
13
+ },
14
+ {
15
+ "type": "numeric",
16
+ "field": "agitation",
17
+ "label": "Agitation",
18
+ "default": "",
19
+ "position": 20,
20
+ "placeholder": "agitation",
21
+ "units": [{ "key": "rpm", "label": "rpm" }]
22
+ },
23
+ {
24
+ "type": "numeric",
25
+ "field": "amount_enzyme",
26
+ "label": "Amount enzyme as μmol/min",
27
+ "default": "",
28
+ "position": 30,
29
+ "placeholder": "amount enzyme as μmol/min",
30
+ "units": [
31
+ { "key": "u", "label": "U", "nm": 1 },
32
+ { "key": "mu", "label": "mU", "nm": 1000 },
33
+ { "key": "kat", "label": "kat", "nm": 1.667e-8 },
34
+ { "key": "mkat", "label": "mkat", "nm": 1.667e-5 },
35
+ { "key": "µkat", "label": "µkat", "nm": 0.01667 },
36
+ { "key": "nkat", "label": "nkat", "nm": 16.67 }
37
+ ]
38
+ },
39
+ {
40
+ "type": "numeric",
41
+ "field": "amount_substance",
42
+ "label": "Amount of substance",
43
+ "default": "",
44
+ "position": 35,
45
+ "placeholder": "amount of substance",
46
+ "units": [
47
+ { "key": "mol", "label": "mol (M)", "nm": 1 },
48
+ { "key": "mmol", "label": "mmol (mM)", "nm": 1000 },
49
+ { "key": "umol", "label": "µmol (µM)", "nm": 1000000 },
50
+ { "key": "nmol", "label": "nmol (nM)", "nm": 1.0e9 },
51
+ { "key": "pmol", "label": "pmol (pM)", "nm": 1.0e12 }
52
+ ]
53
+ },
54
+ {
55
+ "type": "numeric",
56
+ "field": "molarity",
57
+ "label": "Chem. concentration (Molarity)",
58
+ "default": "",
59
+ "position": 40,
60
+ "placeholder": "molarity",
61
+ "units": [
62
+ { "key": "mol_l", "label": "mol/L (M/L)", "nm": 1 },
63
+ { "key": "mmol_l", "label": "mmol/L (mM/L)", "nm": 1000 },
64
+ { "key": "umol_l", "label": "µmol/L (µM/L)", "nm": 1000000 },
65
+ { "key": "nmol_l", "label": "nmol/L (nM/L)", "nm": 1000000000 },
66
+ { "key": "pmol_l", "label": "pmol/L (pM/L)", "nm": 1000000000000 }
67
+ ]
68
+ },
69
+ {
70
+ "type": "numeric",
71
+ "field": "chem_distances",
72
+ "label": "Chem. distances",
73
+ "default": "",
74
+ "position": 50,
75
+ "placeholder": "Chem. distances",
76
+ "units": [{ "key": "angstrom", "label": "Å" }]
77
+ },
78
+ {
79
+ "type": "numeric",
80
+ "field": "concentration",
81
+ "label": "Concentration",
82
+ "default": "",
83
+ "position": 60,
84
+ "placeholder": "concentration",
85
+ "units": [
86
+ { "key": "ng_l", "label": "ng/L", "nm": 1000000 },
87
+ { "key": "mg_l", "label": "mg/L", "nm": 1000 },
88
+ { "key": "g_l", "label": "g/L", "nm": 1 }
89
+ ]
90
+ },
91
+ {
92
+ "type": "numeric",
93
+ "field": "conductivity",
94
+ "label": "Conductivity",
95
+ "default": "",
96
+ "position": 66,
97
+ "placeholder": "conductivity",
98
+ "units": [{ "key": "s_m", "label": "S/m", "nm": 1 }]
99
+ },
100
+ {
101
+ "type": "numeric",
102
+ "field": "current",
103
+ "label": "Current",
104
+ "default": "",
105
+ "position": 60,
106
+ "placeholder": "Current",
107
+ "units": [
108
+ { "key": "A", "label": "A", "nm": 1 },
109
+ { "key": "mA", "label": "mA", "nm": 1000 },
110
+ { "key": "uA", "label": "µA", "nm": 1000000 },
111
+ { "key": "nA", "label": "nA", "nm": 1000000000 }
112
+ ]
113
+ },
114
+ {
115
+ "type": "numeric",
116
+ "field": "degree",
117
+ "label": "Degree",
118
+ "default": "",
119
+ "position": 70,
120
+ "placeholder": "degree",
121
+ "units": [{ "key": "degree", "label": "°" }]
122
+ },
123
+ {
124
+ "type": "numeric",
125
+ "field": "density",
126
+ "label": "Density",
127
+ "default": "",
128
+ "position": 75,
129
+ "placeholder": "density",
130
+ "units": [
131
+ { "key": "g_cm3", "label": "g/cm<sup>3</sup>", "nm": 1 },
132
+ { "key": "kg_l", "label": "kg/l", "nm": 1 }
133
+ ]
134
+ },
135
+ {
136
+ "type": "numeric",
137
+ "field": "duration",
138
+ "label": "Duration",
139
+ "default": "",
140
+ "position": 80,
141
+ "placeholder": "duration",
142
+ "units": [
143
+ { "key": "d", "label": "d", "nm": 1 },
144
+ { "key": "h", "label": "h", "nm": 24 },
145
+ { "key": "min", "label": "m", "nm": 1440 },
146
+ { "key": "s", "label": "s", "nm": 86400 }
147
+ ]
148
+ },
149
+ {
150
+ "type": "numeric",
151
+ "field": "elastic_modulus",
152
+ "label": "Elastic modulus",
153
+ "default": "",
154
+ "position": 84,
155
+ "placeholder": "Elastic modulus",
156
+ "units": [
157
+ { "key": "m_pa", "label": "MPa", "nm": 1 },
158
+ { "key": "k_pa", "label": "kPa", "nm": 1000 },
159
+ { "key": "pa", "label": "Pa", "nm": 1000000 }
160
+ ]
161
+ },
162
+ {
163
+ "type": "numeric",
164
+ "field": "electric_charge_c",
165
+ "label": "Electric Charge in C",
166
+ "default": "",
167
+ "position": 85,
168
+ "placeholder": "Electric Charge in C",
169
+ "units": [{ "key": "ec_c", "label": "C", "nm": 1 }]
170
+ },
171
+ {
172
+ "type": "numeric",
173
+ "field": "electric_field",
174
+ "label": "Electric field",
175
+ "default": "",
176
+ "position": 86,
177
+ "placeholder": "Electric field",
178
+ "units": [{ "key": "v_m", "label": "V/m", "nm": 1 }]
179
+ },
180
+ {
181
+ "type": "numeric",
182
+ "field": "energy",
183
+ "label": "Energy",
184
+ "default": "",
185
+ "position": 88,
186
+ "placeholder": "Joule",
187
+ "units": [
188
+ { "key": "eV", "label": "eV", "nm": 6.241509e21 },
189
+ { "key": "keV", "label": "keV", "nm": 6.241509e18 },
190
+ { "key": "j", "label": "J", "nm": 1000 },
191
+ { "key": "k_j", "label": "kJ", "nm": 1 }
192
+ ]
193
+ },
194
+ {
195
+ "type": "numeric",
196
+ "field": "enzyme_activity",
197
+ "label": "Enzyme activity",
198
+ "default": "",
199
+ "position": 90,
200
+ "placeholder": "Enzyme activity",
201
+ "units": [
202
+ { "key": "u_l", "label": "U/L", "nm": 1 },
203
+ { "key": "u_ml", "label": "U/mL", "nm": 1000 }
204
+ ]
205
+ },
206
+ {
207
+ "type": "numeric",
208
+ "field": "faraday",
209
+ "label": "Faraday",
210
+ "default": "",
211
+ "position": 95,
212
+ "placeholder": "Faraday",
213
+ "units": [
214
+ { "key": "faraday", "label": "C/m", "nm": 1 }
215
+ ]
216
+ },
217
+ {
218
+ "type": "numeric",
219
+ "field": "flow_rate",
220
+ "label": "Flow rate",
221
+ "default": "",
222
+ "position": 100,
223
+ "placeholder": "Flow rate",
224
+ "units": [
225
+ { "key": "ul_min", "label": "µl/min", "nm": 1000000 },
226
+ { "key": "ml_min", "label": "ml/min", "nm": 1000 },
227
+ { "key": "l_m", "label": "l/m", "nm": 1 }
228
+ ]
229
+ },
230
+ {
231
+ "type": "numeric",
232
+ "field": "frequency",
233
+ "label": "Frequency",
234
+ "default": "",
235
+ "position": 100,
236
+ "placeholder": "frequency",
237
+ "units": [
238
+ { "key": "mhz", "label": "MHz", "nm": 1000000 },
239
+ { "key": "hz", "label": "Hz", "nm": 1000 },
240
+ { "key": "khz", "label": "kHz", "nm": 1 }
241
+ ]
242
+ },
243
+ {
244
+ "type": "numeric",
245
+ "field": "heating_rate",
246
+ "label": "Heating rate",
247
+ "default": "",
248
+ "position": 106,
249
+ "placeholder": "heating rate",
250
+ "units": [{ "key": "k_min", "label": "K/min", "nm": 1 }]
251
+ },
252
+ {
253
+ "type": "numeric",
254
+ "field": "length",
255
+ "label": "Length",
256
+ "default": "",
257
+ "position": 110,
258
+ "placeholder": "length",
259
+ "units": [
260
+ { "key": "mm", "label": "mm", "nm": 1000 },
261
+ { "key": "cm", "label": "cm", "nm": 100 },
262
+ { "key": "m", "label": "m", "nm": 1 }
263
+ ]
264
+ },
265
+ {
266
+ "type": "numeric",
267
+ "field": "magnetic_flux_density",
268
+ "label": "Magnetic flux density/inductivity",
269
+ "default": "",
270
+ "position": 120,
271
+ "placeholder": "",
272
+ "units": [{ "key": "T", "label": "T", "nm": 1 }]
273
+ },
274
+ {
275
+ "type": "numeric",
276
+ "field": "mass",
277
+ "label": "Mass",
278
+ "default": "",
279
+ "position": 120,
280
+ "placeholder": "mass",
281
+ "units": [
282
+ { "key": "g", "label": "g", "nm": 1 },
283
+ { "key": "mg", "label": "mg", "nm": 1000 },
284
+ { "key": "ug", "label": "µg", "nm": 1000000 }
285
+ ]
286
+ },
287
+ {
288
+ "type": "numeric",
289
+ "field": "mass_molecule",
290
+ "label": "Mass of molecule",
291
+ "default": "",
292
+ "position": 126,
293
+ "placeholder": "mass of molecule",
294
+ "units": [
295
+ { "key": "dalton", "label": "D", "nm": 1000 },
296
+ { "key": "kilo_dalton", "label": "kD", "nm": 1 }
297
+ ]
298
+ },
299
+ {
300
+ "type": "numeric",
301
+ "field": "molecular_weight",
302
+ "label": "Molecular weight",
303
+ "default": "",
304
+ "position": 130,
305
+ "placeholder": "Molecular weight",
306
+ "units": [{ "key": "g_mol", "label": "g/mol" }]
307
+ },
308
+ {
309
+ "type": "numeric",
310
+ "field": "percentage",
311
+ "label": "Percentage",
312
+ "default": "",
313
+ "position": 136,
314
+ "placeholder": "percentage",
315
+ "units": [{ "key": "p", "label": "%", "nm": 1 }]
316
+ },
317
+ {
318
+ "type": "numeric",
319
+ "field": "pressure",
320
+ "label": "Pressure",
321
+ "default": "",
322
+ "position": 140,
323
+ "placeholder": "pressure",
324
+ "units": [
325
+ { "key": "atm", "label": "atm", "nm": 1 },
326
+ { "key": "pa", "label": "Pa", "nm": 101325 },
327
+ { "key": "torr", "label": "Torr", "nm": 760 }
328
+ ]
329
+ },
330
+ {
331
+ "type": "numeric",
332
+ "field": "reaction_rate",
333
+ "label": "Reaction rate",
334
+ "default": "",
335
+ "position": 150,
336
+ "placeholder": "Reaction rate",
337
+ "units": [
338
+ { "key": "mol_lmin", "label": "mol/Lmin", "nm": 1 },
339
+ { "key": "mol_lsec", "label": "mol/Ls", "nm": 60 }
340
+ ]
341
+ },
342
+ {
343
+ "type": "numeric",
344
+ "field": "specific_volume",
345
+ "label": "Specific Volume",
346
+ "default": "",
347
+ "position": 160,
348
+ "placeholder": "Specific Volume",
349
+ "units": [{ "key": "cm3_g", "label": "cm<sup>3</sup>/g", "nm": 1 }]
350
+ },
351
+ {
352
+ "type": "numeric",
353
+ "field": "speed",
354
+ "label": "Speed",
355
+ "default": "",
356
+ "position": 165,
357
+ "placeholder": "speed",
358
+ "units": [
359
+ { "key": "cm_s", "label": "cm/s", "nm": 1 },
360
+ { "key": "mm_s", "label": "mm/s", "nm": 10 },
361
+ { "key": "um_m", "label": "µm/min", "nm": 600000 },
362
+ { "key": "nm_m", "label": "nm/min", "nm": 60000000 },
363
+ { "key": "cm_h", "label": "cm/h", "nm": 3600 },
364
+ { "key": "mm_h", "label": "mm/h", "nm": 36000 }
365
+ ]
366
+ },
367
+ {
368
+ "type": "numeric",
369
+ "field": "subatomic_length",
370
+ "label": "Subatomic length",
371
+ "default": "",
372
+ "position": 168,
373
+ "placeholder": "Subatomic length",
374
+ "units": [
375
+ { "key": "um", "label": "µm", "nm": 1 },
376
+ { "key": "nm", "label": "nm", "nm": 1000 },
377
+ { "key": "pm", "label": "pm", "nm": 1000000 }
378
+ ]
379
+ },
380
+ {
381
+ "type": "numeric",
382
+ "field": "surface",
383
+ "label": "Surface",
384
+ "default": "",
385
+ "position": 170,
386
+ "placeholder": "surface",
387
+ "units": [
388
+ { "key": "a_2", "label": "A<sup>2</sup>", "nm": 1.0e16 },
389
+ { "key": "um_2", "label": "µm<sup>2</sup>", "nm": 1.0e8 },
390
+ { "key": "mm_2", "label": "mm<sup>2</sup>", "nm": 100 },
391
+ { "key": "cm_2", "label": "cm<sup>2</sup>", "nm": 1 }
392
+ ]
393
+ },
394
+ {
395
+ "type": "numeric",
396
+ "field": "temperature",
397
+ "label": "Temperature",
398
+ "default": "",
399
+ "position": 180,
400
+ "placeholder": "temperature",
401
+ "units": [
402
+ { "key": "C", "label": "°C" },
403
+ { "key": "F", "label": "°F" },
404
+ { "key": "K", "label": "K" }
405
+ ]
406
+ },
407
+ {
408
+ "type": "numeric",
409
+ "field": "turnover_number",
410
+ "label": "Turnover number",
411
+ "default": "",
412
+ "position": 190,
413
+ "placeholder": "Turnover number",
414
+ "units": [{ "key": "1_s", "label": "1/s", "nm": 1 }, { "key": "1_m", "label": "1/m", "nm": 60 }]
415
+ },
416
+ {
417
+ "type": "numeric",
418
+ "field": "viscosity",
419
+ "label": "Dynamic Viscosity",
420
+ "default": "",
421
+ "position": 200,
422
+ "placeholder": "Dynamic Viscosity",
423
+ "units": [
424
+ { "key": "pas", "label": "Pas", "nm": 1 },
425
+ { "key": "mpas", "label": "mPas", "nm": 1000 }
426
+ ]
427
+ },
428
+ {
429
+ "type": "numeric",
430
+ "field": "kinematic_viscosity",
431
+ "label": "Kinematic Viscosity",
432
+ "default": "",
433
+ "position": 205,
434
+ "placeholder": "Kinematic Viscosity",
435
+ "units": [{ "key": "m2_s", "label": "m<sup>2</sup>/s", "nm": 1 }]
436
+ },
437
+ {
438
+ "type": "numeric",
439
+ "field": "voltage",
440
+ "label": "Voltage",
441
+ "default": "",
442
+ "position": 200,
443
+ "placeholder": "voltage",
444
+ "units": [
445
+ { "key": "mv", "label": "mV", "nm": 1000 },
446
+ { "key": "v", "label": "V", "nm": 1 }
447
+ ]
448
+ },
449
+ {
450
+ "type": "numeric",
451
+ "field": "volumes",
452
+ "label": "Volumes",
453
+ "default": "",
454
+ "position": 210,
455
+ "placeholder": "volume",
456
+ "units": [
457
+ { "key": "l", "label": "l", "nm": 1 },
458
+ { "key": "ml", "label": "ml", "nm": 1000 },
459
+ { "key": "ul", "label": "µl", "nm": 1000000 },
460
+ { "key": "nl", "label": "nl", "nm": 1000000000 }
461
+ ]
462
+ }
463
+ ]
464
+ end
465
+ end
@@ -2,6 +2,5 @@
2
2
 
3
3
  ## Labimotion Version
4
4
  module Labimotion
5
- IS_RAILS5 = false
6
- VERSION = '1.3.0.rc2'
5
+ VERSION = '1.3.0.rc4'
7
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: labimotion
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0.rc2
4
+ version: 1.3.0.rc4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chia-Lin Lin
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2024-03-28 00:00:00.000000000 Z
12
+ date: 2024-04-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -66,10 +66,7 @@ files:
66
66
  - lib/labimotion/helpers/segment_helpers.rb
67
67
  - lib/labimotion/libs/converter.rb
68
68
  - lib/labimotion/libs/export_dataset.rb
69
- - lib/labimotion/libs/export_element copy.rb
70
69
  - lib/labimotion/libs/export_element.rb
71
- - lib/labimotion/libs/export_element2.rb
72
- - lib/labimotion/libs/export_element_bak1.rb
73
70
  - lib/labimotion/libs/nmr_mapper.rb
74
71
  - lib/labimotion/libs/properties_handler.rb
75
72
  - lib/labimotion/libs/sample_association.rb
@@ -104,9 +101,10 @@ files:
104
101
  - lib/labimotion/utils/prop.rb
105
102
  - lib/labimotion/utils/search.rb
106
103
  - lib/labimotion/utils/serializer.rb
104
+ - lib/labimotion/utils/units.rb
107
105
  - lib/labimotion/utils/utils.rb
108
106
  - lib/labimotion/version.rb
109
- homepage: https://gitlab.kit.edu/kit/labimotion/labimotion
107
+ homepage: https://github.com/LabIMotion/labimotion
110
108
  licenses:
111
109
  - AGPL-3.0
112
110
  metadata: {}