Commit 3a285af0 authored by Paul McCarthy's avatar Paul McCarthy 🚵
Browse files

MNT: Avoid deprecation warnings

parent 292ec608
......@@ -157,7 +157,7 @@ def formatCompound(dtable, column, series, delim=','):
if isinstance(sample, str):
return series
if not isinstance(sample, (np.ndarray, collections.Sequence)):
if not isinstance(sample, (np.ndarray, collections.abc.Sequence)):
return series
def fmt(val):
......
......@@ -1133,12 +1133,14 @@ def loadProcessingTable(
for i, (vids, procs) in enumerate(prependProcess):
vids = convert_Process_Variable(vids)
procs = convert_Process('processor', procs)
proctable.loc[i, ['Variable', 'Process']] = [vids, procs]
proctable.at[i, 'Variable'] = np.array(vids, dtype=object)
proctable.at[i, 'Process'] = procs
for i, (vids, procs) in enumerate(appendProcess, len(proctable.index)):
vids = convert_Process_Variable(vids)
procs = convert_Process('processor', procs)
proctable.loc[i, ['Variable', 'Process']] = [vids, procs]
proctable.at[i, 'Variable'] = np.array(vids, dtype=object)
proctable.at[i, 'Process'] = procs
proctable.sort_index(inplace=True)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment