Skip to content

Commit

Permalink
PEP8 fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
louis-richard committed May 16, 2023
1 parent e21cea4 commit 3587ab6
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion pyrfu/pyrf/ebsp.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

logging.captureWarnings(True)
logging.basicConfig(
format="%(asctime)s: %(message)s",
format="[%(asctime)s] %(levelname)s: %(message)s",
datefmt="%d-%b-%y %H:%M:%S",
level=logging.INFO,
)
Expand Down
2 changes: 1 addition & 1 deletion pyrfu/pyrf/estimate.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def _estimate_capa_wire(radius, length):
out *= 2 * np.pi * constants.epsilon_0
else:
raise ValueError(
"capacitance_wire requires length at least 10 times " "the radius!",
"capacitance_wire requires length at least 10 times the radius!",
)
return out

Expand Down
2 changes: 0 additions & 2 deletions pyrfu/pyrf/int_sph_dist.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,8 +311,6 @@ def mc_pol_1d(
d_phi_mc = (random.random() - 0.5) * d_phi[j]
d_the_mc = (random.random() - 0.5) * d_theta[k]

# printf("%f, %f\n", d_v_m[0], d_v_mc)

# convert instrument bin to cartesian velocity
v_mc = v[i] + d_v_mc
phi_mc = phi[j] + d_phi_mc
Expand Down
2 changes: 1 addition & 1 deletion pyrfu/pyrf/resample.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

logging.captureWarnings(True)
logging.basicConfig(
format="%(asctime)s: %(message)s",
format="[%(asctime)s] %(levelname)s: %(message)s",
datefmt="%d-%b-%y %H:%M:%S",
level=logging.INFO,
)
Expand Down
2 changes: 1 addition & 1 deletion pyrfu/pyrf/wavelet.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

logging.captureWarnings(True)
logging.basicConfig(
format="%(asctime)s: %(message)s",
format="[%(asctime)s] %(levelname)s: %(message)s",
datefmt="%d-%b-%y %H:%M:%S",
level=logging.INFO,
)
Expand Down
2 changes: 1 addition & 1 deletion pyrfu/pyrf/wavepolarize_means.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

logging.captureWarnings(True)
logging.basicConfig(
format="%(asctime)s: %(message)s",
format="[%(asctime)s] %(levelname)s: %(message)s",
datefmt="%d-%b-%y %H:%M:%S",
level=logging.INFO,
)
Expand Down

0 comments on commit 3587ab6

Please sign in to comment.