labimotion 2.3.0 → 2.4.0.rc1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +0 -12
- data/lib/labimotion/apis/element_variation_api.rb +3 -58
- data/lib/labimotion/apis/generic_element_api.rb +22 -0
- data/lib/labimotion/entities/application_entity.rb +1 -5
- data/lib/labimotion/entities/properties_entity.rb +28 -0
- data/lib/labimotion/helpers/param_helpers.rb +1 -0
- data/lib/labimotion/libs/converter.rb +5 -43
- data/lib/labimotion/libs/linked_element.rb +193 -0
- data/lib/labimotion/models/concerns/element_fetchable.rb +2 -3
- data/lib/labimotion/models/element.rb +2 -3
- data/lib/labimotion/utils/prop.rb +0 -1
- data/lib/labimotion/utils/units.rb +32 -67
- data/lib/labimotion/version.rb +1 -1
- data/lib/labimotion.rb +1 -4
- metadata +5 -22
- data/lib/labimotion/libs/element_variation_column_set.rb +0 -426
- data/lib/labimotion/libs/element_variation_header.rb +0 -119
- data/lib/labimotion/libs/export_element_variations.rb +0 -245
- data/lib/labimotion/libs/import_element_variations.rb +0 -411
|
@@ -9,7 +9,7 @@ module Labimotion
|
|
|
9
9
|
"default": "",
|
|
10
10
|
"position": 10,
|
|
11
11
|
"placeholder": "acceleration",
|
|
12
|
-
"units": [{ "key": "mm_s2", "label": "mm/s
|
|
12
|
+
"units": [{ "key": "mm_s2", "label": "mm/s<sup>2</sup>" }]
|
|
13
13
|
},
|
|
14
14
|
{
|
|
15
15
|
"type": "numeric",
|
|
@@ -59,10 +59,10 @@ module Labimotion
|
|
|
59
59
|
"position": 38,
|
|
60
60
|
"placeholder": "areal density",
|
|
61
61
|
"units": [
|
|
62
|
-
{ "key": "kg_m2", "label": "kg m
|
|
63
|
-
{ "key": "t_m2", "label": "t m
|
|
64
|
-
{ "key": "kg_cm2", "label": "kg cm
|
|
65
|
-
{ "key": "g_m2", "label": "g m
|
|
62
|
+
{ "key": "kg_m2", "label": "kg m<sup>-2</sup>", "nm": 1 },
|
|
63
|
+
{ "key": "t_m2", "label": "t m<sup>-2</sup>", "nm": 0.001 },
|
|
64
|
+
{ "key": "kg_cm2", "label": "kg cm<sup>-2</sup>", "nm": 1e-4 },
|
|
65
|
+
{ "key": "g_m2", "label": "g m<sup>-2</sup>", "nm": 1000 }
|
|
66
66
|
]
|
|
67
67
|
},
|
|
68
68
|
{
|
|
@@ -97,7 +97,7 @@ module Labimotion
|
|
|
97
97
|
"position": 60,
|
|
98
98
|
"placeholder": "concentration",
|
|
99
99
|
"units": [
|
|
100
|
-
{ "key": "ng_l", "label": "ng/L", "nm":
|
|
100
|
+
{ "key": "ng_l", "label": "ng/L", "nm": 1000000 },
|
|
101
101
|
{ "key": "mg_l", "label": "mg/L", "nm": 1000 },
|
|
102
102
|
{ "key": "g_l", "label": "g/L", "nm": 1 }
|
|
103
103
|
]
|
|
@@ -171,7 +171,7 @@ module Labimotion
|
|
|
171
171
|
"position": 75,
|
|
172
172
|
"placeholder": "density",
|
|
173
173
|
"units": [
|
|
174
|
-
{ "key": "g_cm3", "label": "g/cm
|
|
174
|
+
{ "key": "g_cm3", "label": "g/cm<sup>3</sup>", "nm": 1 },
|
|
175
175
|
{ "key": "kg_l", "label": "kg/l", "nm": 1 }
|
|
176
176
|
]
|
|
177
177
|
},
|
|
@@ -198,8 +198,7 @@ module Labimotion
|
|
|
198
198
|
{ "key": "d", "label": "d", "nm": 1 },
|
|
199
199
|
{ "key": "h", "label": "h", "nm": 24 },
|
|
200
200
|
{ "key": "min", "label": "m", "nm": 1440 },
|
|
201
|
-
{ "key": "s", "label": "s", "nm": 86400 }
|
|
202
|
-
{ "key": "y", "label": "y", "nm": 0.0027378507871321013 }
|
|
201
|
+
{ "key": "s", "label": "s", "nm": 86400 }
|
|
203
202
|
]
|
|
204
203
|
},
|
|
205
204
|
{
|
|
@@ -281,8 +280,7 @@ module Labimotion
|
|
|
281
280
|
{ "key": "eV", "label": "eV", "nm": 6.241509e21 },
|
|
282
281
|
{ "key": "keV", "label": "keV", "nm": 6.241509e18 },
|
|
283
282
|
{ "key": "j", "label": "J", "nm": 1000 },
|
|
284
|
-
{ "key": "k_j", "label": "kJ", "nm": 1 }
|
|
285
|
-
{ "key": "kWh", "label": "kWh", "nm": 2.7777778e-4 }
|
|
283
|
+
{ "key": "k_j", "label": "kJ", "nm": 1 }
|
|
286
284
|
]
|
|
287
285
|
},
|
|
288
286
|
{
|
|
@@ -359,9 +357,9 @@ module Labimotion
|
|
|
359
357
|
{ "key": "k_min", "label": "K/min", "nm": 1 },
|
|
360
358
|
{ "key": "k_s", "label": "K/s", "nm": 0.016666666666667 },
|
|
361
359
|
{ "key": "k_h", "label": "K/h", "nm": 60 },
|
|
362
|
-
{ "key": "degc_min", "label": "°C min
|
|
363
|
-
{ "key": "degc_s", "label": "°C s
|
|
364
|
-
{ "key": "degc_h", "label": "°C h
|
|
360
|
+
{ "key": "degc_min", "label": "°C min<sup>-1</sup>", "nm": 1 },
|
|
361
|
+
{ "key": "degc_s", "label": "°C s<sup>-1</sup>", "nm": 0.016666666666667 },
|
|
362
|
+
{ "key": "degc_h", "label": "°C h<sup>-1</sup>", "nm": 60 }
|
|
365
363
|
]
|
|
366
364
|
},
|
|
367
365
|
{
|
|
@@ -396,23 +394,7 @@ module Labimotion
|
|
|
396
394
|
"units": [
|
|
397
395
|
{ "key": "g", "label": "g", "nm": 1 },
|
|
398
396
|
{ "key": "mg", "label": "mg", "nm": 1000 },
|
|
399
|
-
{ "key": "ug", "label": "µg", "nm": 1000000 }
|
|
400
|
-
{ "key": "kg", "label": "kg", "nm": 0.001 }
|
|
401
|
-
]
|
|
402
|
-
},
|
|
403
|
-
{
|
|
404
|
-
"type": "numeric",
|
|
405
|
-
"field": "mass_flow",
|
|
406
|
-
"label": "Mass flow",
|
|
407
|
-
"default": "",
|
|
408
|
-
"position": 121,
|
|
409
|
-
"placeholder": "mass flow",
|
|
410
|
-
"units": [
|
|
411
|
-
{ "key": "g_min", "label": "g/min", "nm": 1 },
|
|
412
|
-
{ "key": "kg_h", "label": "kg/h", "nm": 0.06 },
|
|
413
|
-
{ "key": "kg_s", "label": "kg/s", "nm": 0.000016666666666667 },
|
|
414
|
-
{ "key": "g_s", "label": "g/s", "nm": 0.016666666666667 },
|
|
415
|
-
{ "key": "mg_s", "label": "mg/s", "nm": 16.666666666667 }
|
|
397
|
+
{ "key": "ug", "label": "µg", "nm": 1000000 }
|
|
416
398
|
]
|
|
417
399
|
},
|
|
418
400
|
{
|
|
@@ -434,8 +416,8 @@ module Labimotion
|
|
|
434
416
|
"position": 125,
|
|
435
417
|
"placeholder": "mass loading",
|
|
436
418
|
"units": [
|
|
437
|
-
{ "key": "g_cm2", "label": "g cm
|
|
438
|
-
{ "key": "mg_cm2", "label": "mg cm
|
|
419
|
+
{ "key": "g_cm2", "label": "g cm<sup>-2</sup>", "nm": 1 },
|
|
420
|
+
{ "key": "mg_cm2", "label": "mg cm<sup>-2</sup>", "nm": 1000 }
|
|
439
421
|
]
|
|
440
422
|
},
|
|
441
423
|
{
|
|
@@ -458,7 +440,7 @@ module Labimotion
|
|
|
458
440
|
"position": 127,
|
|
459
441
|
"placeholder": "molar conductivity",
|
|
460
442
|
"units": [
|
|
461
|
-
{ "key": "s_cm2_mol", "label": "S cm
|
|
443
|
+
{ "key": "s_cm2_mol", "label": "S cm<sup>2</sup> mol<sup>-1</sup>", "nm": 1 }
|
|
462
444
|
]
|
|
463
445
|
},
|
|
464
446
|
{
|
|
@@ -510,7 +492,6 @@ module Labimotion
|
|
|
510
492
|
{ "key": "atm", "label": "atm", "nm": 1 },
|
|
511
493
|
{ "key": "pa", "label": "Pa", "nm": 101325 },
|
|
512
494
|
{ "key": "kpa", "label": "kPa", "nm": 101.325 },
|
|
513
|
-
{ "key": "mpa", "label": "MPa", "nm": 0.101325 },
|
|
514
495
|
{ "key": "hpa", "label": "hPa", "nm": 1013.25 },
|
|
515
496
|
{ "key": "torr", "label": "Torr", "nm": 760 },
|
|
516
497
|
{ "key": "bar", "label": "bar", "nm": 1.01325 },
|
|
@@ -549,8 +530,8 @@ module Labimotion
|
|
|
549
530
|
"position": 150,
|
|
550
531
|
"placeholder": "Reaction rate",
|
|
551
532
|
"units": [
|
|
552
|
-
{ "key": "mol_lmin", "label": "mol L
|
|
553
|
-
{ "key": "mol_lsec", "label": "mol L
|
|
533
|
+
{ "key": "mol_lmin", "label": "mol L<sup>-1</sup> min<sup>-1</sup>", "nm": 1 },
|
|
534
|
+
{ "key": "mol_lsec", "label": "mol L<sup>-1</sup> s<sup>-1</sup>", "nm": 0.016666666666667 }
|
|
554
535
|
]
|
|
555
536
|
},
|
|
556
537
|
{
|
|
@@ -577,22 +558,6 @@ module Labimotion
|
|
|
577
558
|
{ "key": "v_s", "label": "V/s", "nm": 1 }
|
|
578
559
|
]
|
|
579
560
|
},
|
|
580
|
-
{
|
|
581
|
-
"type": "numeric",
|
|
582
|
-
"field": "space_time_yield",
|
|
583
|
-
"label": "Space-time yield",
|
|
584
|
-
"default": "",
|
|
585
|
-
"position": 156,
|
|
586
|
-
"placeholder": "space-time yield",
|
|
587
|
-
"units": [
|
|
588
|
-
{ "key": "kg_m3_d", "label": "kg/(m³*d)", "nm": 1 },
|
|
589
|
-
{ "key": "kg_m3_h", "label": "kg/(m³*h)", "nm": 0.041666666666667 },
|
|
590
|
-
{ "key": "g_l_h", "label": "g/(L*h)", "nm": 0.041666666666667 },
|
|
591
|
-
{ "key": "mg_ml_h", "label": "mg/(mL*h)", "nm": 0.041666666666667 },
|
|
592
|
-
{ "key": "g_l_min", "label": "g/(L*min)", "nm": 0.00069444444444444 },
|
|
593
|
-
{ "key": "g_m3_s", "label": "g/(m³*s)", "nm": 0.011574074074074 }
|
|
594
|
-
]
|
|
595
|
-
},
|
|
596
561
|
{
|
|
597
562
|
"type": "numeric",
|
|
598
563
|
"field": "specific_current",
|
|
@@ -603,9 +568,9 @@ module Labimotion
|
|
|
603
568
|
"units": [
|
|
604
569
|
{ "key": "ma_g", "label": "mA/g", "nm": 1000, "unit_type": "mass" },
|
|
605
570
|
{ "key": "a_g", "label": "A/g", "nm": 1, "unit_type": "mass" },
|
|
606
|
-
{ "key": "ma_cm2", "label": "mA/cm
|
|
607
|
-
{ "key": "a_cm2", "label": "A/cm
|
|
608
|
-
{ "key": "a_mm2", "label": "A/mm
|
|
571
|
+
{ "key": "ma_cm2", "label": "mA/cm<sup>2</sup>", "nm": 1000, "unit_type": "area" },
|
|
572
|
+
{ "key": "a_cm2", "label": "A/cm<sup>2</sup>", "nm": 1, "unit_type": "area" },
|
|
573
|
+
{ "key": "a_mm2", "label": "A/mm<sup>2</sup>", "nm": 0.01, "unit_type": "area" }
|
|
609
574
|
]
|
|
610
575
|
},
|
|
611
576
|
{
|
|
@@ -628,7 +593,7 @@ module Labimotion
|
|
|
628
593
|
"position": 158,
|
|
629
594
|
"placeholder": "Specific surface area",
|
|
630
595
|
"units": [
|
|
631
|
-
{ "key": "m2_g", "label": "m
|
|
596
|
+
{ "key": "m2_g", "label": "m<sup>2</sup>/g", "nm": 1 }
|
|
632
597
|
]
|
|
633
598
|
},
|
|
634
599
|
{
|
|
@@ -638,7 +603,7 @@ module Labimotion
|
|
|
638
603
|
"default": "",
|
|
639
604
|
"position": 160,
|
|
640
605
|
"placeholder": "Specific Volume",
|
|
641
|
-
"units": [{ "key": "cm3_g", "label": "cm
|
|
606
|
+
"units": [{ "key": "cm3_g", "label": "cm<sup>3</sup>/g", "nm": 1 }]
|
|
642
607
|
},
|
|
643
608
|
{
|
|
644
609
|
"type": "numeric",
|
|
@@ -677,10 +642,10 @@ module Labimotion
|
|
|
677
642
|
"position": 170,
|
|
678
643
|
"placeholder": "surface",
|
|
679
644
|
"units": [
|
|
680
|
-
{ "key": "a_2", "label": "A
|
|
681
|
-
{ "key": "um_2", "label": "µm
|
|
682
|
-
{ "key": "mm_2", "label": "mm
|
|
683
|
-
{ "key": "cm_2", "label": "cm
|
|
645
|
+
{ "key": "a_2", "label": "A<sup>2</sup>", "nm": 1.0e16 },
|
|
646
|
+
{ "key": "um_2", "label": "µm<sup>2</sup>", "nm": 1.0e8 },
|
|
647
|
+
{ "key": "mm_2", "label": "mm<sup>2</sup>", "nm": 100 },
|
|
648
|
+
{ "key": "cm_2", "label": "cm<sup>2</sup>", "nm": 1 }
|
|
684
649
|
]
|
|
685
650
|
},
|
|
686
651
|
{
|
|
@@ -717,8 +682,8 @@ module Labimotion
|
|
|
717
682
|
"position": 186,
|
|
718
683
|
"placeholder": "tensile stress",
|
|
719
684
|
"units": [
|
|
720
|
-
{ "key": "n_cm2", "label": "N cm
|
|
721
|
-
{ "key": "n_mm2", "label": "N mm
|
|
685
|
+
{ "key": "n_cm2", "label": "N cm<sup>-2</sup>", "nm": 1 },
|
|
686
|
+
{ "key": "n_mm2", "label": "N mm<sup>-2</sup>", "nm": 0.01 }
|
|
722
687
|
]
|
|
723
688
|
},
|
|
724
689
|
{
|
|
@@ -728,7 +693,7 @@ module Labimotion
|
|
|
728
693
|
"default": "",
|
|
729
694
|
"position": 190,
|
|
730
695
|
"placeholder": "Turnover number",
|
|
731
|
-
"units": [{ "key": "1_s", "label": "1/s", "nm": 1 }, { "key": "1_m", "label": "1/
|
|
696
|
+
"units": [{ "key": "1_s", "label": "1/s", "nm": 1 }, { "key": "1_m", "label": "1/m", "nm": 60 }]
|
|
732
697
|
},
|
|
733
698
|
{
|
|
734
699
|
"type": "numeric",
|
|
@@ -749,7 +714,7 @@ module Labimotion
|
|
|
749
714
|
"default": "",
|
|
750
715
|
"position": 205,
|
|
751
716
|
"placeholder": "Kinematic Viscosity",
|
|
752
|
-
"units": [{ "key": "m2_s", "label": "m
|
|
717
|
+
"units": [{ "key": "m2_s", "label": "m<sup>2</sup>/s", "nm": 1 }]
|
|
753
718
|
},
|
|
754
719
|
{
|
|
755
720
|
"type": "numeric",
|
|
@@ -802,6 +767,6 @@ module Labimotion
|
|
|
802
767
|
{ "key": "m3", "label": "m³", "nm": 0.000001 }
|
|
803
768
|
]
|
|
804
769
|
}
|
|
805
|
-
|
|
770
|
+
]
|
|
806
771
|
end
|
|
807
772
|
end
|
data/lib/labimotion/version.rb
CHANGED
data/lib/labimotion.rb
CHANGED
|
@@ -89,13 +89,10 @@ module Labimotion
|
|
|
89
89
|
autoload :ExportDataset, 'labimotion/libs/export_dataset'
|
|
90
90
|
autoload :SampleAssociation, 'labimotion/libs/sample_association'
|
|
91
91
|
autoload :PropertiesHandler, 'labimotion/libs/properties_handler'
|
|
92
|
+
autoload :LinkedElement, 'labimotion/libs/linked_element'
|
|
92
93
|
autoload :AttachmentHandler, 'labimotion/libs/attachment_handler'
|
|
93
94
|
autoload :VocabularyHandler, 'labimotion/libs/vocabulary_handler'
|
|
94
95
|
autoload :XlsxExporter, 'labimotion/libs/xlsx_exporter'
|
|
95
|
-
autoload :ElementVariationColumnSet, 'labimotion/libs/element_variation_column_set'
|
|
96
|
-
autoload :ElementVariationHeader, 'labimotion/libs/element_variation_header'
|
|
97
|
-
autoload :ExportElementVariations, 'labimotion/libs/export_element_variations'
|
|
98
|
-
autoload :ImportElementVariations, 'labimotion/libs/import_element_variations'
|
|
99
96
|
|
|
100
97
|
######## Utils
|
|
101
98
|
autoload :Prop, 'labimotion/utils/prop'
|
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: 2.
|
|
4
|
+
version: 2.4.0.rc1
|
|
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: 2026-
|
|
12
|
+
date: 2026-07-03 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: caxlsx
|
|
@@ -45,20 +45,6 @@ dependencies:
|
|
|
45
45
|
- - "<"
|
|
46
46
|
- !ruby/object:Gem::Version
|
|
47
47
|
version: '8.0'
|
|
48
|
-
- !ruby/object:Gem::Dependency
|
|
49
|
-
name: roo
|
|
50
|
-
requirement: !ruby/object:Gem::Requirement
|
|
51
|
-
requirements:
|
|
52
|
-
- - "~>"
|
|
53
|
-
- !ruby/object:Gem::Version
|
|
54
|
-
version: '2.10'
|
|
55
|
-
type: :runtime
|
|
56
|
-
prerelease: false
|
|
57
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
58
|
-
requirements:
|
|
59
|
-
- - "~>"
|
|
60
|
-
- !ruby/object:Gem::Version
|
|
61
|
-
version: '2.10'
|
|
62
48
|
description:
|
|
63
49
|
email:
|
|
64
50
|
- chia-lin.lin@kit.edu
|
|
@@ -130,12 +116,9 @@ files:
|
|
|
130
116
|
- lib/labimotion/libs/data/vocab/Standard.json
|
|
131
117
|
- lib/labimotion/libs/data/vocab/System.json
|
|
132
118
|
- lib/labimotion/libs/dataset_builder.rb
|
|
133
|
-
- lib/labimotion/libs/element_variation_column_set.rb
|
|
134
|
-
- lib/labimotion/libs/element_variation_header.rb
|
|
135
119
|
- lib/labimotion/libs/export_dataset.rb
|
|
136
120
|
- lib/labimotion/libs/export_element.rb
|
|
137
|
-
- lib/labimotion/libs/
|
|
138
|
-
- lib/labimotion/libs/import_element_variations.rb
|
|
121
|
+
- lib/labimotion/libs/linked_element.rb
|
|
139
122
|
- lib/labimotion/libs/nmr_mapper.rb
|
|
140
123
|
- lib/labimotion/libs/properties_handler.rb
|
|
141
124
|
- lib/labimotion/libs/sample_association.rb
|
|
@@ -222,9 +205,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
222
205
|
version: '3.4'
|
|
223
206
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
224
207
|
requirements:
|
|
225
|
-
- - "
|
|
208
|
+
- - ">"
|
|
226
209
|
- !ruby/object:Gem::Version
|
|
227
|
-
version:
|
|
210
|
+
version: 1.3.1
|
|
228
211
|
requirements: []
|
|
229
212
|
rubygems_version: 3.1.6
|
|
230
213
|
signing_key:
|