Skip to content

Commit

Permalink
fix: undo "damage" caused by accidentally 'blackify-ing' the test dir
Browse files Browse the repository at this point in the history
  • Loading branch information
connorferster committed Jun 11, 2024
1 parent 9bb7edf commit 8ed8f41
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 43 deletions.
2 changes: 1 addition & 1 deletion test_handcalcs/cell_1.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
a = 2 # Comment
y = a + 4 # Comment
y = (a + 4) # Comment
alpha_eta_psi = 4 / (y ** (a + 1)) # Comment
alpha_eta_psi

Expand Down
7 changes: 2 additions & 5 deletions test_handcalcs/cell_2.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
x = 2
if x < 1:
b = x # Comment
elif x >= 1:
b = x * 1
c = b # Comment
if x < 1: b = x # Comment
elif x >= 1: b = x * 1; c = b # Comment

calc_results = globals()
11 changes: 3 additions & 8 deletions test_handcalcs/cell_2b.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
x = 10
if x < 1:
b = x # Comment
elif 1 < x < 5:
b = x * 1
c = b # Comment
else:
b = x * 1
c = b # Comment
if x < 1: b = x # Comment
elif 1 < x < 5: b = x * 1; c = b # Comment
else: b = x * 1; c = b # Comment

calc_results = globals()
8 changes: 1 addition & 7 deletions test_handcalcs/cell_5.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,6 @@
b = 20000002
c = 30000003
x = 5
y = (
sqrt(a / b)
+ asin(sin(b / c))
+ (a / b) ** (0.5)
+ sqrt((a * b + b * c) / (b**2))
+ sin(a / b)
) # Comment
y = sqrt(a / b)+ asin(sin(b / c)) + (a / b) ** (0.5) + sqrt((a * b + b * c) / (b**2)) + sin(a / b) # Comment

calc_results = globals()
8 changes: 1 addition & 7 deletions test_handcalcs/cell_7.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,6 @@

f = c / a + b # Comment
g = c * f / a # Comment
d = (
sqrt(a / b)
+ asin(sin(b / c))
+ (a / b) ** (0.5)
+ sqrt((a * b + b * c) / (b**2))
+ sin(a / b)
) # Comment
d = sqrt(a / b) + asin(sin(b / c)) + (a / b) ** (0.5) + sqrt((a * b + b * c) / (b**2)) + sin(a / b) # Comment

calc_results = globals()
8 changes: 1 addition & 7 deletions test_handcalcs/cell_7b.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,6 @@

f = causal / alpha_zeta + b_prime_c # Comment
g = causal * f / alpha_zeta # Comment
d = (
sqrt(alpha_zeta / b_prime_c)
+ sum((1, 2, 3))
+ (alpha_zeta / b_prime_c) ** (0.5)
+ sqrt((alpha_zeta * b_prime_c + b_prime_c) / (1.23e3**2))
+ sin(alpha_zeta / b_prime_c)
) # Comment
d = sqrt(alpha_zeta / b_prime_c) + sum((1, 2, 3)) + (alpha_zeta / b_prime_c) ** (0.5) + sqrt((alpha_zeta * b_prime_c + b_prime_c) / (1.23e3**2)) + sin(alpha_zeta / b_prime_c) # Comment

calc_results = globals()
8 changes: 1 addition & 7 deletions test_handcalcs/cell_8.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,6 @@

f = c / a + V_dot # Comment
g = c * f / a # Comment
d = sqrt(
a / V_dot
+ asin(sin(V_dot / c))
+ (a / V_dot) ** (0.5)
+ sqrt((a * V_dot + V_dot * c) / (V_dot**2))
+ sin(a / V_dot)
) # Comment
d = sqrt(a / V_dot+ asin(sin(V_dot / c))+ (a / V_dot) ** (0.5)+ sqrt((a * V_dot + V_dot * c) / (V_dot**2))+ sin(a / V_dot)) # Comment

calc_results = globals()
2 changes: 1 addition & 1 deletion test_handcalcs/cell_9.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
mu = 0.44
CritSeg = 1.5 # sendo extramemente
Delta_h = 9.641
Raio = 200 / 2 # Config
Raio = (200 / 2) # Config
Raio_Minimo = CritSeg * Delta_h / (sin(atan(mu + 1) + 1)) ** 2

calc_results = globals()

0 comments on commit 8ed8f41

Please sign in to comment.