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
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
Cell In[162], line 1
----> 1 keys = client.query('hmi.M_720s[2011.04.14_00:30:00/6h@2h]',
2 key=drms.const.all)
4 print(keys[['DATE__OBS','QUALITY']])
File ~/.pyenv/versions/arccnet/lib/python3.9/site-packages/drms/client.py:1072, in Client.query(self, ds, key, seg, link, convert_numeric, skip_conversion, pkeys, rec_index, n)
1070 res_key = pd.DataFrame()
1071 if convert_numeric:
-> 1072 self._convert_numeric_keywords(ds, res_key, skip_conversion)
1073 res.append(res_key)
1075 if seg is not None:
File ~/.pyenv/versions/arccnet/lib/python3.9/site-packages/drms/client.py:654, in Client._convert_numeric_keywords(self, ds, kdf, skip_conversion)
652 if idx.any():
653 k_idx = kdf.columns.get_loc(k)
--> 654 kdf[kdf.columns[k_idx]] = kdf[kdf.columns[k_idx]].apply(int, base=16)
655 if k in num_keys:
656 kdf[k] = _pd_to_numeric_coerce(kdf[k])
File ~/.pyenv/versions/arccnet/lib/python3.9/site-packages/pandas/core/series.py:4626, in Series.apply(self, func, convert_dtype, args, **kwargs)
4516 def apply(
4517 self,
4518 func: AggFuncType,
(...)
4521 **kwargs,
4522 ) -> DataFrame | Series:
4523 """
4524 Invoke function on values of Series.
4525
(...)
4624 dtype: float64
4625 """
-> 4626 return SeriesApply(self, func, convert_dtype, args, kwargs).apply()
File ~/.pyenv/versions/arccnet/lib/python3.9/site-packages/pandas/core/apply.py:1025, in SeriesApply.apply(self)
1022 return self.apply_str()
1024 # self.f is Callable
-> 1025 return self.apply_standard()
File ~/.pyenv/versions/arccnet/lib/python3.9/site-packages/pandas/core/apply.py:1076, in SeriesApply.apply_standard(self)
1074 else:
1075 values = obj.astype(object)._values
-> 1076 mapped = lib.map_infer(
1077 values,
1078 f,
1079 convert=self.convert_dtype,
1080 )
1082 if len(mapped) and isinstance(mapped[0], ABCSeries):
1083 # GH#43986 Need to do list(mapped) in order to get treated as nested
1084 # See also GH#25959 regarding EA support
1085 return obj._constructor_expanddim(list(mapped), index=obj.index)
File ~/.pyenv/versions/arccnet/lib/python3.9/site-packages/pandas/_libs/lib.pyx:2834, in pandas._libs.lib.map_infer()
File ~/.pyenv/versions/arccnet/lib/python3.9/site-packages/pandas/core/apply.py:133, in Apply.__init__.<locals>.f(x)
132 def f(x):
--> 133 return func(x, *args, **kwargs)
ValueError: invalid literal for int() with base 16: 'MISSING'
To Reproduce
In the most simple case, requesting 6 hours of data from 2011.04.14_00:30:00, at a 2 hour cadence, for all keys (drms.const.all), will raise the above error.
Describe the bug
Certain
drms
queries return a ValueError, e.g.:To Reproduce
In the most simple case, requesting 6 hours of data from 2011.04.14_00:30:00, at a 2 hour cadence, for all keys (
drms.const.all
), will raise the above error.As would perhaps be expected, the following queries complete successfully:
and the following raises the same
ValueError
Screenshots
The JSOC query of
hmi.M_720s[2011.04.14_00:30:00/6h@2h]
points to the issue:System Details
Installation method
pip
The text was updated successfully, but these errors were encountered: