13 filename = OPT[
'clumpInputDir'] + OPT[
'clumpFileName']
14 textfile = open(filename,
"r")
15 content_list = textfile.readlines()
16 pebbles = np.zeros([len(content_list), 4])
17 for i
in range(len(content_list)):
18 content_list[i] = content_list[i].replace(
"\n",
"")
19 word_list = content_list[i].
split(
',')
21 pebbles[i][j] = float(word_list[j])
22 DATA[
'pebbles'] = pebbles
23 if (OPT[
'verbose']):
print(
str(len(pebbles)) +
" pebbles loaded \n")
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Packet print(const Packet &a)
Definition: GenericPacketMath.h:1166
str
Definition: compute_granudrum_aor.py:141
void split(const DoubleVector &in_vector, Vector< DoubleVector * > &out_vector_pt)
Definition: double_vector.cc:1413