Minor fix
parent
d350dc0bdb
commit
7aebcee7e3
|
|
@ -235,8 +235,6 @@ def lattice(filepath, f=None, s=15, jtol=2, mtol=2, invert=False, debug=None):
|
||||||
plt.plot([v[0], v[2]], [v[1], v[3]])
|
plt.plot([v[0], v[2]], [v[1], v[3]])
|
||||||
for h in h_s:
|
for h in h_s:
|
||||||
plt.plot([h[0], h[2]], [h[1], h[3]])
|
plt.plot([h[0], h[2]], [h[1], h[3]])
|
||||||
plt.show()
|
|
||||||
return None
|
|
||||||
|
|
||||||
columns, rows = zip(*tables_new[k])
|
columns, rows = zip(*tables_new[k])
|
||||||
columns, rows = list(columns), list(rows)
|
columns, rows = list(columns), list(rows)
|
||||||
|
|
@ -273,8 +271,6 @@ def lattice(filepath, f=None, s=15, jtol=2, mtol=2, invert=False, debug=None):
|
||||||
if table.cells[i][j].bottom:
|
if table.cells[i][j].bottom:
|
||||||
plt.plot([table.cells[i][j].lb[0], table.cells[i][j].rb[0]],
|
plt.plot([table.cells[i][j].lb[0], table.cells[i][j].rb[0]],
|
||||||
[table.cells[i][j].lb[1], table.cells[i][j].rb[1]])
|
[table.cells[i][j].lb[1], table.cells[i][j].rb[1]])
|
||||||
plt.show()
|
|
||||||
return None
|
|
||||||
|
|
||||||
# fill text after sorting it
|
# fill text after sorting it
|
||||||
if not rotated:
|
if not rotated:
|
||||||
|
|
@ -309,4 +305,8 @@ def lattice(filepath, f=None, s=15, jtol=2, mtol=2, invert=False, debug=None):
|
||||||
output['table_%d' % num_tables] = data
|
output['table_%d' % num_tables] = data
|
||||||
num_tables += 1
|
num_tables += 1
|
||||||
|
|
||||||
|
if debug in ['line', 'table']:
|
||||||
|
plt.show()
|
||||||
|
return None
|
||||||
|
|
||||||
return output
|
return output
|
||||||
|
|
@ -114,6 +114,7 @@ def stream(filepath, ncolumns=0, columns=None, char_margin=2.0,
|
||||||
return None
|
return None
|
||||||
|
|
||||||
if columns:
|
if columns:
|
||||||
|
columns = columns.split(',')
|
||||||
cols = [(float(columns[i]), float(columns[i + 1]))
|
cols = [(float(columns[i]), float(columns[i + 1]))
|
||||||
for i in range(0, len(columns) - 1)]
|
for i in range(0, len(columns) - 1)]
|
||||||
cols = [(c[0] + c[1]) / 2.0 for c in cols]
|
cols = [(c[0] + c[1]) / 2.0 for c in cols]
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue