File tree Expand file tree Collapse file tree 2 files changed +82
-18
lines changed
Expand file tree Collapse file tree 2 files changed +82
-18
lines changed Original file line number Diff line number Diff line change 1717 "metadata" : {},
1818 "outputs" : [],
1919 "source" : [
20- " met = JSON3.read(\" src/data/METADATA.json\" )\n " ,
21- " imp = met[\" sto-3g\" ][\" versions\" ][\" 1\" ][\" file_relpath\" ]\n " ,
22- " imp2=JSON3.read(\" src/data/\" *imp)\n " ,
23- " imp2[\" elements\" ][\" 1\" ]\n " ,
24- " imp3=JSON3.read(\" src/data/\" *imp2[\" elements\" ][\" 1\" ])\n " ,
25- " imp4=imp3[\" elements\" ][\" 1\" ][\" components\" ]\n " ,
20+ " met = JSON3.read(\" src/data/METADATA.json\" )"
21+ ]
22+ },
23+ {
24+ "cell_type" : " code" ,
25+ "execution_count" : null ,
26+ "id" : " 6908e8c2" ,
27+ "metadata" : {},
28+ "outputs" : [],
29+ "source" : [
30+ " imp = met[\" sto-3g\" ][\" versions\" ][\" 1\" ][\" file_relpath\" ]"
31+ ]
32+ },
33+ {
34+ "cell_type" : " code" ,
35+ "execution_count" : null ,
36+ "id" : " f696126d" ,
37+ "metadata" : {},
38+ "outputs" : [],
39+ "source" : [
40+ " imp2=JSON3.read(\" src/data/\" *imp)"
41+ ]
42+ },
43+ {
44+ "cell_type" : " code" ,
45+ "execution_count" : null ,
46+ "id" : " f5c0c802" ,
47+ "metadata" : {},
48+ "outputs" : [],
49+ "source" : [
50+ " imp2[\" elements\" ][\" 1\" ]"
51+ ]
52+ },
53+ {
54+ "cell_type" : " code" ,
55+ "execution_count" : null ,
56+ "id" : " e9f0107b" ,
57+ "metadata" : {},
58+ "outputs" : [],
59+ "source" : [
60+ " imp3=JSON3.read(\" src/data/\" *imp2[\" elements\" ][\" 1\" ])"
61+ ]
62+ },
63+ {
64+ "cell_type" : " code" ,
65+ "execution_count" : null ,
66+ "id" : " 8781e3db" ,
67+ "metadata" : {},
68+ "outputs" : [],
69+ "source" : [
70+ " imp4=imp3[\" elements\" ][\" 1\" ][\" components\" ]"
71+ ]
72+ },
73+ {
74+ "cell_type" : " code" ,
75+ "execution_count" : null ,
76+ "id" : " 0693393e" ,
77+ "metadata" : {},
78+ "outputs" : [],
79+ "source" : [
2680 " imp5=JSON3.read(\" src/data/\" *imp4[1])"
2781 ]
2882 }
Original file line number Diff line number Diff line change 11module BasisSets
2- using HTTP
3- using JSON3
4- using LinearAlgebra
5- using StaticArrays
2+ using
3+ HTTP,
4+ JSON3,
5+ LinearAlgebra,
6+ StaticArrays
67
78 include (" periodictable.jl" )
89 include (" molecule.jl" )
910 include (" parser.jl" )
1011 include (" getdata.jl" )
1112
12- export Atom
13- export getatom
14- export Molecule
15- export molecule
16- export getatoms
17- export doublefactorial
18- export normalization
19- export parsebasis
13+ export
14+ Atom,
15+ getatom,
16+ Molecule,
17+ molecule,
18+ getatoms,
19+ doublefactorial,
20+ normalization,
21+ parsebasis
22+
23+ const _METADATA = let
24+ path = joinpath (@__DIR__ , " data" , " METADATA.json" ) # __DIR__ == src/
25+ JSON3. read (path)
26+ end
27+
28+ metadata () = _METADATA
29+
2030end
You can’t perform that action at this time.
0 commit comments