Myosotis-Researches 0.0.16__py3-none-any.whl → 0.0.18__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.
@@ -2,7 +2,7 @@ import h5py
2
2
  import numpy as np
3
3
  import os
4
4
  from PIL import Image
5
- from print_hdf5_structure import print_hdf5_structure
5
+ from .print_hdf5_structure import print_hdf5_structure
6
6
 
7
7
  # Make all images to a HDF5 file
8
8
  def make_h5(image_dir, h5_path, image_names = [], indx_train = None, indx_valid = None, image_labels = None, image_types = None):
@@ -10,13 +10,13 @@ def make_h5(image_dir, h5_path, image_names = [], indx_train = None, indx_valid
10
10
  N = len(image_names)
11
11
 
12
12
  # Process none
13
- if indx_train == None:
13
+ if indx_train is None:
14
14
  indx_train = np.array(range(1, N, 2), dtype=np.int32)
15
- if indx_valid == None:
15
+ if indx_valid is None:
16
16
  indx_valid = np.array(range(0, N, 2), dtype=np.int32)
17
- if image_labels == None:
17
+ if image_labels is None:
18
18
  image_labels = np.zeros(N)
19
- if image_types == None:
19
+ if image_types is None:
20
20
  image_types = np.zeros(N)
21
21
 
22
22
  # Get image data
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: Myosotis-Researches
3
- Version: 0.0.16
3
+ Version: 0.0.18
4
4
  Summary: A repository for storing my progress of researches.
5
5
  Home-page: https://github.com/Zeyu-Xie/Myosotis-Researches
6
6
  Author: Zeyu Xie
@@ -31,10 +31,10 @@ myosotis_researches/CcGAN/train_128/utils.py,sha256=B-V6ct4WDisVVCOLO0W7VIBL8StP
31
31
  myosotis_researches/CcGAN/utils/__init__.py,sha256=Pu9COV4zcXHGXuczhObersyeshVChmlEtwqp8VLUDxw,300
32
32
  myosotis_researches/CcGAN/utils/concat_image_horizontal.py,sha256=e6WsfO9IiSoP8zkZNz7IGimPUASr9VvyJUJdF-d40iw,954
33
33
  myosotis_researches/CcGAN/utils/concat_image_vertical.py,sha256=97-SuE8ZWpaeBm_ed6MAEaUOvtpzlYq_X3yWt4OEUTY,951
34
- myosotis_researches/CcGAN/utils/make_h5.py,sha256=bZGNx_SgWOaG8h3FpRk4WffC70hF6f9iIwj8z6dCKHI,1421
34
+ myosotis_researches/CcGAN/utils/make_h5.py,sha256=Q5OW1JA35ormmsrlAJp6XdC6x0uJBRNjsE31wM3zBiI,1422
35
35
  myosotis_researches/CcGAN/utils/print_hdf5_structure.py,sha256=leaR8H3GhlX6EuIXDMh36xG2zBdV-XlJkaXBuoorl6I,320
36
- myosotis_researches-0.0.16.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
37
- myosotis_researches-0.0.16.dist-info/METADATA,sha256=OmwozeldBgMidQDzt50Q8Yt09Bs1LR_0gZijfz6QZsU,765
38
- myosotis_researches-0.0.16.dist-info/WHEEL,sha256=pxyMxgL8-pra_rKaQ4drOZAegBVuX-G_4nRHjjgWbmo,91
39
- myosotis_researches-0.0.16.dist-info/top_level.txt,sha256=zxAiMn5eyZNJM28MewTAkgi_RZJMbfWbzVR-KF0LdZE,20
40
- myosotis_researches-0.0.16.dist-info/RECORD,,
36
+ myosotis_researches-0.0.18.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
37
+ myosotis_researches-0.0.18.dist-info/METADATA,sha256=UpqCyuT8aCTmip7LkGsNm6EwtdwTB34gqVJSMgzSZw8,765
38
+ myosotis_researches-0.0.18.dist-info/WHEEL,sha256=pxyMxgL8-pra_rKaQ4drOZAegBVuX-G_4nRHjjgWbmo,91
39
+ myosotis_researches-0.0.18.dist-info/top_level.txt,sha256=zxAiMn5eyZNJM28MewTAkgi_RZJMbfWbzVR-KF0LdZE,20
40
+ myosotis_researches-0.0.18.dist-info/RECORD,,