Commit 95119821 authored by Giovanni La Mura's avatar Giovanni La Mura
Browse files

Fix model maker interpolator for INCLUSION

parent 39f9afbe
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -75,7 +75,10 @@ def interpolate_constants(sconf):
    err_arg = ""
    try:
        for i in range(sconf['configurations']):
            for j in range(sconf['nshl'][i]):
            expected_layers = 1 + int(sconf['nshl'][i] / 2)
            if (i == 0 and sconf['application'] == 'INCLUSION'):
                expected_layers += 1
            for j in range(expected_layers):
                file_idx = sconf['dielec_id'][i][j]
                dielec_path = Path(sconf['dielec_path'], sconf['dielec_file'][int(file_idx) - 1])
                err_arg = str(dielec_path)