Skip to content

Commit

Permalink
Merge pull request #8 from LSSTDESC/issue/43/move_open_model
Browse files Browse the repository at this point in the history
move open_model from init to run
  • Loading branch information
eacharles authored Aug 15, 2023
2 parents b53de67 + 74504ae commit 0a495f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/rail/estimation/algos/minisom_som.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@ def __init__(self, args, comm=None):
self.n_dim = None

def run(self):
self.open_model(**self.config)
self.som = self.model['som']
self.usecols = self.model['usecols']
self.column_usage = self.model['column_usage']
Expand Down
1 change: 1 addition & 0 deletions src/rail/estimation/algos/somoclu_som.py
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,7 @@ def get_som_coordinates(self, data, weight_col):
return som_coords

def run(self):
self.open_model(**self.config)
self.som = self.model['som']
self.usecols = self.model['usecols']
self.column_usage = self.model['column_usage']
Expand Down

0 comments on commit 0a495f1

Please sign in to comment.