insituTEM 0.1.9__py3-none-any.whl → 1.0.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- insituTEM/insitu_EMraw.py +1 -0
- insituTEM/insitu_IO.py +4 -3
- {insitutem-0.1.9.dist-info → insitutem-1.0.0.dist-info}/METADATA +1 -1
- {insitutem-0.1.9.dist-info → insitutem-1.0.0.dist-info}/RECORD +6 -6
- {insitutem-0.1.9.dist-info → insitutem-1.0.0.dist-info}/WHEEL +0 -0
- {insitutem-0.1.9.dist-info → insitutem-1.0.0.dist-info}/top_level.txt +0 -0
insituTEM/insitu_EMraw.py
CHANGED
insituTEM/insitu_IO.py
CHANGED
|
@@ -20,7 +20,7 @@ import cv2
|
|
|
20
20
|
import tifffile
|
|
21
21
|
import tqdm #not necessary just provides a progress bar and timer
|
|
22
22
|
import numpy as np
|
|
23
|
-
|
|
23
|
+
import moviepy.editor as mp
|
|
24
24
|
|
|
25
25
|
def tiff2mp4(path,fps):
|
|
26
26
|
"""
|
|
@@ -154,12 +154,12 @@ def folder2tif(path,isGray=True):
|
|
|
154
154
|
Input: path: folder path
|
|
155
155
|
Output: tif stack with the same name as the folder in the parent folder.
|
|
156
156
|
"""
|
|
157
|
+
import os
|
|
157
158
|
import tifffile
|
|
158
159
|
img_name=os.listdir(path)
|
|
159
160
|
nFrames= len(img_name)
|
|
160
161
|
pathout=path+'.tif'
|
|
161
|
-
|
|
162
|
-
video_out.write(img)
|
|
162
|
+
|
|
163
163
|
|
|
164
164
|
with tifffile.TiffWriter(pathout,bigtiff=True) as tif:
|
|
165
165
|
for i in tqdm.tqdm(range(nFrames)):
|
|
@@ -180,6 +180,7 @@ def f2gif(path,fps):
|
|
|
180
180
|
|
|
181
181
|
Output: file in the same folder named '..._cv.mp4'
|
|
182
182
|
"""
|
|
183
|
+
|
|
183
184
|
print("==============================================")
|
|
184
185
|
print("Convert file to GIF!")
|
|
185
186
|
pathout = path[:-4]+'_'+str(fps)+'.gif'
|
|
@@ -2,11 +2,11 @@ insituTEM/__ init __.py,sha256=L4AFZSmHZkQu6J-tlqBoTJaBFltRFZ5PArhk8pmDmco,283
|
|
|
2
2
|
insituTEM/insitu_DENS.py,sha256=k5YyfFtzFgpCLeOCp6kFDPblN2gxGQNITqpE7Eliwrk,10828
|
|
3
3
|
insituTEM/insitu_DP.py,sha256=OJxavgXpjyT-38vqXtqqTypzdsHIMeoZM5KzgZwt9Es,6031
|
|
4
4
|
insituTEM/insitu_Diff.py,sha256=orMAO7ExgT_Q3T-UuoewtjblTUod7Tf0YDAN9G8yL-s,16964
|
|
5
|
-
insituTEM/insitu_EMraw.py,sha256=
|
|
6
|
-
insituTEM/insitu_IO.py,sha256=
|
|
5
|
+
insituTEM/insitu_EMraw.py,sha256=8iByiFgaAezpD4-ziawi52KAIUIexvJbFczPsIfU6-8,15357
|
|
6
|
+
insituTEM/insitu_IO.py,sha256=zZ_GqEeWPA1DiY9yhCWTnfEm5qAGWhei1aEQAqwQrv4,25573
|
|
7
7
|
insituTEM/insitu_Preprocess.py,sha256=xKnHnv8dc0gTHzzEPW_DivzzEJHNFSNGRD_r7UM2l6U,12779
|
|
8
8
|
insituTEM/insitu_alignment.py,sha256=VJG4cUZ5aJYqDeZjjeosYE8usMWbMKodm2coUhGgSGU,19585
|
|
9
|
-
insitutem-0.
|
|
10
|
-
insitutem-0.
|
|
11
|
-
insitutem-0.
|
|
12
|
-
insitutem-0.
|
|
9
|
+
insitutem-1.0.0.dist-info/METADATA,sha256=x9_iWX7mgcMArsdd8NXWW2pHLySxSuZKpaTsAGkLBSk,1602
|
|
10
|
+
insitutem-1.0.0.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
11
|
+
insitutem-1.0.0.dist-info/top_level.txt,sha256=DEgrwrdz6iV62_cukvjFXu4dnZYupwvS41QyvTfcqjs,10
|
|
12
|
+
insitutem-1.0.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|