Last active
May 14, 2021 09:08
-
-
Save p-geon/4786457364549baaa214068e68bb586c to your computer and use it in GitHub Desktop.
python useful snippets
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# for docker inside, "ls ./ && ls ../" | |
import os; print(os.listdir('./'), os.listdir('../')) | |
# ===== | |
# images | |
# ===== | |
'''read tif''' | |
!pip install tifffile==2020.9.3 | |
import tifffile | |
tifffile.imread('filename.tif') | |
'''read other image formats''' | |
from skimage import io | |
io.imread('filename.png') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment