zairyo 0.0.2 → 0.0.3
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/bin/zairyo +4 -0
- data/lib/zairyo/material_list.rb +43 -1
- data/lib/zairyo/zairyo_version.rb +1 -1
- data/lib/zairyo.rb +23 -2
- metadata +5 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e49380cfe1ba5026e0aeec4409c660437d30f40f44f84064b30e520359247af2
|
|
4
|
+
data.tar.gz: '019a28c565d24fbc98ee324329024e499ad9cc71ae855455a43c2fbdd39bc96c'
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 91eb42c760146442769650ec19c5a6b959534a70a7a83f140b4123dea93808ade5f72ff755f14af2baf207211ef6ed45fecfcd4c3dec1483a138b767672af1ff
|
|
7
|
+
data.tar.gz: 6bd4cac5135441fa3325764cff48ef90218a5b3e5edb07b958fa8c6f6350ca93bd8100477b606e734a66fabc2d2488e30e0ff77038c632c3260190ca8e813df5
|
data/bin/zairyo
ADDED
data/lib/zairyo/material_list.rb
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
# Global Keyword Lists
|
|
1
2
|
$material_list =
|
|
2
3
|
[
|
|
3
4
|
["fundamental field",
|
|
@@ -13,6 +14,47 @@ $material_list =
|
|
|
13
14
|
],
|
|
14
15
|
["force boson"
|
|
15
16
|
]
|
|
17
|
+
],
|
|
18
|
+
|
|
19
|
+
["composite particle"
|
|
20
|
+
],
|
|
21
|
+
|
|
22
|
+
["chemical element"
|
|
23
|
+
],
|
|
24
|
+
|
|
25
|
+
["metallic complex",
|
|
26
|
+
["pure metal"
|
|
27
|
+
],
|
|
28
|
+
["metal oxide"
|
|
29
|
+
],
|
|
30
|
+
["metal alloy"
|
|
31
|
+
]
|
|
32
|
+
],
|
|
33
|
+
|
|
34
|
+
["ceramic complex"
|
|
35
|
+
],
|
|
36
|
+
|
|
37
|
+
["polymeric complex"
|
|
38
|
+
],
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
]
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
$structure_list =
|
|
47
|
+
[
|
|
48
|
+
]
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
$property_list =
|
|
52
|
+
[
|
|
53
|
+
[
|
|
54
|
+
"acoustical",
|
|
55
|
+
[
|
|
56
|
+
"absorption"
|
|
57
|
+
]
|
|
16
58
|
]
|
|
59
|
+
]
|
|
17
60
|
|
|
18
|
-
]
|
data/lib/zairyo.rb
CHANGED
|
@@ -3,14 +3,35 @@ require_relative "zairyo/material_tree"
|
|
|
3
3
|
require_relative "zairyo/material_list"
|
|
4
4
|
require_relative "zairyo/zairyo_version"
|
|
5
5
|
|
|
6
|
+
# The main Zairyo driver
|
|
6
7
|
module Zairyo
|
|
7
8
|
class << self
|
|
9
|
+
|
|
10
|
+
# Configure material classification system
|
|
11
|
+
# Example:
|
|
12
|
+
# >> zr = Zairyo.new(40,"zr")
|
|
13
|
+
# => Material Identification: 40
|
|
14
|
+
#
|
|
15
|
+
# Arguments:
|
|
16
|
+
# m_id: (String)
|
|
17
|
+
# m_name: (String)
|
|
18
|
+
|
|
8
19
|
def new(m_id, m_name)
|
|
9
20
|
@material_id = m_id
|
|
10
21
|
@material_name = m_name
|
|
11
22
|
|
|
12
|
-
puts "
|
|
13
|
-
puts "\nMaterial
|
|
23
|
+
puts "Material Identification: {@material_id}"
|
|
24
|
+
#puts "\nMaterial Identification:\t#{@material_id}"
|
|
25
|
+
#puts "\nMaterial Name:\t#{@material_name}"
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
def display
|
|
29
|
+
puts "Material Identification: {@material_id}"
|
|
30
|
+
#puts "\nMaterial Identification:\t#{@material_id}\nMaterial Name:\t#{@material_name}"
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
def test
|
|
34
|
+
puts "Material Identification: 00000000"
|
|
14
35
|
end
|
|
15
36
|
end
|
|
16
37
|
end
|
metadata
CHANGED
|
@@ -1,23 +1,25 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: zairyo
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- M1TE5H
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-12-
|
|
11
|
+
date: 2021-12-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: |
|
|
14
14
|
Zairyo (材料 | zairyō) provides Natural Language Processing functionality
|
|
15
15
|
for Materials Modelling, Simulation and Informatics.
|
|
16
16
|
email: M1TE5H@hotmail.com
|
|
17
|
-
executables:
|
|
17
|
+
executables:
|
|
18
|
+
- zairyo
|
|
18
19
|
extensions: []
|
|
19
20
|
extra_rdoc_files: []
|
|
20
21
|
files:
|
|
22
|
+
- bin/zairyo
|
|
21
23
|
- lib/zairyo.rb
|
|
22
24
|
- lib/zairyo/material_graph.rb
|
|
23
25
|
- lib/zairyo/material_list.rb
|