Skip to content

Commit

Permalink
Improve path handling
Browse files Browse the repository at this point in the history
  • Loading branch information
felixhekhorn committed Aug 19, 2021
1 parent 7060b29 commit 3801361
Show file tree
Hide file tree
Showing 6 changed files with 25,523 additions and 9,207 deletions.
2 changes: 1 addition & 1 deletion LeProHQpy/performance/integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@


def fake_int(xi):
return integrate.quad(lambda z: LeProHQ.cg1("F2", "VV", xi, z), 0, 10)
return integrate.quad(lambda z: LeProHQ.cq1("F2", "VV", xi, z), 0, 10)


[fake_int(xi) for xi in np.linspace(1, 10, 25)]
Binary file modified LeProHQpy/performance/myscript.prof
Binary file not shown.
20,179 changes: 10,977 additions & 9,202 deletions LeProHQpy/performance/output.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added LeProHQpy/performance/pre-str.prof
Binary file not shown.
14,543 changes: 14,543 additions & 0 deletions LeProHQpy/performance/pre-str.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 2 additions & 4 deletions LeProHQpy/src/LeProHQ/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,14 +186,12 @@ def raw_c(proj, cc, xi, eta, path, cf, ct, high):
return 0.0
if path is None:
path = datadir
elif isinstance(path, str):
path = pathlib.Path(path)
# load grids
grid_tp, a_int = load_1d_interpolation(
path / f"{cf}" / f"{cf}-{proj}_{cc}-thres-coeff.dat"
str(path) + f"/{cf}/{cf}-{proj}_{cc}-thres-coeff.dat"
)
grid_bulk, bulk_int = load_2d_interpolation(
path / f"{cf}" / f"{cf}-{proj}_{cc}-bulk.dat"
str(path) + f"/{cf}/{cf}-{proj}_{cc}-bulk.dat"
)
low = grid_bulk[1, 0]
lneta = np.log(eta)
Expand Down

0 comments on commit 3801361

Please sign in to comment.