(self)
return True
If the dataset is ready for using.
If the dataset is ready for using.
If the dataset is ready for using .
def is_ready(self) -> bool:
    """If the dataset is ready for using."""
    if not os.path.exists(self.project_dir):
      logging.warning(f"Directory: {self.project_dir} do not exists!")
      return False
    for data_file in self.data_files:
      full_data_file = os.path.join(self.data_dir, data_file)
      if not os.path.exists(full_data_file):
        logging.warning(f"Data file: {full_data_file} do not exists!")
        return False
    for config_file in self.config_files:
      full_config_file = os.path.join(self.config_dir, config_file)
      if not os.path.exists(full_config_file):
        logging.warning(f"Config file: {full_config_file} do not exists!")
        return False
    return True
def is_ready ( self ) -> bool : if not os . path . exists ( self . project_dir ) : logging . warning ( f"Directory: {self.project_dir} do not exists!" ) return False for data_file in self . data_files : full_data_file = os . path . join ( self . data_dir , data_file ) if not os . path . exists ( full_data_file ) : logging . warning ( f"Data file: {full_data_file} do not exists!" ) return False for config_file in self . config_files : full_config_file = os . path . join ( self . config_dir , config_file ) if not os . path . exists ( full_config_file ) : logging . warning ( f"Config file: {full_config_file} do not exists!" ) return False return True