Also posting to ask if it is possible to delete OMERO.Figures in CLI using the Figure ID. While testing the code below I accidentally generated several blank Figures, which for some reason can't be deleted from the Figure GUI.
Thanks!
j
- Code: Select all
def make_figure(data): # where data is a json.txt file
# convert json.txt to a json dict
figure_json = json.load(data)
# generate OMERO figure and save with new ID
name = figure_json['figureName']
description = {'name': name}
file_ann = conn.createFileAnnfromLocalFile(figure_fpath,
origFilePathAndName=name, mimetype='application/json',
ns='omero.web.figure.json', desc=description)