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
When running the DEMO_Getdata_local.ipynb notebook, the getData function does not return a value and produces the following error:
JSONDecodeError: Expecting value: line 1 column 1 (char 0)
I have tried calling this function exactly as is in the notebook as well as using my auth_token and the isotropic1024coarse dataset. I get the same result.
Here is the full output:
getData is processing...
JSONDecodeError Traceback (most recent call last) in <cell line: 31>()
29 """
30 # process interpolation/differentiation of points.
---> 31 result = getData(dataset, variable, time, temporal_method, spatial_method, spatial_operator, points)
32
33 """
3 frames /usr/local/lib/python3.10/dist-packages/givernylocal/turbulence_toolkit.py in getData(cube, var_original, timepoint_original, temporal_method_original, spatial_method_original, spatial_operator_original, points, option, trace_memory, verbose)
108
109 # convert the response string to a numpy array.
--> 110 result = np.array(json.loads(response.text), dtype = np.float32)
111
112 # get the output header.
/usr/lib/python3.10/json/init.py in loads(s, cls, object_hook, parse_float, parse_int, parse_constant, object_pairs_hook, **kw)
344 parse_int is None and parse_float is None and
345 parse_constant is None and object_pairs_hook is None and not kw):
--> 346 return _default_decoder.decode(s)
347 if cls is None:
348 cls = JSONDecoder
/usr/lib/python3.10/json/decoder.py in decode(self, s, _w)
335
336 """
--> 337 obj, end = self.raw_decode(s, idx=_w(s, 0).end())
338 end = _w(s, end).end()
339 if end != len(s):
/usr/lib/python3.10/json/decoder.py in raw_decode(self, s, idx)
353 obj, end = self.scan_once(s, idx)
354 except StopIteration as err:
--> 355 raise JSONDecodeError("Expecting value", s, err.value) from None
356 return obj, end
JSONDecodeError: Expecting value: line 1 column 1 (char 0)
The text was updated successfully, but these errors were encountered:
When running the DEMO_Getdata_local.ipynb notebook, the getData function does not return a value and produces the following error:
JSONDecodeError: Expecting value: line 1 column 1 (char 0)
I have tried calling this function exactly as is in the notebook as well as using my auth_token and the isotropic1024coarse dataset. I get the same result.
Here is the full output:
getData is processing...
JSONDecodeError Traceback (most recent call last)
in <cell line: 31>()
29 """
30 # process interpolation/differentiation of points.
---> 31 result = getData(dataset, variable, time, temporal_method, spatial_method, spatial_operator, points)
32
33 """
3 frames
/usr/local/lib/python3.10/dist-packages/givernylocal/turbulence_toolkit.py in getData(cube, var_original, timepoint_original, temporal_method_original, spatial_method_original, spatial_operator_original, points, option, trace_memory, verbose)
108
109 # convert the response string to a numpy array.
--> 110 result = np.array(json.loads(response.text), dtype = np.float32)
111
112 # get the output header.
/usr/lib/python3.10/json/init.py in loads(s, cls, object_hook, parse_float, parse_int, parse_constant, object_pairs_hook, **kw)
344 parse_int is None and parse_float is None and
345 parse_constant is None and object_pairs_hook is None and not kw):
--> 346 return _default_decoder.decode(s)
347 if cls is None:
348 cls = JSONDecoder
/usr/lib/python3.10/json/decoder.py in decode(self, s, _w)
335
336 """
--> 337 obj, end = self.raw_decode(s, idx=_w(s, 0).end())
338 end = _w(s, end).end()
339 if end != len(s):
/usr/lib/python3.10/json/decoder.py in raw_decode(self, s, idx)
353 obj, end = self.scan_once(s, idx)
354 except StopIteration as err:
--> 355 raise JSONDecodeError("Expecting value", s, err.value) from None
356 return obj, end
JSONDecodeError: Expecting value: line 1 column 1 (char 0)
The text was updated successfully, but these errors were encountered: