orto 1.1.0__py3-none-any.whl → 1.2.0__py3-none-any.whl
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.
- orto/__version__.py +1 -1
- orto/cli.py +38 -1
- {orto-1.1.0.dist-info → orto-1.2.0.dist-info}/METADATA +2 -2
- {orto-1.1.0.dist-info → orto-1.2.0.dist-info}/RECORD +7 -7
- {orto-1.1.0.dist-info → orto-1.2.0.dist-info}/WHEEL +0 -0
- {orto-1.1.0.dist-info → orto-1.2.0.dist-info}/entry_points.txt +0 -0
- {orto-1.1.0.dist-info → orto-1.2.0.dist-info}/top_level.txt +0 -0
orto/__version__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = '1.
|
|
1
|
+
__version__ = '1.2.0'
|
orto/cli.py
CHANGED
|
@@ -857,9 +857,22 @@ def extract_orbs_func(uargs, save=True) -> None:
|
|
|
857
857
|
dtype=int
|
|
858
858
|
)
|
|
859
859
|
])
|
|
860
|
+
elif uargs.num is not None:
|
|
861
|
+
keep = uargs.num
|
|
860
862
|
else:
|
|
861
863
|
keep = range(len(contributions))
|
|
862
864
|
|
|
865
|
+
# Remove orbital indices which do not exist
|
|
866
|
+
keep = [val for val in keep if val < len(contributions)]
|
|
867
|
+
|
|
868
|
+
if not len(keep):
|
|
869
|
+
ut.red_exit(
|
|
870
|
+
(
|
|
871
|
+
r'Selected orbital indices do not exist!'
|
|
872
|
+
f'\nNORBS = {len(contributions):d}'
|
|
873
|
+
)
|
|
874
|
+
)
|
|
875
|
+
|
|
863
876
|
contributions = contributions.loc[:, keep]
|
|
864
877
|
|
|
865
878
|
# Remove contributions from unwanted orbitals
|
|
@@ -2080,13 +2093,37 @@ def read_args(arg_list=None):
|
|
|
2080
2093
|
)
|
|
2081
2094
|
)
|
|
2082
2095
|
|
|
2096
|
+
def gte_zero(x):
|
|
2097
|
+
'''
|
|
2098
|
+
Custom type for argparse to ensure that the input
|
|
2099
|
+
\nis greater than or equal to zero
|
|
2100
|
+
'''
|
|
2101
|
+
value = int(x)
|
|
2102
|
+
if value < 0:
|
|
2103
|
+
raise argparse.ArgumentTypeError(
|
|
2104
|
+
f'{x} is not a valid index (must be >= 0)'
|
|
2105
|
+
)
|
|
2106
|
+
return value
|
|
2107
|
+
|
|
2108
|
+
orb_group.add_argument(
|
|
2109
|
+
'-n',
|
|
2110
|
+
'--num',
|
|
2111
|
+
nargs='+',
|
|
2112
|
+
type=gte_zero,
|
|
2113
|
+
metavar='NUMBER',
|
|
2114
|
+
default=None,
|
|
2115
|
+
help=(
|
|
2116
|
+
'Print specified orbitals using index starting from 0\n'
|
|
2117
|
+
'(same as Orca)\n'
|
|
2118
|
+
)
|
|
2119
|
+
)
|
|
2120
|
+
|
|
2083
2121
|
orb_group.add_argument(
|
|
2084
2122
|
'-hl',
|
|
2085
2123
|
'--homo_lumo',
|
|
2086
2124
|
nargs='?',
|
|
2087
2125
|
type=int,
|
|
2088
2126
|
metavar='NUMBER',
|
|
2089
|
-
const=0,
|
|
2090
2127
|
default=None,
|
|
2091
2128
|
help=(
|
|
2092
2129
|
'Print specified number of orbitals either side of HOMO and LUMO'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: orto
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.2.0
|
|
4
4
|
Summary: A package to make life easier when performing Orca calculations.
|
|
5
5
|
Home-page: https://orto.kragskow.group
|
|
6
6
|
Author: Jon Kragskow
|
|
@@ -15,7 +15,7 @@ Description-Content-Type: text/markdown
|
|
|
15
15
|
Requires-Dist: numpy>=2.1.2
|
|
16
16
|
Requires-Dist: xyz_py>=5.13.1
|
|
17
17
|
Requires-Dist: matplotlib>=3.9.2
|
|
18
|
-
Requires-Dist: extto>=1.0.
|
|
18
|
+
Requires-Dist: extto>=1.0.1
|
|
19
19
|
Requires-Dist: pandas>=2.2.3
|
|
20
20
|
Requires-Dist: subto>=0.1.1
|
|
21
21
|
Requires-Dist: python-docx>=1.1.2
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
orto/__init__.py,sha256=IedlltYr3qYZxChNUdz62qogXA9Pos_MUvXdGXqAa0E,41
|
|
2
|
-
orto/__version__.py,sha256=
|
|
3
|
-
orto/cli.py,sha256=
|
|
2
|
+
orto/__version__.py,sha256=U3f_Jgr3zpgiYG2kLcvcT05TQsVzN9Kktg_f3Q9OZFA,22
|
|
3
|
+
orto/cli.py,sha256=AJEQtMXw4uODLZpTgiBu3jz5l6VDU9kSWc5r3e0Zxss,63122
|
|
4
4
|
orto/constants.py,sha256=2obWYg306Lce4U9Qs4MHg1yZq7SHFkazG-cnkD5svpo,343
|
|
5
5
|
orto/exceptions.py,sha256=D7oNeAEGeJNt5thzt6PaCn5FY6JcbJOWUE1N1LVhhuE,159
|
|
6
6
|
orto/extractor.py,sha256=aeZK130lBIERS4Pj1jvTlxCwVB_AhFLUB16zQrDhcbM,67767
|
|
@@ -8,8 +8,8 @@ orto/input.py,sha256=N8JbySSVEC_qmXZ7ppJsZ7Z1qel6PfalGYRtnX1hJ6U,9900
|
|
|
8
8
|
orto/job.py,sha256=SM0nlc_bqhhPvfuuykhMvaUnkwC3Gp-6RvYw_a0TyGc,5855
|
|
9
9
|
orto/plotter.py,sha256=ICrO03T_HGe-H1XKZ2qzsKYdPY44E0PKiXqIQQawd7I,15633
|
|
10
10
|
orto/utils.py,sha256=gVfGplkfc6xGYgLMi_7I_yAdWG-QKRaqQdy9v5F4Mck,7279
|
|
11
|
-
orto-1.
|
|
12
|
-
orto-1.
|
|
13
|
-
orto-1.
|
|
14
|
-
orto-1.
|
|
15
|
-
orto-1.
|
|
11
|
+
orto-1.2.0.dist-info/METADATA,sha256=rH_vzAEMyJpQc9mJ_3T_q8OeielkInXjdfxrQwIWGdE,1140
|
|
12
|
+
orto-1.2.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
13
|
+
orto-1.2.0.dist-info/entry_points.txt,sha256=HXenCglMp_03JkN34pK2phkjXK9CFcXTGHKv5QaVY8I,39
|
|
14
|
+
orto-1.2.0.dist-info/top_level.txt,sha256=hQ-z28gTN_FZ2B5Kiwxr_9cUTcCoib9W5HjbkceDXw4,5
|
|
15
|
+
orto-1.2.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|