From ffc2988b870d6d58c5e19561e8f16eb7db40791c Mon Sep 17 00:00:00 2001 From: Robin Rounthwaite Date: Thu, 9 Nov 2023 11:59:38 -0800 Subject: [PATCH] removed the error preventing the creation of empty handles for PackedGraphs. --- bdsg/include/bdsg/internal/base_packed_graph.hpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/bdsg/include/bdsg/internal/base_packed_graph.hpp b/bdsg/include/bdsg/internal/base_packed_graph.hpp index 81a3f94e..888e3819 100644 --- a/bdsg/include/bdsg/internal/base_packed_graph.hpp +++ b/bdsg/include/bdsg/internal/base_packed_graph.hpp @@ -1191,10 +1191,6 @@ handle_t BasePackedGraph::create_handle(const string& sequence) { template handle_t BasePackedGraph::create_handle(const string& sequence, const nid_t& id) { - if (sequence.empty()) { - throw std::runtime_error("error:[BasePackedGraph] tried to create an empty node with ID " + std::to_string(id)); - } - if (id <= 0) { throw std::runtime_error("error:[BasePackedGraph] tried to create a node with non-positive ID " + std::to_string(id)); }