orto 1.14.0__tar.gz → 1.14.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.14.0 → orto-1.14.1}/PKG-INFO +1 -1
- orto-1.14.1/orto/__version__.py +1 -0
- {orto-1.14.0 → orto-1.14.1}/orto/extractor.py +76 -1
- {orto-1.14.0 → orto-1.14.1}/orto.egg-info/PKG-INFO +1 -1
- {orto-1.14.0 → orto-1.14.1}/setup.py +1 -1
- orto-1.14.0/orto/__version__.py +0 -1
- {orto-1.14.0 → orto-1.14.1}/LICENSE +0 -0
- {orto-1.14.0 → orto-1.14.1}/README.md +0 -0
- {orto-1.14.0 → orto-1.14.1}/orto/__init__.py +0 -0
- {orto-1.14.0 → orto-1.14.1}/orto/cli.py +0 -0
- {orto-1.14.0 → orto-1.14.1}/orto/constants.py +0 -0
- {orto-1.14.0 → orto-1.14.1}/orto/data.py +0 -0
- {orto-1.14.0 → orto-1.14.1}/orto/exceptions.py +0 -0
- {orto-1.14.0 → orto-1.14.1}/orto/input.py +0 -0
- {orto-1.14.0 → orto-1.14.1}/orto/job.py +0 -0
- {orto-1.14.0 → orto-1.14.1}/orto/plotter.py +0 -0
- {orto-1.14.0 → orto-1.14.1}/orto/utils.py +0 -0
- {orto-1.14.0 → orto-1.14.1}/orto.egg-info/SOURCES.txt +0 -0
- {orto-1.14.0 → orto-1.14.1}/orto.egg-info/dependency_links.txt +0 -0
- {orto-1.14.0 → orto-1.14.1}/orto.egg-info/entry_points.txt +0 -0
- {orto-1.14.0 → orto-1.14.1}/orto.egg-info/requires.txt +0 -0
- {orto-1.14.0 → orto-1.14.1}/orto.egg-info/top_level.txt +0 -0
- {orto-1.14.0 → orto-1.14.1}/pyproject.toml +0 -0
- {orto-1.14.0 → orto-1.14.1}/setup.cfg +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = '1.14.1'
|
|
@@ -380,6 +380,81 @@ class ExchangeCouplingExtractor(extto.BetweenExtractor):
|
|
|
380
380
|
return _ext.data
|
|
381
381
|
|
|
382
382
|
|
|
383
|
+
class AILFTOrbMatrixExtractor(extto.BetweenExtractor):
|
|
384
|
+
'''
|
|
385
|
+
Extracts AI-LFT orbital matrix from Orca output file
|
|
386
|
+
'''
|
|
387
|
+
# Regex Start Pattern
|
|
388
|
+
START_PATTERN = rb'(?<=Ligand field one-electron matrix VLFT \(a.u.\) : )' # noqa
|
|
389
|
+
|
|
390
|
+
# Regex End Pattern
|
|
391
|
+
END_PATTERN = rb'(?=-------------------------------------------------)'
|
|
392
|
+
|
|
393
|
+
MODIFIERS = [re.MULTILINE]
|
|
394
|
+
|
|
395
|
+
@property
|
|
396
|
+
def data(self) -> list[NDArray]:
|
|
397
|
+
'''
|
|
398
|
+
AI-LFT matrices, one per block, in atomic units
|
|
399
|
+
'''
|
|
400
|
+
return self._data
|
|
401
|
+
|
|
402
|
+
@staticmethod
|
|
403
|
+
def _process_block(block: str) -> NDArray:
|
|
404
|
+
'''
|
|
405
|
+
Converts single block into data entries described in self.data
|
|
406
|
+
|
|
407
|
+
Parameters
|
|
408
|
+
----------
|
|
409
|
+
block: str
|
|
410
|
+
String block extracted from file
|
|
411
|
+
|
|
412
|
+
Returns
|
|
413
|
+
-------
|
|
414
|
+
ndarray of floats
|
|
415
|
+
Keys described in self.data
|
|
416
|
+
'''
|
|
417
|
+
|
|
418
|
+
# Find number of orbitals from header of matrix
|
|
419
|
+
orb_list = re.findall(
|
|
420
|
+
r'Orbital[\sxyzd2f3\-]+\n',
|
|
421
|
+
block
|
|
422
|
+
)
|
|
423
|
+
n_orbs = len(orb_list[0].split()) - 1
|
|
424
|
+
|
|
425
|
+
rows = re.findall(
|
|
426
|
+
rf'((?:\s+\-?\d\.\d{{6}}){{{n_orbs:d}}})', # noqa
|
|
427
|
+
block
|
|
428
|
+
)
|
|
429
|
+
|
|
430
|
+
matrix = np.array([
|
|
431
|
+
[float(ve) for ve in row.split()]
|
|
432
|
+
for row in rows
|
|
433
|
+
])
|
|
434
|
+
|
|
435
|
+
return matrix
|
|
436
|
+
|
|
437
|
+
@classmethod
|
|
438
|
+
def extract(cls, file_name: str | pathlib.Path) -> list[NDArray]: # noqa
|
|
439
|
+
'''
|
|
440
|
+
Convenience method which instantiates class, extracts blocks, and
|
|
441
|
+
returns processed datasets
|
|
442
|
+
|
|
443
|
+
Parameters
|
|
444
|
+
----------
|
|
445
|
+
file_name: str | pathlib.Path
|
|
446
|
+
File to parse
|
|
447
|
+
|
|
448
|
+
Returns
|
|
449
|
+
-------
|
|
450
|
+
list[ndarray of floats]
|
|
451
|
+
Each entry contains processed data, as defined in cls.data
|
|
452
|
+
'''
|
|
453
|
+
_ext = cls()
|
|
454
|
+
_ext(file_name, process=True)
|
|
455
|
+
return _ext.data
|
|
456
|
+
|
|
457
|
+
|
|
383
458
|
class AILFTOrbEnergyExtractor(extto.BetweenExtractor):
|
|
384
459
|
'''
|
|
385
460
|
Extracts AI-LFT orbital energies from Orca output file
|
|
@@ -2292,7 +2367,7 @@ class StructureInputExtractor(extto.BetweenExtractor):
|
|
|
2292
2367
|
|
|
2293
2368
|
# Get labels and coordinates
|
|
2294
2369
|
all_info = re.findall(
|
|
2295
|
-
r'([A-Za-z]+\s*-?\d
|
|
2370
|
+
r'([A-Za-z]+\s*-?\d*\.\d*\s+-?\d*\.\d*\s+-?\d*\.\d*)',
|
|
2296
2371
|
block
|
|
2297
2372
|
)
|
|
2298
2373
|
|
orto-1.14.0/orto/__version__.py
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = '1.14.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
|
|
File without changes
|