File: __init__.py

package info (click to toggle)
python-ase 3.12.0-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 14,192 kB
  • ctags: 8,112
  • sloc: python: 93,375; sh: 99; makefile: 94
file content (10 lines) | stat: -rw-r--r-- 335 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
def installed():
    import os
    from ase.test import NotAvailable
    dcmd = os.getenv('DFTB_COMMAND')
    dpre = os.getenv('DFTB_PREFIX')
    if dcmd == None:
        raise NotAvailable('DFTB_COMMAND not defined')
    if dpre == None:
        raise NotAvailable('DFTB_PREFIX not defined (for slater koster files)')
    return True