mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
Fix pep8
This commit is contained in:
1 parent
846aaeadf0
commit
64d9e456b7
2 files changed
+5
-4
No files matched your search
@@ -137,9 +137,9 @@ class InternalMeshing(AMeshingTool):
|
|||||||
p.points[k].z = pt1[k].z + \
|
p.points[k].z = pt1[k].z + \
|
||||||
dj*(pt2[k].z -
|
dj*(pt2[k].z -
|
||||||
pt1[k].z)
|
pt1[k].z)
|
||||||
p.rk = round(profiles[i].rk + \
|
p.rk = round(profiles[i].rk +
|
||||||
dj*(profiles[i+1].rk -
|
dj*(profiles[i+1].rk -
|
||||||
profiles[i].rk), 2)
|
profiles[i].rk), 2)
|
||||||
p.name = f'interpol{p.rk}'
|
p.name = f'interpol{p.rk}'
|
||||||
p.interpolated = True
|
p.interpolated = True
|
||||||
new_profiles2.append(p)
|
new_profiles2.append(p)
|
||||||
|
|||||||
+2
-1
@@ -278,7 +278,8 @@ def parse_datetime(value):
|
|||||||
+ ", ".join(SUPPORTED_DATETIME_FORMATS)
|
+ ", ".join(SUPPORTED_DATETIME_FORMATS)
|
||||||
) from iso_error
|
) from iso_error
|
||||||
|
|
||||||
# If the parsed datetime has timezone information, convert it to UTC and remove the timezone info
|
# If the parsed datetime has timezone information,
|
||||||
|
# convert it to UTC and remove the timezone info
|
||||||
if parsed.tzinfo is not None:
|
if parsed.tzinfo is not None:
|
||||||
parsed = parsed.astimezone(timezone.utc).replace(tzinfo=None)
|
parsed = parsed.astimezone(timezone.utc).replace(tzinfo=None)
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user