Skip to content

Commit

Permalink
code linting
Browse files Browse the repository at this point in the history
  • Loading branch information
jgieseler committed Aug 11, 2023
1 parent d5a5fb3 commit e2b6662
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions solarmach/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def get_sw_speed(body, dtime, trange=1, default_vsw=400.0):
try:
import speasy as spz
except ModuleNotFoundError:
print(f"Couldn't load required module speasy, using default_vsw={default_vsw}. Install it with 'pip install speasy' to use this functionality." )
print(f"Couldn't load required module speasy, using default_vsw={default_vsw}. Install it with 'pip install speasy' to use this functionality.")
return default_vsw

try:
Expand Down Expand Up @@ -308,12 +308,12 @@ def __init__(self, date, body_list, vsw_list=[], reference_long=None, reference_
f'Magnetic footpoint longitude ({coord_sys})': footp_long_list})

self.pfss_table = pd.DataFrame(
{"Spacecraft/Body" : list(self.body_dict.keys()),
f"{coord_sys} longitude (°)" : body_lon_list,
f"{coord_sys} latitude (°)" : body_lat_list,
"Heliocentric_distance (R_Sun)" : np.array(body_dist_list) * u.au.to(u.solRad), # Quick conversion of AU -> Solar radii
{"Spacecraft/Body": list(self.body_dict.keys()),
f"{coord_sys} longitude (°)": body_lon_list,
f"{coord_sys} latitude (°)": body_lat_list,
"Heliocentric_distance (R_Sun)": np.array(body_dist_list) * u.au.to(u.solRad), # Quick conversion of AU -> Solar radii
"Vsw": body_vsw_list
}
}
)

if self.reference_long is not None:
Expand Down

0 comments on commit e2b6662

Please sign in to comment.