Skip to content

Commit

Permalink
updated hfe_accurate.py
Browse files Browse the repository at this point in the history
  • Loading branch information
simoneponcioni committed Sep 2, 2024
1 parent 7c7fa21 commit 1cfc4fd
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions 02_CODE/src/hfe_accurate/hfe_accurate.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,31 +36,31 @@

# flake8: noqa: E402, W503

'''
# TODO: reactivate this for mesh sensitivity analysis
# n_sim = int(15) # has to match sweep in config
# min = 5, 5, 2, 7
# max = 20, 50, 10, 50 did not work, reducing to 20, 40, 10, 40
n_elms_longitudinal = np.linspace(1, 20, n_sim, dtype=int)
n_elms_transverse_trab = np.linspace(3, 50, n_sim, dtype=int)
n_elms_transverse_cort = np.linspace(1, 10, n_sim, dtype=int)
n_radial = np.linspace(3, 50, n_sim, dtype=int)
# update meshing settings with sweep factor for sensitivity analysis
sweep = cfg.meshing_settings.sweep_factor
cfg.meshing_settings.n_elms_longitudinal = int(
n_elms_longitudinal[sweep - 1].item()
)
cfg.meshing_settings.n_elms_transverse_trab = int(
n_elms_transverse_trab[sweep - 1].item()
)
cfg.meshing_settings.n_elms_transverse_cort = int(
n_elms_transverse_cort[sweep - 1].item()
)
cfg.meshing_settings.n_elms_radial = int(n_radial[sweep - 1].item())
'''

def pipeline_hfe(cfg, folder_id, grayscale_filename):
'''
# TODO: reactivate this for mesh sensitivity analysis
# n_sim = int(15) # has to match sweep in config
# min = 5, 5, 2, 7
# max = 20, 50, 10, 50 did not work, reducing to 20, 40, 10, 40
n_elms_longitudinal = np.linspace(1, 20, n_sim, dtype=int)
n_elms_transverse_trab = np.linspace(3, 50, n_sim, dtype=int)
n_elms_transverse_cort = np.linspace(1, 10, n_sim, dtype=int)
n_radial = np.linspace(3, 50, n_sim, dtype=int)
# update meshing settings with sweep factor for sensitivity analysis
sweep = cfg.meshing_settings.sweep_factor
cfg.meshing_settings.n_elms_longitudinal = int(
n_elms_longitudinal[sweep - 1].item()
)
cfg.meshing_settings.n_elms_transverse_trab = int(
n_elms_transverse_trab[sweep - 1].item()
)
cfg.meshing_settings.n_elms_transverse_cort = int(
n_elms_transverse_cort[sweep - 1].item()
)
cfg.meshing_settings.n_elms_radial = int(n_radial[sweep - 1].item())
'''

# timing
time_record = {}
Expand Down

0 comments on commit 1cfc4fd

Please sign in to comment.