orto 0.27.0__tar.gz → 1.0.0__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-0.27.0 → orto-1.0.0}/PKG-INFO +1 -1
- orto-1.0.0/orto/__version__.py +1 -0
- {orto-0.27.0 → orto-1.0.0}/orto/cli.py +3 -3
- {orto-0.27.0 → orto-1.0.0}/orto/extractor.py +18 -20
- {orto-0.27.0 → orto-1.0.0}/orto.egg-info/PKG-INFO +1 -1
- {orto-0.27.0 → orto-1.0.0}/setup.py +1 -1
- orto-0.27.0/orto/__version__.py +0 -1
- {orto-0.27.0 → orto-1.0.0}/README.md +0 -0
- {orto-0.27.0 → orto-1.0.0}/orto/__init__.py +0 -0
- {orto-0.27.0 → orto-1.0.0}/orto/input.py +0 -0
- {orto-0.27.0 → orto-1.0.0}/orto/job.py +0 -0
- {orto-0.27.0 → orto-1.0.0}/orto/plotter.py +0 -0
- {orto-0.27.0 → orto-1.0.0}/orto/utils.py +0 -0
- {orto-0.27.0 → orto-1.0.0}/orto.egg-info/SOURCES.txt +0 -0
- {orto-0.27.0 → orto-1.0.0}/orto.egg-info/dependency_links.txt +0 -0
- {orto-0.27.0 → orto-1.0.0}/orto.egg-info/entry_points.txt +0 -0
- {orto-0.27.0 → orto-1.0.0}/orto.egg-info/requires.txt +0 -0
- {orto-0.27.0 → orto-1.0.0}/orto.egg-info/top_level.txt +0 -0
- {orto-0.27.0 → orto-1.0.0}/pyproject.toml +0 -0
- {orto-0.27.0 → orto-1.0.0}/setup.cfg +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = '1.0.0'
|
|
@@ -912,7 +912,7 @@ def extract_freq_func(uargs, save=True):
|
|
|
912
912
|
data[0]['energy (cm^-1)'][:uargs.num],
|
|
913
913
|
data[0]['IR Intensity (km mol^-1)'][:uargs.num]
|
|
914
914
|
):
|
|
915
|
-
print(f'{frq:.
|
|
915
|
+
print(f'{frq:.5f} {inty:.5f}')
|
|
916
916
|
else:
|
|
917
917
|
# Save to new .csv file
|
|
918
918
|
out_name = f'{uargs.output_file.stem}_frequencies.csv'
|
|
@@ -924,7 +924,7 @@ def extract_freq_func(uargs, save=True):
|
|
|
924
924
|
data[0]['energy (cm^-1)'][:uargs.num],
|
|
925
925
|
data[0]['IR Intensity (km mol^-1)'][:uargs.num]
|
|
926
926
|
):
|
|
927
|
-
f.write(f'{frq:.
|
|
927
|
+
f.write(f'{frq:.5f}, {inty:.5f}\n')
|
|
928
928
|
|
|
929
929
|
ut.cprint(f'Data written to {out_name}', 'cyan')
|
|
930
930
|
|
|
@@ -1379,7 +1379,7 @@ def read_args(arg_list=None):
|
|
|
1379
1379
|
'--output_file',
|
|
1380
1380
|
type=pathlib.Path,
|
|
1381
1381
|
help=(
|
|
1382
|
-
'Name of truncated molden file'
|
|
1382
|
+
'Name of truncated molden file\n'
|
|
1383
1383
|
'If not specified, molden file will be truncated in place'
|
|
1384
1384
|
),
|
|
1385
1385
|
default=None
|
|
@@ -478,7 +478,7 @@ class FrequencyExtractor(extto.BetweenExtractor):
|
|
|
478
478
|
[float(val) for val in freq_pattern.findall(block)]
|
|
479
479
|
)
|
|
480
480
|
|
|
481
|
-
# Check if symmetry is enabled by searching for
|
|
481
|
+
# Check if symmetry is enabled by searching for
|
|
482
482
|
# "Point group" in block
|
|
483
483
|
if re.search(r'Point group', block):
|
|
484
484
|
symmetry = True
|
|
@@ -538,25 +538,23 @@ class FrequencyExtractor(extto.BetweenExtractor):
|
|
|
538
538
|
tz_pattern = re.compile(
|
|
539
539
|
r'\([ -]?\d\.\d{6} *-?\d\.\d{6} *(-?\d\.\d{6})\)'
|
|
540
540
|
)
|
|
541
|
-
|
|
542
|
-
# r'(\d\.\d{6}) *\([ -]?\d\.\d{6} *-?\d\.\d{6} *-?\d\.\d{6}\)'
|
|
543
|
-
# )
|
|
544
|
-
# eps_pat = re.compile(
|
|
545
|
-
# r'\d{,4}: * \d{,4}.\d{2} * (\d.\d{6})'
|
|
546
|
-
# )
|
|
541
|
+
|
|
547
542
|
tx = np.asarray(
|
|
548
|
-
[
|
|
543
|
+
[float(val) for val in tx_pattern.findall(block)]
|
|
549
544
|
)
|
|
550
545
|
ty = np.asarray(
|
|
551
|
-
[
|
|
546
|
+
[float(val) for val in ty_pattern.findall(block)]
|
|
552
547
|
)
|
|
553
548
|
tz = np.asarray(
|
|
554
|
-
[
|
|
549
|
+
[float(val) for val in tz_pattern.findall(block)]
|
|
555
550
|
)
|
|
556
551
|
|
|
557
|
-
#
|
|
558
|
-
|
|
559
|
-
|
|
552
|
+
# t values are missing for first n_zero modes and for imaginary modes
|
|
553
|
+
n_missing = len(wavenumbers) - len(tx)
|
|
554
|
+
z_arr = np.zeros(n_missing)
|
|
555
|
+
tx = np.concatenate((z_arr, tx))
|
|
556
|
+
ty = np.concatenate((z_arr, ty))
|
|
557
|
+
tz = np.concatenate((z_arr, tz))
|
|
560
558
|
|
|
561
559
|
# This is the T2 printed by ORCA
|
|
562
560
|
# (Dipole derivative wrt to MWC)**2 * vibrational overlap**2
|
|
@@ -574,11 +572,10 @@ class FrequencyExtractor(extto.BetweenExtractor):
|
|
|
574
572
|
icm2eh = 100 / sc.physical_constants['hartree-inverse meter relationship'][0] # noqa
|
|
575
573
|
#
|
|
576
574
|
b2 = np.zeros_like(wavenumbers)
|
|
577
|
-
|
|
578
|
-
b2[n_zero:] = 1 / (2 * icm2eh * wavenumbers[n_zero:])
|
|
575
|
+
b2[n_missing:] = 1 / (2 * icm2eh * wavenumbers[n_missing:])
|
|
579
576
|
# divide by sqrt(b2)
|
|
580
577
|
# to give units of e m_e^-1/2
|
|
581
|
-
t[
|
|
578
|
+
t[n_missing:] /= np.sqrt(b2[n_missing:])
|
|
582
579
|
|
|
583
580
|
# Convert to SI
|
|
584
581
|
# First convert electrons to coulombs
|
|
@@ -588,12 +585,13 @@ class FrequencyExtractor(extto.BetweenExtractor):
|
|
|
588
585
|
t *= (sc.m_e)**-0.5
|
|
589
586
|
|
|
590
587
|
# Calculate A_e in units of m mol^-1
|
|
588
|
+
# this is "Intensity" in Orca
|
|
591
589
|
ae = np.ones_like(wavenumbers)
|
|
592
|
-
ae[:
|
|
590
|
+
ae[:n_missing] = 0
|
|
593
591
|
ae *= sc.Avogadro / (12 * sc.epsilon_0 * sc.speed_of_light**2)
|
|
594
|
-
ae[
|
|
592
|
+
ae[n_missing:] *= t[n_missing:] ** 2
|
|
595
593
|
# and convert to km mol^-1
|
|
596
|
-
ae[
|
|
594
|
+
ae[n_missing:] /= 1000
|
|
597
595
|
|
|
598
596
|
# Convert absorbance to linear
|
|
599
597
|
alin = ae / np.log(10)
|
|
@@ -613,7 +611,7 @@ class FrequencyExtractor(extto.BetweenExtractor):
|
|
|
613
611
|
irreps = np.concatenate([
|
|
614
612
|
[
|
|
615
613
|
irrep
|
|
616
|
-
for irrep in iblock.replace('\n','').split()
|
|
614
|
+
for irrep in iblock.replace('\n', '').split()
|
|
617
615
|
]
|
|
618
616
|
for iblock in irrep_blocks
|
|
619
617
|
])
|
orto-0.27.0/orto/__version__.py
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = '0.27.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
|