I’m trying to define and fill our schema from python.
I noticed that I can create spaces with:
space_equipment_new = oBis.new_space(code=code_space_equipment, description='Equipment and devices')
However, this ends up in
Others, how do I make it appear in
many thanks - yes, hm, I can create the new inventory space in the ELN without problem, but is it possible to do so from pyBIS?
The webpage refers to the ELN/Core UI?
All the best
Unfortunately not, because Inventory and Lab Notebook only exist in the ELN UI, not in openBIS.
You can create a space with pyBIS and by default it will be shown in the ELN under Lab Notebook. You then need to move it to the Inventory in the ELN Settings.
you can do this with pybis, but it’s a bit tricky. After you created a space you need to:
- load the global or group specific ELN settings as a sample/object (with
- convert its property
$eln_settings from JSON to python objects (with
- add the space to the list
- dump the settings back to JSON format (
json.dumps) and apply to the property
- save the settings sample
This works for us.