Getting Houndsfield or Gray Value data from an image stack

I have been using the Script Listener to run from Pycharm. I made myself a work-around macro to save the data as a .npy file from mimics without the listener, allowing me to import it quickly later from anywhere.

I can send y’all a YAML file with my conda environment, if you would like! I can’t upload it here, but I suppose I could just paste it in as text.