Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ maintainers = [
]
name = "LineageTree"
description = "Structure for Lineage Trees"
version = "2.0.1"
version = "2.0.2"
license = "MIT"
license-files = [ "LICENSE" ]
readme = {file = "README.md", content-type = "text/markdown"}
Expand Down Expand Up @@ -76,7 +76,7 @@ profile = "black"
line_length = 79

[tool.bumpver]
current_version = "2.0.1"
current_version = "2.0.2"
version_pattern = "MAJOR.MINOR.PATCH[-TAG]"
commit_message = "bump version {old_version} -> {new_version}"
commit = true
Expand Down
2 changes: 1 addition & 1 deletion src/LineageTree/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "2.0.1"
__version__ = "2.0.2"
from .lineageTree import lineageTree
from .lineageTreeManager import lineageTreeManager
from .loaders import (
Expand Down
3 changes: 1 addition & 2 deletions src/LineageTree/lineageTree.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,6 @@ def remove_nodes(self, group: int | set | list) -> None:
"predecessor",
"_successor",
"_predecessor",
"_time",
]:
attr_value.pop(node, ())
if self._predecessor.get(node):
Expand Down Expand Up @@ -1001,7 +1000,7 @@ def load(clf, fname: str):
properties = {
prop_name: prop
for prop_name, prop in lT.__dict__.items()
if isinstance(prop, dict)
if (isinstance(prop, dict) or prop_name == "_time_resolution")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we think of possible other properties?
Probably there is no strong reason for only allowing dictionary properties.

That being said, we only want lineage Tree properties and not other "weird" things/dunder properties and so on.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is for older files only v1.x, so I don't think we should overthink that. There is only one property we used in this version: time_resolution.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure, it is marginally impacting anyway ...

and prop_name
not in [
"successor",
Expand Down
Loading