Skip to content

Commit

Permalink
Move symmetry data file path construction to util/fill.py
Browse files Browse the repository at this point in the history
  • Loading branch information
chazeon committed Jan 2, 2021
1 parent c347e97 commit e2c9b30
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions cij/util/fill.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
import numpy
from sympy.parsing.sympy_parser import parse_expr

from cij.data import get_data_fname


def fill_cij(
elast: pandas.DataFrame,
Expand Down Expand Up @@ -49,8 +51,17 @@ def fill_cij(
a = numpy.array(a)
b = numpy.array(b)


# constraints

# ... try to find constraints file

if not Path(constraints).exists():
constraints = Path("constraints") / constraints
constraints = get_data_fname(str(constraints))

# ... apply constraints

eqns = []

with open(constraints) as fp:
Expand Down

0 comments on commit e2c9b30

Please sign in to comment.