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 CHANGED
@@ -15,6 +15,7 @@ import numpy as np
15
15
  import tqdm
16
16
  import ncempy
17
17
  import tifffile
18
+ import os
18
19
 
19
20
  def img_2_8bit(img):
20
21
  """
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
- if movieout == True:
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'
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: insituTEM
3
- Version: 0.1.9
3
+ Version: 1.0.0
4
4
  Summary: A toolbox for processing in situ TEM data
5
5
  Requires-Python: >=3.9
6
6
  Description-Content-Type: text/markdown
@@ -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=O7rwdQW4STkQlYr3yImnpJX_VqjIExHgFqFIoKblYYE,15347
6
- insituTEM/insitu_IO.py,sha256=yUUeLI6ZppM_Hf_IQOjIcoZYLAXoEnF-KYuQQw4tNU0,25580
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.1.9.dist-info/METADATA,sha256=Md-mPgQWtZ-xkLf3Y11M_0oCIYxqMaaKJ2nIuzsB_mE,1602
10
- insitutem-0.1.9.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
11
- insitutem-0.1.9.dist-info/top_level.txt,sha256=DEgrwrdz6iV62_cukvjFXu4dnZYupwvS41QyvTfcqjs,10
12
- insitutem-0.1.9.dist-info/RECORD,,
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,,