From 761824db92a9148e4a40fe399291b794739d8259 Mon Sep 17 00:00:00 2001 From: Vini Salazar <17276653+vinisalazar@users.noreply.github.com> Date: Sat, 24 Apr 2021 12:51:13 -0300 Subject: [PATCH] Improve Project __repr__ --- CHANGELOG.md | 1 + bioprov/src/main.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 833b620..21c408b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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] diff --git a/bioprov/src/main.py b/bioprov/src/main.py index 34721bf..3238ac2 100644 --- a/bioprov/src/main.py +++ b/bioprov/src/main.py @@ -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):