Skip to content

Commit

Permalink
Improve Project __repr__
Browse files Browse the repository at this point in the history
  • Loading branch information
vinisalazar committed Apr 24, 2021
1 parent 7961dcb commit 761824d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
* Add `SeqFile.max_seq` and `.min_seq` properties [x]
* Patch `Project` deserializer to improve BioProvDocument creation [x]
* Make shorter Environment hashes [x]
* Improve Project `__repr__` [x]

### v0.1.22
* Simplify `bp.load_project()` function [x]
Expand Down
2 changes: 1 addition & 1 deletion bioprov/src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -1120,7 +1120,7 @@ def __len__(self):
return len(self._samples)

def __repr__(self):
return f"Project '{self.tag}' with {len(self)} samples"
return f"BioProvProject_'{self.tag}'"

def __getitem__(self, item):
if isinstance(item, str):
Expand Down

0 comments on commit 761824d

Please sign in to comment.