Skip to content

Commit

Permalink
bugfix on pytest
Browse files Browse the repository at this point in the history
  • Loading branch information
yingkaisha committed Nov 5, 2024
1 parent 92d34d9 commit c90aa23
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions credit/postblock.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ def __init__(self, post_conf):

p_level_demo = torch.from_numpy(np.array([100, 30000, 50000, 70000, 80000, 90000, 100000]))
self.flag_sigma_level = False
self.flag_midpoint = post_conf['global_mass_fixer']['midpoint']
self.flag_midpoint = post_conf['global_water_fixer']['midpoint']
self.core_compute = physics_pressure_level(lon_demo, lat_demo, p_level_demo,
midpoint=self.flag_midpoint)
self.N_levels = len(p_level_demo)
Expand Down Expand Up @@ -577,7 +577,7 @@ def __init__(self, post_conf):
np.array([100, 30000, 50000, 70000, 80000, 90000, 100000])
)
self.flag_sigma_level = False
self.flag_midpoint = post_conf['global_mass_fixer']['midpoint']
self.flag_midpoint = post_conf['global_energy_fixer']['midpoint']
self.core_compute = physics_pressure_level(
lon_demo,
lat_demo,
Expand Down

0 comments on commit c90aa23

Please sign in to comment.