easy-utils-dev 2.134__py3-none-any.whl → 2.135__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.
easy_utils_dev/ept.py CHANGED
@@ -46,6 +46,7 @@ class EPTManager :
46
46
  self.queue = FastQueue(request_max_count=4)
47
47
  self.nes = []
48
48
  self.tmp_design_path = None
49
+ self.creation_mode = 'fast' # 'fast' or 'slow' but accurate'
49
50
 
50
51
 
51
52
  def convert_slotid_to_physical_slot(self , shType , slotid ) :
@@ -475,7 +476,10 @@ class EPTManager :
475
476
  start = getTimestamp()
476
477
  db = self.Database()
477
478
  self.parse()
478
- self.create_ept_tables_from_sql()
479
+ if self.creation_mode == 'fast' :
480
+ self.create_ept_tables_from_sql()
481
+ elif self.creation_mode == 'slow' :
482
+ self.create_ept_columns(drop_cols=drop_cols)
479
483
  self.create_ept_rows()
480
484
  # db.execute_script(f"{os.path.join(__LIBPATH__ , 'ept_sql' , 'create_dirs.sql')}")
481
485
  a = start_thread(self._create_v_dirs , daemon=True)