Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgWa committed Sep 11, 2024
1 parent e934654 commit 25dfebb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions alphadia/libtransform.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,11 +324,11 @@ def forward(self, input: SpecLibBase) -> SpecLibBase:
model_mgr = ModelManager(device=device)

# will load other model than default generic
if self.peptdeep_model_type is not None:
if self.peptdeep_model_type:
logging.info(f"Loading PeptDeep models of type {self.peptdeep_model_type}")
model_mgr.load_installed_models(self.peptdeep_model_type)

if self.peptdeep_model_path is not None and self.peptdeep_model_path != "":
if self.peptdeep_model_path and self.peptdeep_model_path != "":
if not os.path.exists(self.peptdeep_model_path):
raise ValueError(
f"PeptDeep model checkpoint folder {self.peptdeep_model_path} does not exist"
Expand Down

0 comments on commit 25dfebb

Please sign in to comment.