Skip to content

Commit

Permalink
fix returned value type
Browse files Browse the repository at this point in the history
  • Loading branch information
CunliangGeng committed Jun 10, 2024
1 parent 0450732 commit 9258499
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/nplinker/nplinker.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def __init__(self, config_file: str | PathLike):
@property
def root_dir(self) -> str:
"""Get the path to the root directory of the current NPLinker instance."""
return self.config.root_dir
return str(self.config.root_dir)

@property
def output_dir(self) -> str:
Expand All @@ -122,22 +122,22 @@ def output_dir(self) -> str:
@property
def bgcs(self) -> list[BGC]:
"""Get all BGC objects."""
return self._bgc_dict.values()
return list(self._bgc_dict.values())

@property
def gcfs(self) -> list[GCF]:
"""Get all GCF objects."""
return self._gcf_dict.values()
return list(self._gcf_dict.values())

@property
def spectra(self) -> list[Spectrum]:
"""Get all Spectrum objects."""
return self._spec_dict.values()
return list(self._spec_dict.values())

@property
def mfs(self) -> list[MolecularFamily]:
"""Get all MolecularFamily objects."""
return self._mf_dict.values()
return list(self._mf_dict.values())

@property
def mibig_bgcs(self) -> list[BGC]:
Expand Down

0 comments on commit 9258499

Please sign in to comment.