orto 1.11.0__tar.gz → 1.11.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.11.0 → orto-1.11.1}/PKG-INFO +1 -1
- orto-1.11.1/orto/__version__.py +1 -0
- {orto-1.11.0 → orto-1.11.1}/orto/cli.py +13 -2
- {orto-1.11.0 → orto-1.11.1}/orto/data.py +3 -2
- {orto-1.11.0 → orto-1.11.1}/orto.egg-info/PKG-INFO +1 -1
- {orto-1.11.0 → orto-1.11.1}/setup.py +1 -1
- orto-1.11.0/orto/__version__.py +0 -1
- {orto-1.11.0 → orto-1.11.1}/LICENSE +0 -0
- {orto-1.11.0 → orto-1.11.1}/README.md +0 -0
- {orto-1.11.0 → orto-1.11.1}/orto/__init__.py +0 -0
- {orto-1.11.0 → orto-1.11.1}/orto/constants.py +0 -0
- {orto-1.11.0 → orto-1.11.1}/orto/exceptions.py +0 -0
- {orto-1.11.0 → orto-1.11.1}/orto/extractor.py +0 -0
- {orto-1.11.0 → orto-1.11.1}/orto/input.py +0 -0
- {orto-1.11.0 → orto-1.11.1}/orto/job.py +0 -0
- {orto-1.11.0 → orto-1.11.1}/orto/plotter.py +0 -0
- {orto-1.11.0 → orto-1.11.1}/orto/utils.py +0 -0
- {orto-1.11.0 → orto-1.11.1}/orto.egg-info/SOURCES.txt +0 -0
- {orto-1.11.0 → orto-1.11.1}/orto.egg-info/dependency_links.txt +0 -0
- {orto-1.11.0 → orto-1.11.1}/orto.egg-info/entry_points.txt +0 -0
- {orto-1.11.0 → orto-1.11.1}/orto.egg-info/requires.txt +0 -0
- {orto-1.11.0 → orto-1.11.1}/orto.egg-info/top_level.txt +0 -0
- {orto-1.11.0 → orto-1.11.1}/pyproject.toml +0 -0
- {orto-1.11.0 → orto-1.11.1}/setup.cfg +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = '1.11.1'
|
|
@@ -1040,6 +1040,7 @@ def plot_xas_func(uargs):
|
|
|
1040
1040
|
|
|
1041
1041
|
# Remove transitions with zero oscillator strength from
|
|
1042
1042
|
# beginning and end of spectrum
|
|
1043
|
+
print(data['fosc'], x_values)
|
|
1043
1044
|
if not uargs.no_trim:
|
|
1044
1045
|
# Find first non-zero oscillator strength
|
|
1045
1046
|
first_nonzero = np.where(data['fosc'] > 1E-6)[0][0]
|
|
@@ -2417,7 +2418,7 @@ def read_args(arg_list=None):
|
|
|
2417
2418
|
|
|
2418
2419
|
gen_abs.add_argument(
|
|
2419
2420
|
'--zero_osc',
|
|
2420
|
-
default=1E-
|
|
2421
|
+
default=1E-7,
|
|
2421
2422
|
type=float,
|
|
2422
2423
|
help=(
|
|
2423
2424
|
'Oscillator strengths below this value are treated as zero\n'
|
|
@@ -2582,7 +2583,7 @@ def read_args(arg_list=None):
|
|
|
2582
2583
|
|
|
2583
2584
|
plot_abs.add_argument(
|
|
2584
2585
|
'--zero_osc',
|
|
2585
|
-
default=1E-
|
|
2586
|
+
default=1E-7,
|
|
2586
2587
|
type=float,
|
|
2587
2588
|
help=(
|
|
2588
2589
|
'Oscillator strengths below this value are treated as zero\n'
|
|
@@ -2612,6 +2613,16 @@ def read_args(arg_list=None):
|
|
|
2612
2613
|
)
|
|
2613
2614
|
)
|
|
2614
2615
|
|
|
2616
|
+
plot_abs.add_argument(
|
|
2617
|
+
'--no_trim',
|
|
2618
|
+
action='store_true',
|
|
2619
|
+
default=False,
|
|
2620
|
+
help=(
|
|
2621
|
+
'Do not trim spectrum to non-zero oscillator strength\n'
|
|
2622
|
+
'Default: %(default)s'
|
|
2623
|
+
)
|
|
2624
|
+
)
|
|
2625
|
+
|
|
2615
2626
|
plot_xes = plot_parser.add_parser(
|
|
2616
2627
|
'xes',
|
|
2617
2628
|
description='Plots XES from CI calculation output',
|
|
@@ -236,7 +236,7 @@ class AbsorptionData():
|
|
|
236
236
|
def from_extractor_dataset(cls,
|
|
237
237
|
dataset: dict[str, list[int | float]],
|
|
238
238
|
operator: str,
|
|
239
|
-
remove_zero_osc: float = 1E-
|
|
239
|
+
remove_zero_osc: float = 1E-7) -> 'AbsorptionData': # noqa
|
|
240
240
|
'''
|
|
241
241
|
Creates AbsorptionData object from data extractor
|
|
242
242
|
|
|
@@ -246,7 +246,7 @@ class AbsorptionData():
|
|
|
246
246
|
Dataset from orto AbsorptionExtractor.data
|
|
247
247
|
operator: str
|
|
248
248
|
Type of operator used to calculate transitions
|
|
249
|
-
remove_zero_osc: float, default=1E-
|
|
249
|
+
remove_zero_osc: float, default=1E-7
|
|
250
250
|
Remove transitions with oscillator strength below this value
|
|
251
251
|
|
|
252
252
|
Returns
|
|
@@ -261,6 +261,7 @@ class AbsorptionData():
|
|
|
261
261
|
# Remove transitions with zero oscillator strength from
|
|
262
262
|
# beginning and end of spectrum
|
|
263
263
|
osc_strengths = np.array(osc_strengths)
|
|
264
|
+
|
|
264
265
|
# Find first non-zero oscillator strength
|
|
265
266
|
try:
|
|
266
267
|
first_nonzero = np.where(osc_strengths > remove_zero_osc)[0][0]
|
orto-1.11.0/orto/__version__.py
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = '1.11.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
|