orto 0.27.1__py3-none-any.whl → 1.0.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 +2 -2
- orto/extractor.py +16 -18
- {orto-0.27.1.dist-info → orto-1.0.0.dist-info}/METADATA +1 -1
- orto-1.0.0.dist-info/RECORD +13 -0
- {orto-0.27.1.dist-info → orto-1.0.0.dist-info}/WHEEL +1 -1
- orto-0.27.1.dist-info/RECORD +0 -13
- {orto-0.27.1.dist-info → orto-1.0.0.dist-info}/entry_points.txt +0 -0
- {orto-0.27.1.dist-info → orto-1.0.0.dist-info}/top_level.txt +0 -0
orto/__version__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = '0.
|
|
1
|
+
__version__ = '1.0.0'
|
orto/cli.py
CHANGED
|
@@ -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
|
|
orto/extractor.py
CHANGED
|
@@ -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)
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
orto/__init__.py,sha256=iSR4TAfpJn1_mwTnnncgwmWBz3q_ImdmhnOORKcOvE0,63
|
|
2
|
+
orto/__version__.py,sha256=RsZjRjMprNcDm97wqRRSk6rTLgTX8N0GyicZyZ8OsBQ,22
|
|
3
|
+
orto/cli.py,sha256=4W6KgUjmdI8wYo3n5Dp74YgH8a4q7-IsxBf7fhWl6P4,59396
|
|
4
|
+
orto/extractor.py,sha256=kJnVI_Zwz7yorbojWdgxN-NSspJIY9pKoDb1RD2dHUg,67488
|
|
5
|
+
orto/input.py,sha256=UMYNPGeqOCNKvPYJVfVS2JU7Ost_xM1ZG28t5f9-Er0,7084
|
|
6
|
+
orto/job.py,sha256=SM0nlc_bqhhPvfuuykhMvaUnkwC3Gp-6RvYw_a0TyGc,5855
|
|
7
|
+
orto/plotter.py,sha256=ICrO03T_HGe-H1XKZ2qzsKYdPY44E0PKiXqIQQawd7I,15633
|
|
8
|
+
orto/utils.py,sha256=gVfGplkfc6xGYgLMi_7I_yAdWG-QKRaqQdy9v5F4Mck,7279
|
|
9
|
+
orto-1.0.0.dist-info/METADATA,sha256=P-6wCgp-dPyw8b8N0d8m4Et-C8MXJGBySV75lL9Y2JQ,1140
|
|
10
|
+
orto-1.0.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
11
|
+
orto-1.0.0.dist-info/entry_points.txt,sha256=HXenCglMp_03JkN34pK2phkjXK9CFcXTGHKv5QaVY8I,39
|
|
12
|
+
orto-1.0.0.dist-info/top_level.txt,sha256=hQ-z28gTN_FZ2B5Kiwxr_9cUTcCoib9W5HjbkceDXw4,5
|
|
13
|
+
orto-1.0.0.dist-info/RECORD,,
|
orto-0.27.1.dist-info/RECORD
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
orto/__init__.py,sha256=iSR4TAfpJn1_mwTnnncgwmWBz3q_ImdmhnOORKcOvE0,63
|
|
2
|
-
orto/__version__.py,sha256=ufudjmEpRocDSQt0zs8NFi9hC8HnWct5ABBMYMx5W3o,23
|
|
3
|
-
orto/cli.py,sha256=5fRCsrpwcQ191XSGW7OrX4Bc-Oqxu0Q2WnwkgMW_I9o,59396
|
|
4
|
-
orto/extractor.py,sha256=OW26HLbfp6BV5dMhLvQeo5Nd9CcdgcE8-6Tdsrq1rk8,67554
|
|
5
|
-
orto/input.py,sha256=UMYNPGeqOCNKvPYJVfVS2JU7Ost_xM1ZG28t5f9-Er0,7084
|
|
6
|
-
orto/job.py,sha256=SM0nlc_bqhhPvfuuykhMvaUnkwC3Gp-6RvYw_a0TyGc,5855
|
|
7
|
-
orto/plotter.py,sha256=ICrO03T_HGe-H1XKZ2qzsKYdPY44E0PKiXqIQQawd7I,15633
|
|
8
|
-
orto/utils.py,sha256=gVfGplkfc6xGYgLMi_7I_yAdWG-QKRaqQdy9v5F4Mck,7279
|
|
9
|
-
orto-0.27.1.dist-info/METADATA,sha256=bB5mOX8phFiqEyUipQykjtqLrk8Yomis7YQtItyDUoA,1141
|
|
10
|
-
orto-0.27.1.dist-info/WHEEL,sha256=zaaOINJESkSfm_4HQVc5ssNzHCPXhJm0kEUakpsEHaU,91
|
|
11
|
-
orto-0.27.1.dist-info/entry_points.txt,sha256=HXenCglMp_03JkN34pK2phkjXK9CFcXTGHKv5QaVY8I,39
|
|
12
|
-
orto-0.27.1.dist-info/top_level.txt,sha256=hQ-z28gTN_FZ2B5Kiwxr_9cUTcCoib9W5HjbkceDXw4,5
|
|
13
|
-
orto-0.27.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|