-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpython_file.py
More file actions
42 lines (31 loc) · 875 Bytes
/
python_file.py
File metadata and controls
42 lines (31 loc) · 875 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# import numpy as np
# import pandas as pd
from ase import Atoms
from ase.visualize import view
from ase import neb
# ase vasp
# ase view
# from ase.io.vasp_parsers.vasp_outcar_parsers import Cell
# TODO: I should code more.
# Python snippets
# Class snippet for autodocstring
# ASE example
a = 4.05 # Gold lattice constant
b = a / 2
# Hover and all F12 options
au_fcc = Atoms("Au", cell=[(0, b, b), (b, 0, b), (b, b, 0)], pbc=True)
baseneb = neb.BaseNEB()
########## Automatic code formatting with black ##########
# Stolen from yapf-GitHub: https://github.com/google/yapf
# x = { 'a':37,'b':42,
# 'c':926}
# y = 'hello ''word'
# z = 'hello '+'world'
# a = 'hello {}'.format('word')
# class foo ( object ):
# def f (self ):
# return 37*-+2
# def g(self, x,y=42):
# return y
# def f ( a ) :
# return 37+-+a[42-x : y**3]