You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
for i in range(N):
for j in range(M):
"""conditions = [
timestamps[i] is not None,
not np.isnan(depth[j]),
not np.isnan(lats[i]),
not np.isnan(longs[i]),
not np.isnan(temperature[i, j])
]
if all(conditions):
"""
list_temp_measures.append(
{
# assert
"timestamp": timestamps[i].isoformat(),
"depth": floatdepth[j],
"latitude": lats[i],
"longitude": longs[i],
"temperature": temperature[i, j],
}
)
This works though:
"""conditions = [
timestamps[i] is not None,
not np.isnan(depth[j]),
not np.isnan(lats[i]),
not np.isnan(longs[i]),
not np.isnan(temperature[i, j])]
if all(conditions):
"""
for i in range(N):
for j in range(M):
list_temp_measures.append({
# assert
"timestamp": timestamps[i].isoformat(),
"depth": floatdepth[j],
"latitude": lats[i],
"longitude": longs[i],
"temperature": temperature[i, j],}
)
---output msg:
All done! ✨ 🍰 ✨
1 file reformatted.
and gives :
for i in range(N):
for j in range(M):
list_temp_measures.append(
{
# assert
"timestamp": timestamps[i].isoformat(),
"depth": floatdepth[j],
"latitude": lats[i],
"longitude": longs[i],
"temperature": temperature[i, j],
}
)
The text was updated successfully, but these errors were encountered:
error message:
Oh no! 💥 💔 💥
1 file failed to reformat.
This works though:
---output msg:
All done! ✨ 🍰 ✨
1 file reformatted.
and gives :
The text was updated successfully, but these errors were encountered: