Skip to content

Commit 4c0c8ca

Browse files
author
scienceopen
committed
doc
1 parent d984436 commit 4c0c8ca

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pymap3d/__init__.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,11 +339,15 @@ def get_radius_normal(lat_radians, ell):
339339

340340

341341
def str2dt(t):
342+
"""
343+
output: datetime
344+
"""
345+
342346
t = atleast_1d(t)
343347
if isinstance(t[0],string_types):
344348
t = [parse(T) for T in t]
345349

346-
assert isinstance(t[0],datetime)
350+
assert isinstance(t[0],datetime), 'did not convert {} to datetime'.format(type(t[0]))
347351

348352
return t
349353
#%% internal use

0 commit comments

Comments
 (0)