Skip to content

Instantly share code, notes, and snippets.

View evfro's full-sized avatar

Evgeny Frolov evfro

View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
def _reshape(a, size):
return a.reshape(size, order='f')
rx1, rx2, ry1, ry2, ra1, ra2, n, l, m = 40, 40, 40, 40, 100, 100, 8, 8, 8
x = np.ones((rx1, n, rx2))
y = np.ones((ry1, n, ry2))
A = np.ones((ra1, n, l, ra2))
interface_prev = np.ones((rx1, ry1*ra1**2))
class Base(object):
def __init__(self, a):
self._a = a
class Derived(Base):
def __init__(self, a={"a": 3}, b=10):
super().__init__(a)
self._b = b
def update_a(self, a):