def process(a): d = getMetadata(a[0], a[1]) d['name'] = a[0] tmp = d['filename'] tmp = tmp.replace("/data", "") d['location'] = tmp d['mpp'] = float(d['mpp-x']) print(d, post_url) postslide(d, post_url)
def process(img): try: img = openslidedata(img) img['study'] = img.get('study', "") img['specimen'] = img.get('specimen', "") img['location'] = img['location'] or img['filename'] img = postslide(img, post_url) except BaseException as e: img['_status'] = e return img