Skip to content

Commit

Permalink
fix: add missing 'raise' in front of error
Browse files Browse the repository at this point in the history
  • Loading branch information
hlibbabii committed Jan 9, 2021
1 parent e08236b commit d1e036b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion bohr/datasets/templates/loaders/from_csv.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def __init__(
def load(self) -> pd.DataFrame:
artifact_df = pd.read_csv(self.path_to_file, nrows=self.n_rows, sep=self.sep)
if artifact_df.empty:
ValueError(
raise ValueError(
f"Dataframe is empty, path: {self.path_to_file}, n_rows={self.n_rows}"
)
return artifact_df
28 changes: 14 additions & 14 deletions dvc.lock
Original file line number Diff line number Diff line change
Expand Up @@ -286,8 +286,8 @@ preprocess-and-split-smell-dataset:
md5: 0200db0eec17554a48a5b3a25719fd03
size: 77607
- path: data/smells/train.csv
md5: 7fc9a7617e6f201523fba311317ba48f
size: 296407
md5: 592b876a646350afb580840e397e1d9b
size: 296248
apply_heuristics_smells:
cmd: python bohr/pipeline/apply_heuristics.py smells
deps:
Expand All @@ -299,8 +299,8 @@ apply_heuristics_smells:
md5: 8134a637ea51ab9603c4a5f0a465887e
size: 9092
- path: bohr/datasets
md5: 8f5fe75628767765b5b8225438567bb1.dir
size: 13751
md5: dfb8ef13700ad84d05783644a3546faf.dir
size: 13757
nfiles: 14
- path: bohr/heuristics
md5: 2f7fab35c5613c6ebdf4fed6c74f376f.dir
Expand All @@ -316,8 +316,8 @@ apply_heuristics_smells:
md5: 460a362779d92ed2b3e00d70187df078
size: 161
- path: data/smells
md5: fb784904a6099d720b0d76dbd39ad94d.dir
size: 374035
md5: 96a30f8576751c88324a9a0a996aa5d5.dir
size: 373876
nfiles: 3
outs:
- path: generated/smells/analysis_smells-test.csv
Expand Down Expand Up @@ -345,8 +345,8 @@ train_label_model_smells:
cmd: python bohr/pipeline/train_label_model.py smells
deps:
- path: bohr/datasets
md5: 8f5fe75628767765b5b8225438567bb1.dir
size: 13751
md5: dfb8ef13700ad84d05783644a3546faf.dir
size: 13757
nfiles: 14
- path: bohr/pipeline/train_label_model.py
md5: 370d5e5b8cb4574a187f6faf761323c0
Expand All @@ -355,8 +355,8 @@ train_label_model_smells:
md5: 460a362779d92ed2b3e00d70187df078
size: 161
- path: data/smells
md5: fb784904a6099d720b0d76dbd39ad94d.dir
size: 374035
md5: 96a30f8576751c88324a9a0a996aa5d5.dir
size: 373876
nfiles: 3
- path: generated/smells/heuristic_matrix_smells-test.pkl
md5: e02374e512c2a8965efc1c5e8b07af81
Expand All @@ -375,8 +375,8 @@ label_dataset_bugginess_smells:
cmd: python bohr/pipeline/label_dataset.py smells smells-train
deps:
- path: bohr/datasets
md5: 8f5fe75628767765b5b8225438567bb1.dir
size: 13751
md5: dfb8ef13700ad84d05783644a3546faf.dir
size: 13757
nfiles: 14
- path: bohr/pipeline/label_dataset.py
md5: e6d52c1839abc8d39983fb71aafb0a9e
Expand All @@ -385,8 +385,8 @@ label_dataset_bugginess_smells:
md5: 460a362779d92ed2b3e00d70187df078
size: 161
- path: data/smells/train.csv
md5: 7fc9a7617e6f201523fba311317ba48f
size: 296407
md5: 592b876a646350afb580840e397e1d9b
size: 296248
- path: generated/smells/heuristic_matrix_train.pkl
md5: 34d9fda2129d72f64c1564c5c5931347
size: 24313
Expand Down

0 comments on commit d1e036b

Please sign in to comment.