Skip to content

Commit bb0529e

Browse files
committed
fix warnings and comments
1 parent 39b915a commit bb0529e

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

analysis/BrainActivationAnalysis.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def plot_ba_for_metric(df, metric, ba, activation=True):
7676

7777
if metric == "LOC":
7878
if activation:
79-
if ba is "BA44":
79+
if ba == "BA44":
8080
plt.ylabel("Activation in %\nBroca")
8181
else:
8282
plt.ylabel("Activation in %\n" + ba)
@@ -85,8 +85,8 @@ def plot_ba_for_metric(df, metric, ba, activation=True):
8585
else:
8686
plt.ylabel("")
8787

88-
if ba is "BA44":
89-
plt.xlabel(metric, color=color)
88+
if ba == "BA44":
89+
plt. xlabel(metric, color=color)
9090
else:
9191
plt.xlabel("")
9292

tests/test_pipeline.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def test_behavioral_subjective(self):
2828

2929
BehavioralSubjective.main()
3030
file_count_end = get_number_of_files_in_output()
31-
self.assertEqual(75, file_count_end) # pipeline should create 14 files + .gitkeep
31+
self.assertEqual(75, file_count_end) # pipeline should create 74 files + .gitkeep
3232

3333
def test_behavioral_brain(self):
3434
empty_output_dir()
@@ -48,7 +48,7 @@ def test_brain_activation(self):
4848

4949
BrainActivationAnalysis.main()
5050
file_count_end = get_number_of_files_in_output()
51-
self.assertEqual(211, file_count_end) # pipeline should create 30 files + .gitkeep
51+
self.assertEqual(211, file_count_end) # pipeline should create 210 files + .gitkeep
5252

5353

5454
if __name__ == '__main__':

0 commit comments

Comments
 (0)