Skip to content
Snippets Groups Projects
Commit adfed72f authored by David Verelst's avatar David Verelst
Browse files

prepost.GenerateDLCs: import other math modules from numpy

parent c7e6df55
No related branches found
No related tags found
No related merge requests found
...@@ -11,7 +11,8 @@ from __future__ import absolute_import ...@@ -11,7 +11,8 @@ from __future__ import absolute_import
# arctan and pi are required because they are in the formulas that are # arctan and pi are required because they are in the formulas that are
# evaluated # evaluated
from numpy import floor, arctan, pi from numpy import (floor, arctan, pi, log, log10, sin, cos, tan, e, arcsin,
arccos)
import pandas as pd import pandas as pd
import xlrd import xlrd
from argparse import ArgumentParser from argparse import ArgumentParser
...@@ -244,6 +245,8 @@ class GenerateDLCCases(GeneralDLC): ...@@ -244,6 +245,8 @@ class GenerateDLCCases(GeneralDLC):
if sheet.cell_value(1, i) is not None: if sheet.cell_value(1, i) is not None:
tag = str(sheet.cell_value(1, i)) tag = str(sheet.cell_value(1, i))
if tag is not '': if tag is not '':
# FIXME: only works if [wsp] is defined as variable
# and [seed] tags are present
if sheet.cell_value(0, i) == 'C': if sheet.cell_value(0, i) == 'C':
constants[tag] = sheet.cell_value(2, i) constants[tag] = sheet.cell_value(2, i)
if sheet.cell_value(0, i) == 'V': if sheet.cell_value(0, i) == 'V':
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment