Python script hello world

single tomo obj

Python Script

1: provide a scan either by: * using the 'select button' * copy-paste a file containing a NXtomo to the interface
2: print some information about this scan
{'_tomo_obj_setting': '', 'controlAreaVisible': True, 'savedWidgetGeometry': b'\x01\xd9\xd0\xcb\x00\x03\x00\x00\x00\x00\x08C\x00\x00\x02=\x00\x00\r\xb3\x00\x00\x02\xd8\x00\x00\x08C\x00\x00\x02b\x00\x00\r\xb3\x00\x00\x02\xd8\x00\x00\x00\x01\x00\x00\x00\x00\x07\x80\x00\x00\x08C\x00\x00\x02b\x00\x00\r\xb3\x00\x00\x02\xd8', '__version__': 1}
gASVKQUAAAAAAAB9lCiMEmNvbnRyb2xBcmVhVmlzaWJsZZSIjBJjdXJyZW50U2NyaXB0SW5kZXiU SwCMEWxpYnJhcnlMaXN0U291cmNllF2UjDFvcmFuZ2Vjb250cmliLnRvbXdlci53aWRnZXRzLm90 aGVyLlB5dGhvblNjcmlwdE9XlIwGU2NyaXB0lJOUKYGUfZQojARuYW1llIwLSGVsbG8gd29ybGSU jAZzY3JpcHSUWOgBAABmcm9tIHRvbXdlci5jb3JlLnNjYW4uaGRmNXNjYW4gaW1wb3J0IEhERjVU b21vU2Nhbgpmcm9tIHRvbXdlci5jb3JlLnNjYW4uZWRmc2NhbiBpbXBvcnQgRURGVG9tb1NjYW4K c2NhbiA9IGluX2RhdGEKaWYgaXNpbnN0YW5jZShzY2FuLCBIREY1VG9tb1NjYW4pOgogICAgcHJp bnQoInNjYW4gbWFzdGVyIGZpbGUgaXMiLCBzY2FuLm1hc3Rlcl9maWxlKQplbHNlOgogICAgcHJp bnQoInNjYW4gZGlyZWN0b3J5IGlzIiwgc2Nhbi5wYXRoKQoKcHJpbnQoZiJzY2FuIGhhcyB7bGVu KHNjYW4ucHJvamVjdGlvbnMpfSBwcm9qZWN0aW9ucywge2xlbihzY2FuLmRhcmtzKX0gZGFya3Mg YW5kIHtsZW4oc2Nhbi5mbGF0cyl9IGZsYXRzIikKCnByaW50KGYic2NhbiBlb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