Skip to content

Commit

Permalink
test block has my fucking number
Browse files Browse the repository at this point in the history
  • Loading branch information
WillyChap committed Nov 8, 2024
1 parent a951c1b commit 6fb3191
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions credit/postblock.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,8 @@ def __init__(self, post_conf):
lat2d,
p_level,
midpoint=self.flag_midpoint)

self.requires_scaling = post_conf['requires_scaling']
# -------------------------------------------------------------------------- #
self.ind_fix = self.N_levels - int(post_conf['global_mass_fixer']['fix_level_num']) + 1

Expand All @@ -246,7 +248,7 @@ def __init__(self, post_conf):
else:
self.state_trans = None

self.requires_scaling = post_conf['requires_scaling']


def forward(self, x):
# ------------------------------------------------------------------------------ #
Expand Down Expand Up @@ -449,7 +451,8 @@ def __init__(self, post_conf):
lat2d,
p_level,
midpoint=self.flag_midpoint)


self.requires_scaling = post_conf['requires_scaling']
self.N_seconds = int(post_conf['data']['lead_time_periods']) * 3600

# ------------------------------------------------------------------------------------ #
Expand All @@ -467,7 +470,6 @@ def __init__(self, post_conf):
else:
self.state_trans = None

self.requires_scaling = post_conf['requires_scaling']

def forward(self, x):
# ------------------------------------------------------------------------------ #
Expand Down

0 comments on commit 6fb3191

Please sign in to comment.