Skip to content

Commit

Permalink
Data Ingestion Modified
Browse files Browse the repository at this point in the history
  • Loading branch information
utpalpaul108 committed Nov 27, 2023
1 parent 5f4bb35 commit a0c9313
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion notebooks/data_ingestion.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,8 @@
" Preprocess the raw dataset\n",
" '''\n",
" if os.path.exists(self.config.raw_dataset_dir):\n",
" create_directories([self.config.dataset_dir])\n",
" try:\n",
" create_directories([self.config.dataset_dir])\n",
" for root, dirs, files in os.walk(self.config.raw_dataset_dir):\n",
" for file in files:\n",
" \n",
Expand Down
2 changes: 1 addition & 1 deletion src/wasteDetection/components/data_ingestion.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ def _preprocess_dataset(self):
Preprocess the raw dataset
'''
if os.path.exists(self.config.raw_dataset_dir):
create_directories([self.config.dataset_dir])
try:
create_directories([self.config.dataset_dir])
for root, dirs, files in os.walk(self.config.raw_dataset_dir):
for file in files:

Expand Down

0 comments on commit a0c9313

Please sign in to comment.