orto 1.8.0__tar.gz → 1.8.1__tar.gz
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-1.8.0 → orto-1.8.1}/PKG-INFO +1 -1
- orto-1.8.1/orto/__version__.py +1 -0
- {orto-1.8.0 → orto-1.8.1}/orto/cli.py +38 -0
- {orto-1.8.0 → orto-1.8.1}/orto/data.py +21 -0
- {orto-1.8.0 → orto-1.8.1}/orto.egg-info/PKG-INFO +1 -1
- {orto-1.8.0 → orto-1.8.1}/setup.py +1 -1
- orto-1.8.0/orto/__version__.py +0 -1
- {orto-1.8.0 → orto-1.8.1}/LICENSE +0 -0
- {orto-1.8.0 → orto-1.8.1}/README.md +0 -0
- {orto-1.8.0 → orto-1.8.1}/orto/__init__.py +0 -0
- {orto-1.8.0 → orto-1.8.1}/orto/constants.py +0 -0
- {orto-1.8.0 → orto-1.8.1}/orto/exceptions.py +0 -0
- {orto-1.8.0 → orto-1.8.1}/orto/extractor.py +0 -0
- {orto-1.8.0 → orto-1.8.1}/orto/input.py +0 -0
- {orto-1.8.0 → orto-1.8.1}/orto/job.py +0 -0
- {orto-1.8.0 → orto-1.8.1}/orto/plotter.py +0 -0
- {orto-1.8.0 → orto-1.8.1}/orto/utils.py +0 -0
- {orto-1.8.0 → orto-1.8.1}/orto.egg-info/SOURCES.txt +0 -0
- {orto-1.8.0 → orto-1.8.1}/orto.egg-info/dependency_links.txt +0 -0
- {orto-1.8.0 → orto-1.8.1}/orto.egg-info/entry_points.txt +0 -0
- {orto-1.8.0 → orto-1.8.1}/orto.egg-info/requires.txt +0 -0
- {orto-1.8.0 → orto-1.8.1}/orto.egg-info/top_level.txt +0 -0
- {orto-1.8.0 → orto-1.8.1}/pyproject.toml +0 -0
- {orto-1.8.0 → orto-1.8.1}/setup.cfg +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = '1.8.1'
|
|
@@ -931,6 +931,10 @@ def plot_abs_func(uargs, save_data_only=False):
|
|
|
931
931
|
else:
|
|
932
932
|
x_max = uargs.xlim[1]
|
|
933
933
|
|
|
934
|
+
# Trim transitions to a specific number of states if requested
|
|
935
|
+
if uargs.trim_transitions is not None:
|
|
936
|
+
abs_data.trim_to_n(uargs.trim_transitions)
|
|
937
|
+
|
|
934
938
|
# Generate spectrum
|
|
935
939
|
abs_data.generate_spectrum(
|
|
936
940
|
fwhm=uargs.linewidth,
|
|
@@ -2019,6 +2023,28 @@ def read_args(arg_list=None):
|
|
|
2019
2023
|
)
|
|
2020
2024
|
)
|
|
2021
2025
|
|
|
2026
|
+
gen_abs.add_argument(
|
|
2027
|
+
'--unique_names',
|
|
2028
|
+
action='store_true',
|
|
2029
|
+
default=False,
|
|
2030
|
+
help=(
|
|
2031
|
+
'Attempt to shorten file names in plot legend\n'
|
|
2032
|
+
'Default: %(default)s'
|
|
2033
|
+
)
|
|
2034
|
+
)
|
|
2035
|
+
|
|
2036
|
+
gen_abs.add_argument(
|
|
2037
|
+
'--trim_transitions',
|
|
2038
|
+
'-tt',
|
|
2039
|
+
type=int,
|
|
2040
|
+
default=None,
|
|
2041
|
+
help=(
|
|
2042
|
+
'Trim to first n transitions\n'
|
|
2043
|
+
'where n is an integer\n'
|
|
2044
|
+
'Default: %(default)s'
|
|
2045
|
+
)
|
|
2046
|
+
)
|
|
2047
|
+
|
|
2022
2048
|
plot_subprog = all_subparsers.add_parser(
|
|
2023
2049
|
'plot',
|
|
2024
2050
|
description='Plot data from orca file',
|
|
@@ -2172,6 +2198,18 @@ def read_args(arg_list=None):
|
|
|
2172
2198
|
)
|
|
2173
2199
|
)
|
|
2174
2200
|
|
|
2201
|
+
plot_abs.add_argument(
|
|
2202
|
+
'--trim_transitions',
|
|
2203
|
+
'-tt',
|
|
2204
|
+
type=int,
|
|
2205
|
+
default=None,
|
|
2206
|
+
help=(
|
|
2207
|
+
'Trim to first n transitions\n'
|
|
2208
|
+
'where n is an integer\n'
|
|
2209
|
+
'Default: %(default)s'
|
|
2210
|
+
)
|
|
2211
|
+
)
|
|
2212
|
+
|
|
2175
2213
|
plot_xes = plot_parser.add_parser(
|
|
2176
2214
|
'xes',
|
|
2177
2215
|
description='Plots XES from CI calculation output',
|
|
@@ -181,6 +181,27 @@ class AbsorptionData():
|
|
|
181
181
|
self._spectrum = spectrum
|
|
182
182
|
return
|
|
183
183
|
|
|
184
|
+
def trim_to_n(self, n_transitions: int) -> None:
|
|
185
|
+
'''
|
|
186
|
+
Trims data to given number of transitions
|
|
187
|
+
|
|
188
|
+
Parameters
|
|
189
|
+
----------
|
|
190
|
+
n_transitions: int
|
|
191
|
+
Number of transitions to keep from the start of the data
|
|
192
|
+
|
|
193
|
+
Returns
|
|
194
|
+
-------
|
|
195
|
+
None
|
|
196
|
+
'''
|
|
197
|
+
|
|
198
|
+
self.energies = self.energies[:n_transitions]
|
|
199
|
+
self.osc_strengths = self.osc_strengths[:n_transitions]
|
|
200
|
+
|
|
201
|
+
self.spectrum = None
|
|
202
|
+
|
|
203
|
+
return
|
|
204
|
+
|
|
184
205
|
@classmethod
|
|
185
206
|
def from_extractor(cls, extractor: oe.AbsorptionExtractor,
|
|
186
207
|
remove_zero_osc: float = 1E-4) -> list['AbsorptionData']: # noqa
|
orto-1.8.0/orto/__version__.py
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = '1.8.0'
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|