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 9bad27f commit e21cea4
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion pyrfu/lp/photo_current.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
# -*- coding: utf-8 -*-

# Built-in imports
import logging

from typing import Union

# 3rd party imports
Expand All @@ -16,6 +18,13 @@
__version__ = "2.3.7"
__status__ = "Prototype"

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

surface_materials = [
"cluster",
"themis",
Expand Down Expand Up @@ -80,7 +89,9 @@ def photo_current(
if not iluminated_area and not u and not distance_sun:
for surf in surface_materials:
j0 = photo_current(1, 0, 1, surf)
print(f"{surf}: Io= {j0 * 1e6:3.2f} uA/m2")
logging.info(
"%(surf)s: Io= %(i0)3.2f uA/m2", {"surf": surf, "i0": j0 * 1e6}
)

return None

Expand Down

0 comments on commit e21cea4

Please sign in to comment.