MCPcopy Create free account
hub / github.com/ablab/spades / get_single_data

Method get_single_data

ext/src/python_libs/pyyaml3/constructor.py:33–38  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

31 return self.construct_document(self.get_node())
32
33 def get_single_data(self):
34 # Ensure that the stream contains a single document and construct it.
35 node = self.get_single_node()
36 if node is not None:
37 return self.construct_document(node)
38 return None
39
40 def construct_document(self, node):
41 data = self.construct_object(node)

Callers 1

loadFunction · 0.80

Calls 2

construct_documentMethod · 0.95
get_single_nodeMethod · 0.80

Tested by

no test coverage detected