[Matplotlib-users] TypeError: float() argument must be a string or a number
Benjamin Root
ben.v.root at gmail.com
Mon Feb 19 09:33:58 EST 2018
This is incomplete:
```
def get_UbiTimestamp():
api = ApiClient(token='A1E-6l4DwwC86SDR6QRTJWXGDwshTGPHFl')
variable = api.get_variable('5a5f80eec03f971388983b8e')
value = variable.get_values(1)[0]
timestamp = value.get('timestamp')
t= mdate.epoch2num(raw)
return t
```
`raw` is undefined. Also, nothing in that traceback indicates a problem
with datetime formatting, so what makes you think that is the problem?
On Mon, Feb 19, 2018 at 2:07 AM, tia <teernabachoo at gmail.com> wrote:
> The error I believe is in the way the timestamp has been formatted.
>
>
>
> --
> Sent from: http://matplotlib.1069221.n5.nabble.com/matplotlib-users-
> f3.html
> _______________________________________________
> Matplotlib-users mailing list
> Matplotlib-users at python.org
> https://mail.python.org/mailman/listinfo/matplotlib-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/matplotlib-users/attachments/20180219/759314f9/attachment.html>
More information about the Matplotlib-users
mailing list