mirror of https://gitlab.com/pamhyr/pamhyr2
debug read rubar3 results
parent
08c414a66e
commit
861b78b928
|
|
@ -583,27 +583,30 @@ class Rubar3(CommandLineSolver):
|
|||
|
||||
for reach, lm in reachs:
|
||||
# First profile
|
||||
e, s, q, z = read_data_line(f)
|
||||
set_and_compute_limites(reach, 0, z, q, s)
|
||||
h, s, q, z = read_data_line(f)
|
||||
set_and_compute_limites(reach, 0, z+h, q, s)
|
||||
|
||||
# For each profile
|
||||
ind = 1
|
||||
pe, ps, pq, pz = read_data_line(f)
|
||||
ph, ps, pq, pz = read_data_line(f)
|
||||
while ind < lm - 2:
|
||||
e, s, q, z = read_data_line(f)
|
||||
h, s, q, z = read_data_line(f)
|
||||
set_and_compute_limites(
|
||||
reach, ind,
|
||||
(pz + z) / 2,
|
||||
(pq + q) / 2,
|
||||
(ps + s) / 2
|
||||
(ph + pz + ph + h) / 2,
|
||||
(pz + s) / 2,
|
||||
(pq + q) / 2
|
||||
)
|
||||
|
||||
pe, ps, pq, pz = z, s, q, e
|
||||
ph = h
|
||||
ps = s
|
||||
pq = q
|
||||
pz = z
|
||||
ind += 1
|
||||
|
||||
# Last profile
|
||||
e, s, q, z = read_data_line(f)
|
||||
set_and_compute_limites(reach, ind, z, q, s)
|
||||
h, s, q, z = read_data_line(f)
|
||||
set_and_compute_limites(reach, ind, z+h, q, s)
|
||||
|
||||
@timer
|
||||
def results(self, study, repertory, qlog=None, name="0"):
|
||||
|
|
|
|||
Loading…
Reference in New Issue