F retrieve substructure
Compare changes
+ 46
− 2
@@ -60,10 +60,21 @@ def is_list_datatype(datatype):
@@ -73,6 +84,39 @@ def is_reference(datatype):
This adds a new function in pylib that allows for retrieving connected parts of a data model. This function is needed for feasible conversion of parts of the data model into UML.
This MR also adds some missing docstrings to old functions.
There is only one function to check that recursively adds substructure starting from a few given entities.
Check out the branch and try this on an instance of your choice:
import caosdb as db
from caosdb.utils.plantuml import to_graphics, retrieve_substructure
rts = retrieve_substructure(db.execute_query("Find RecordType SomeRecordtype"), 2)
For further good practices have a look at our review guidelines.