-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathisonav.py
More file actions
executable file
·57 lines (47 loc) · 2.37 KB
/
isonav.py
File metadata and controls
executable file
·57 lines (47 loc) · 2.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#!/usr/bin/python3
# Copyright (C) 2015-2026 Francisco Favela
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
"""Usage:
isonav <number> [-v] (-s|--symbol)
isonav <symbol> [-v] ([-p|--protons])
isonav <symbol> [-v] (--name)
isonav <iso> [-v] [-n|--neutrons] [[-i|--isotopes] [-m --amu]]
isonav <iso> [-v] ([-m|--mass]|--compton) [--amu --liquidDrop]
isonav <iso> [-v] --mirror
isonav <iso> [-v] ([-r | --radius]|[(-l|--levels) [--limit=val]])
isonav <iso> [-v] --Elab=val (--deBroglie | --redDeBroglie)
isonav <iso> [-v] --Elab=val --L4TOF=L
isonav <iso> [-v] --decay [--Ex=val]
isonav <iso> [-v] (--alpha | --nEmission | --pEmission ) [--num=val]
isonav <iso> [-v] --Emission=val [--num=val]
isonav <iso> [-v] (--BE | --BEperNucleon) [--liquidDrop]
isonav <iso1> <iso2> [-v] (--coulomb | --reactions [--latex] )
isonav <iso1> <iso2> [-v] (--gamowEnergy | --T=temp --gamowPeak )
isonav <iso1> <iso2> [-v] --fussion [--Elab=val]
isonav <iso1> <iso2> [-v] --Elab=val --angle=val [[--xTreme|-x] --latex]
isonav <iso1> <iso2> [-v] --scatE=val --angle=val
isonav <isop> <isot> <isoEject> <isoRes> [-v] (-q|--QVal) [--amu]
isonav <isop> <isot> <isoEject> <isoRes> [-v] --Elab=val --maxAng
isonav <isop> <isot> <isoEject> <isoRes> [-v] --Elab=val --angle=val ([--xEje=val] [--xRes=val])
isonav <isop> <isot> <isoEject> <isoRes> [-v] --Elab=val --angle=val [(-x|--xTreme) [--xF1=xFileEject.txt] [--xF2=xFileRes.txt]]
isonav <ion> [-v] --material=matName --Elab=val (--thickness=val [--depositedE] | --range) [--bloch] [--density=dens]
isonav [-v] --listMaterials [--material=matName]
isonav -h | --version
"""
from docopt import docopt
from lib.argumentHandling import argHand
import sys
def main(argv):
args = docopt(__doc__, argv, version='v1.6.6')
argHand(args)
if __name__ == '__main__':
main(sys.argv[1:])