Skip to content

Commit aa81495

Browse files
authored
Merge pull request #61 from pyiron/tools
Add assignment tools
2 parents 930f352 + ab5ce90 commit aa81495

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

pyiron_rdm/tools.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
def get_dataset_assignments(o):
2+
return {i.code: i.get_property_assignments().df for i in o.get_dataset_types()}
3+
4+
5+
def get_object_assignments(o):
6+
return {i.code: i.get_property_assignments().df for i in o.get_object_types()}
7+
8+
9+
def get_controlled_vocabulary(o):
10+
return {i.code: i.get_terms().df for i in o.get_vocabularies()}

0 commit comments

Comments
 (0)