Skip to content

Commit 75dc18e

Browse files
committed
refactor: rebase followup
1 parent 5564668 commit 75dc18e

3 files changed

Lines changed: 13 additions & 1 deletion

File tree

src/silo/common/phylo_tree.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ std::shared_ptr<TreeNode> parse_auspice_tree(
3434
node->children.push_back(child_node);
3535
}
3636

37-
// Insert node into the map *after* children so it's fully constructed
3837
node_map[node->node_id] = node;
3938
return node;
4039
}

src/silo/common/phylo_tree.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ using silo::common::TreeNodeId;
1313
class TreeNode {
1414
public:
1515
TreeNodeId node_id;
16+
// TODO(#815) remove these cyclic references
1617
std::vector<std::shared_ptr<TreeNode>> children;
1718
std::optional<std::shared_ptr<TreeNode>> parent;
1819
int depth;

src/silo/storage/column/string_column.h

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,8 @@ template <class Archive>
108108
) {
109109
ar & object.column_name;
110110
ar & object.dictionary;
111+
// TODO(#815) add serialization function for phylo_tree
112+
// ar & object.phylo_tree;
111113
}
112114
} // namespace boost::serialization
113115

@@ -121,10 +123,20 @@ template <class Archive>
121123
) {
122124
std::string column_name;
123125
silo::common::BidirectionalMap<std::string> dictionary;
126+
// TODO(#815) add serialization function for phylo_tree
127+
// std::optional<silo::common::PhyloTree> phylo_tree;
124128
ar & column_name;
125129
ar & dictionary;
130+
// ar & phylo_tree;
131+
// if(phylo_tree.has_value()){
132+
// object = std::make_shared<silo::storage::column::StringColumnMetadata>(
133+
// std::move(column_name), std::move(dictionary), std::move(phylo_tree)
134+
// );
135+
// }
136+
// else{
126137
object = std::make_shared<silo::storage::column::StringColumnMetadata>(
127138
std::move(column_name), std::move(dictionary)
128139
);
140+
// }
129141
}
130142
} // namespace boost::serialization

0 commit comments

Comments
 (0)