Skip to content

Commit

Permalink
fix the variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
segasai committed Nov 5, 2024
1 parent 471e9c2 commit 8d63a1d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions py/rvspecfit/nn/NNInterpolator.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ def __init__(self,
width=None,
npc=None,
npix=None,
widthbn=True):
withbn=True):
super(NNInterpolator, self).__init__()
self.indim = indim
self.nlayers = nlayers
self.width = width
self.npc = npc
self.npix = npix
self.widthbn = widthbn
self.withbn = withbn
self.initLayers()

def initLayers(self):
Expand Down Expand Up @@ -51,7 +51,7 @@ def initLayers(self):
batchnorm_after_nl = True

for i in range(len(shapes)):
withbn = self.widthbn
withbn = self.withbn
if i == 0 or i == len(shapes) - 1:
withbn = False
if batchnorm_after_nl:
Expand Down

0 comments on commit 8d63a1d

Please sign in to comment.