after_merge stringlengths 28 79.6k | before_merge stringlengths 20 79.6k | url stringlengths 38 71 | full_traceback stringlengths 43 922k | traceback_type stringclasses 555
values |
|---|---|---|---|---|
def __init__(
self,
info,
data,
events,
event_id=None,
tmin=-0.2,
tmax=0.5,
baseline=(None, 0),
raw=None,
picks=None,
reject=None,
flat=None,
decim=1,
reject_tmin=None,
reject_tmax=None,
detrend=None,
proj=True,
on_missing="raise",
preload_at_e... | def __init__(
self,
info,
data,
events,
event_id=None,
tmin=-0.2,
tmax=0.5,
baseline=(None, 0),
raw=None,
picks=None,
reject=None,
flat=None,
decim=1,
reject_tmin=None,
reject_tmax=None,
detrend=None,
proj=True,
on_missing="raise",
preload_at_e... | https://github.com/mne-tools/mne-python/issues/8816 | ---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
/tmp/test.py in
25
26 epochs.save(epochs_fname, overwrite=True)
---> 27 epochs_read = mne.read_epochs(epochs_fname)
<decorator-gen-212> in read_epochs(fname, proj, pre... | ValueError |
def crop(self, tmin=None, tmax=None, include_tmax=True, verbose=None):
"""Crop a time interval from the epochs.
Parameters
----------
tmin : float | None
Start time of selection in seconds.
tmax : float | None
End time of selection in seconds.
%(include_tmax)s
%(verbose_meth... | def crop(self, tmin=None, tmax=None, include_tmax=True, verbose=None):
"""Crop a time interval from the epochs.
Parameters
----------
tmin : float | None
Start time of selection in seconds.
tmax : float | None
End time of selection in seconds.
%(include_tmax)s
%(verbose_meth... | https://github.com/mne-tools/mne-python/issues/8816 | ---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
/tmp/test.py in
25
26 epochs.save(epochs_fname, overwrite=True)
---> 27 epochs_read = mne.read_epochs(epochs_fname)
<decorator-gen-212> in read_epochs(fname, proj, pre... | ValueError |
def plot_head_positions(
pos,
mode="traces",
cmap="viridis",
direction="z",
show=True,
destination=None,
info=None,
color="k",
axes=None,
):
"""Plot head positions.
Parameters
----------
pos : ndarray, shape (n_pos, 10) | list of ndarray
The head position dat... | def plot_head_positions(
pos,
mode="traces",
cmap="viridis",
direction="z",
show=True,
destination=None,
info=None,
color="k",
axes=None,
):
"""Plot head positions.
Parameters
----------
pos : ndarray, shape (n_pos, 10) | list of ndarray
The head position dat... | https://github.com/mne-tools/mne-python/issues/8810 | Using control points [6.56993144e-11 7.80732925e-11 1.82440323e-10]
---------------------------------------------------------------------------
KeyError Traceback (most recent call last)
~/miniconda3/envs/hnn_dev/lib/python3.7/site-packages/matplotlib/projections/__init__.py in get_proj... | KeyError |
def _plot_mpl_stc(
stc,
subject=None,
surface="inflated",
hemi="lh",
colormap="auto",
time_label="auto",
smoothing_steps=10,
subjects_dir=None,
views="lat",
clim="auto",
figure=None,
initial_time=None,
time_unit="s",
background="black",
spacing="oct6",
tim... | def _plot_mpl_stc(
stc,
subject=None,
surface="inflated",
hemi="lh",
colormap="auto",
time_label="auto",
smoothing_steps=10,
subjects_dir=None,
views="lat",
clim="auto",
figure=None,
initial_time=None,
time_unit="s",
background="black",
spacing="oct6",
tim... | https://github.com/mne-tools/mne-python/issues/8810 | Using control points [6.56993144e-11 7.80732925e-11 1.82440323e-10]
---------------------------------------------------------------------------
KeyError Traceback (most recent call last)
~/miniconda3/envs/hnn_dev/lib/python3.7/site-packages/matplotlib/projections/__init__.py in get_proj... | KeyError |
def _get_path(path, key, name):
"""Get a dataset path."""
# 1. Input
if path is not None:
if not isinstance(path, str):
raise ValueError("path must be a string or None")
return path
# 2. get_config(key)
# 3. get_config('MNE_DATA')
path = get_config(key, get_config("MN... | def _get_path(path, key, name):
"""Get a dataset path."""
# 1. Input
if path is not None:
if not isinstance(path, str):
raise ValueError("path must be a string or None")
return path
# 2. get_config(key)
# 3. get_config('MNE_DATA')
path = get_config(key, get_config("MN... | https://github.com/mne-tools/mne-python/issues/8764 | Downloading archive MNE-sample-data-processed.tar.gz to /Users/clemens/mne_data
Downloading https://files.osf.io/v1/resources/rxvq7/providers/osfstorage/59c0e26f9ad5a1025c4ab159?version=5&action=download&direct (1.54 GB)
0%| | Downloading : 0.00/1.54G [00:00<?, ?B/s]Error while fetching file htt... | FileNotFoundError |
def __init__(self, input_fname, eog=(), preload=False, uint16_codec=None, verbose=None): # noqa: D102
eeg = _check_load_mat(input_fname, uint16_codec)
if eeg.trials != 1:
raise TypeError(
"The number of trials is %d. It must be 1 for raw"
" files. Please use `mne.io.read_epochs_... | def __init__(self, input_fname, eog=(), preload=False, uint16_codec=None, verbose=None): # noqa: D102
eeg = _check_load_mat(input_fname, uint16_codec)
if eeg.trials != 1:
raise TypeError(
"The number of trials is %d. It must be 1 for raw"
" files. Please use `mne.io.read_epochs_... | https://github.com/mne-tools/mne-python/issues/8755 | AssertionError Traceback (most recent call last)
<ipython-input-10-a6f5a4e0501a> in <module>
5 from mne import preprocessing
6
----> 7 ica = preprocessing.read_ica_eeglab('full_filepath')
8
9
~/opt/anaconda3/envs/mne/lib/python3.8/site-packages/mne/preprocessing/ica.py in read_ica_eeglab(fna... | AssertionError |
def read_ica_eeglab(fname, *, verbose=None):
"""Load ICA information saved in an EEGLAB .set file.
Parameters
----------
fname : str
Complete path to a .set EEGLAB file that contains an ICA object.
%(verbose)s
Returns
-------
ica : instance of ICA
An ICA object based on... | def read_ica_eeglab(fname):
"""Load ICA information saved in an EEGLAB .set file.
Parameters
----------
fname : str
Complete path to a .set EEGLAB file that contains an ICA object.
Returns
-------
ica : instance of ICA
An ICA object based on the information contained in the... | https://github.com/mne-tools/mne-python/issues/8755 | AssertionError Traceback (most recent call last)
<ipython-input-10-a6f5a4e0501a> in <module>
5 from mne import preprocessing
6
----> 7 ica = preprocessing.read_ica_eeglab('full_filepath')
8
9
~/opt/anaconda3/envs/mne/lib/python3.8/site-packages/mne/preprocessing/ica.py in read_ica_eeglab(fna... | AssertionError |
def anonymize_info(info, daysback=None, keep_his=False, verbose=None):
"""Anonymize measurement information in place.
.. warning:: If ``info`` is part of an object like
:class:`raw.info <mne.io.Raw>`, you should directly use
the method :meth:`raw.anonymize() <mne.io.Raw.anonym... | def anonymize_info(info, daysback=None, keep_his=False, verbose=None):
"""Anonymize measurement information in place.
.. warning:: If ``info`` is part of an object like
:class:`raw.info <mne.io.Raw>`, you should directly use
the method :meth:`raw.anonymize() <mne.io.Raw.anonym... | https://github.com/mne-tools/mne-python/issues/8661 | Original file_id
{'version': 65537, 'machid': array([ 1082367, 1060765696]), 'secs': 1038942072, 'usecs': 190548}
Updated file_id
{'version': 65540, 'machid': array([808661043, 808661043]), 'secs': 0, 'usecs': 2147483647}
---------------------------------------------------------------------------
RuntimeError ... | RuntimeError |
def set_bipolar_reference(
inst,
anode,
cathode,
ch_name=None,
ch_info=None,
drop_refs=True,
copy=True,
verbose=None,
):
"""Re-reference selected channels using a bipolar referencing scheme.
A bipolar reference takes the difference between two channels (the anode
minus the c... | def set_bipolar_reference(
inst,
anode,
cathode,
ch_name=None,
ch_info=None,
drop_refs=True,
copy=True,
verbose=None,
):
"""Re-reference selected channels using a bipolar referencing scheme.
A bipolar reference takes the difference between two channels (the anode
minus the c... | https://github.com/mne-tools/mne-python/issues/8726 | ---------------------------------------------------------------------------
IndexError Traceback (most recent call last)
~/Documents/github_repos/mne-python/tutorials/epochs/plot_10_epochs_overview.py in <module>
23 evoked_bipolar1 = mne.set_bipolar_reference(evoked, anode=anode, cathode=... | IndexError |
def _plot_stc(
stc,
subject,
surface,
hemi,
colormap,
time_label,
smoothing_steps,
subjects_dir,
views,
clim,
figure,
initial_time,
time_unit,
background,
time_viewer,
colorbar,
transparent,
brain_alpha,
overlay_alpha,
vector_alpha,
cor... | def _plot_stc(
stc,
subject,
surface,
hemi,
colormap,
time_label,
smoothing_steps,
subjects_dir,
views,
clim,
figure,
initial_time,
time_unit,
background,
time_viewer,
colorbar,
transparent,
brain_alpha,
overlay_alpha,
vector_alpha,
cor... | https://github.com/mne-tools/mne-python/issues/8609 | Traceback (most recent call last):
File "/home/circleci/project/examples/inverse/plot_time_frequency_mixed_norm_inverse.py", line 126, in <module>
brain = stc.plot('sample', 'inflated', 'rh', views='medial',
File "/home/circleci/project/mne/source_estimate.py", line 653, in plot
brain = plot_source_estimates(
File "<de... | KeyError |
def _read_annotations_eeglab(eeg, uint16_codec=None):
r"""Create Annotations from EEGLAB file.
This function reads the event attribute from the EEGLAB
structure and makes an :class:`mne.Annotations` object.
Parameters
----------
eeg : object | str
'EEG' struct or the path to the (EEGLA... | def _read_annotations_eeglab(eeg, uint16_codec=None):
r"""Create Annotations from EEGLAB file.
This function reads the event attribute from the EEGLAB
structure and makes an :class:`mne.Annotations` object.
Parameters
----------
eeg : object | str
'EEG' struct or the path to the (EEGLA... | https://github.com/mne-tools/mne-python/issues/8383 | TypeError Traceback (most recent call last)
TypeError: only size-1 arrays can be converted to Python scalars
The above exception was the direct cause of the following exception:
ValueError Traceback (most recent call last)
<ipython-input-20-49d5d8853521> in <module>
----> 1 mne.io.read_raw_eeglab(os.path.join(folder... | TypeError |
def _data_path(
path=None,
force_update=False,
update_path=True,
download=True,
name=None,
check_version=False,
return_version=False,
archive_name=None,
):
"""Aux function."""
key = {
"fake": "MNE_DATASETS_FAKE_PATH",
"misc": "MNE_DATASETS_MISC_PATH",
"sam... | def _data_path(
path=None,
force_update=False,
update_path=True,
download=True,
name=None,
check_version=False,
return_version=False,
archive_name=None,
):
"""Aux function."""
key = {
"fake": "MNE_DATASETS_FAKE_PATH",
"misc": "MNE_DATASETS_MISC_PATH",
"sam... | https://github.com/mne-tools/mne-python/issues/8391 | Data loaded, with preload=False: C:\read_curry example data\PH005_baseline.dat, 70 channels X 76850 points
Leaving device<->head transform as None (no landmarks found)
Reading 0 ... 76849 = 0.000 ... 307.396 secs...
Traceback (most recent call last):
File "c:\Users\todfl\.vscode\extensions\ms-python.python-2020... | RuntimeError |
def _read_curry_parameters(fname):
"""Extract Curry params from a Curry info file."""
_msg_match = (
"The sampling frequency and the time steps extracted from "
"the parameter file do not match."
)
_msg_invalid = "sfreq must be greater than 0. Got sfreq = {0}"
var_names = [
... | def _read_curry_parameters(fname):
"""Extract Curry params from a Curry info file."""
_msg_match = (
"The sampling frequency and the time steps extracted from "
"the parameter file do not match."
)
_msg_invalid = "sfreq must be greater than 0. Got sfreq = {0}"
var_names = [
... | https://github.com/mne-tools/mne-python/issues/8391 | Data loaded, with preload=False: C:\read_curry example data\PH005_baseline.dat, 70 channels X 76850 points
Leaving device<->head transform as None (no landmarks found)
Reading 0 ... 76849 = 0.000 ... 307.396 secs...
Traceback (most recent call last):
File "c:\Users\todfl\.vscode\extensions\ms-python.python-2020... | RuntimeError |
def _read_curry_info(curry_paths):
"""Extract info from curry parameter files."""
curry_params = _read_curry_parameters(curry_paths["info"])
R = np.eye(4)
R[[0, 1], [0, 1]] = -1 # rotate 180 deg
# shift down and back
# (chosen by eyeballing to make the CTF helmet look roughly correct)
R[:3,... | def _read_curry_info(curry_paths):
"""Extract info from curry parameter files."""
curry_params = _read_curry_parameters(curry_paths["info"])
R = np.eye(4)
R[[0, 1], [0, 1]] = -1 # rotate 180 deg
# shift down and back
# (chosen by eyeballing to make the CTF helmet look roughly correct)
R[:3,... | https://github.com/mne-tools/mne-python/issues/8391 | Data loaded, with preload=False: C:\read_curry example data\PH005_baseline.dat, 70 channels X 76850 points
Leaving device<->head transform as None (no landmarks found)
Reading 0 ... 76849 = 0.000 ... 307.396 secs...
Traceback (most recent call last):
File "c:\Users\todfl\.vscode\extensions\ms-python.python-2020... | RuntimeError |
def parse_folder(
self,
data_path,
pattern="*.fif",
n_jobs=1,
mri_decim=2,
sort_sections=True,
on_error="warn",
image_format=None,
render_bem=True,
verbose=None,
):
r"""Render all the files in the folder.
Parameters
----------
data_path : str
Path to the ... | def parse_folder(
self,
data_path,
pattern="*.fif",
n_jobs=1,
mri_decim=2,
sort_sections=True,
on_error="warn",
image_format=None,
render_bem=True,
verbose=None,
):
r"""Render all the files in the folder.
Parameters
----------
data_path : str
Path to the ... | https://github.com/mne-tools/mne-python/issues/8168 | Embedding : jquery.js
Embedding : jquery-ui.min.js
Embedding : bootstrap.min.js
Embedding : jquery-ui.min.css
Embedding : bootstrap.min.css
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
Untitled-1 in
5 p = pathlib.... | TypeError |
def _plot_lines(
data,
info,
picks,
fig,
axes,
spatial_colors,
unit,
units,
scalings,
hline,
gfp,
types,
zorder,
xlim,
ylim,
times,
bad_ch_idx,
titles,
ch_types_used,
selectable,
psd,
line_alpha,
nave,
time_unit,
sphere,... | def _plot_lines(
data,
info,
picks,
fig,
axes,
spatial_colors,
unit,
units,
scalings,
hline,
gfp,
types,
zorder,
xlim,
ylim,
times,
bad_ch_idx,
titles,
ch_types_used,
selectable,
psd,
line_alpha,
nave,
time_unit,
sphere,... | https://github.com/mne-tools/mne-python/issues/6968 | ---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
~/anaconda3/lib/python3.7/site-packages/IPython/core/formatters.py in __call__(self, obj)
339 pass
340 else:
--> 341 return ... | ValueError |
def _set_psd_plot_params(info, proj, picks, ax, area_mode):
"""Set PSD plot params."""
import matplotlib.pyplot as plt
_check_option("area_mode", area_mode, [None, "std", "range"])
picks = _picks_to_idx(info, picks)
# XXX this could be refactored more with e.g., plot_evoked
# XXX when it's ref... | def _set_psd_plot_params(info, proj, picks, ax, area_mode):
"""Set PSD plot params."""
import matplotlib.pyplot as plt
_check_option("area_mode", area_mode, [None, "std", "range"])
picks = _picks_to_idx(info, picks)
# XXX this could be refactored more with e.g., plot_evoked
# XXX when it's ref... | https://github.com/mne-tools/mne-python/issues/6968 | ---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
~/anaconda3/lib/python3.7/site-packages/IPython/core/formatters.py in __call__(self, obj)
339 pass
340 else:
--> 341 return ... | ValueError |
def _plot_psd(
inst,
fig,
freqs,
psd_list,
picks_list,
titles_list,
units_list,
scalings_list,
ax_list,
make_label,
color,
area_mode,
area_alpha,
dB,
estimate,
average,
spatial_colors,
xscale,
line_alpha,
sphere,
):
# helper function fo... | def _plot_psd(
inst,
fig,
freqs,
psd_list,
picks_list,
titles_list,
units_list,
scalings_list,
ax_list,
make_label,
color,
area_mode,
area_alpha,
dB,
estimate,
average,
spatial_colors,
xscale,
line_alpha,
sphere,
):
# helper function fo... | https://github.com/mne-tools/mne-python/issues/6968 | ---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
~/anaconda3/lib/python3.7/site-packages/IPython/core/formatters.py in __call__(self, obj)
339 pass
340 else:
--> 341 return ... | ValueError |
def _fig_to_img(fig, image_format="png", scale=None, **kwargs):
"""Plot figure and create a binary image."""
# fig can be ndarray, mpl Figure, Mayavi Figure, or callable that produces
# a mpl Figure
import matplotlib.pyplot as plt
from matplotlib.figure import Figure
if isinstance(fig, np.ndarr... | def _fig_to_img(fig, image_format="png", scale=None, **kwargs):
"""Plot figure and create a binary image."""
# fig can be ndarray, mpl Figure, Mayavi Figure, or callable that produces
# a mpl Figure
import matplotlib.pyplot as plt
from matplotlib.figure import Figure
if isinstance(fig, np.ndarr... | https://github.com/mne-tools/mne-python/issues/6128 | ---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-5-a4d487ddeb86> in <module>()
3 rep = Report()
4 fig = plt.plot([1, 2], [1, 2])
----> 5 rep.add_figs_to_section(fig, 'my caption')
~/Desktop/projects/gi... | AttributeError |
def _plot_lines(
data,
info,
picks,
fig,
axes,
spatial_colors,
unit,
units,
scalings,
hline,
gfp,
types,
zorder,
xlim,
ylim,
times,
bad_ch_idx,
titles,
ch_types_used,
selectable,
psd,
line_alpha,
):
"""Plot data as butterfly plo... | def _plot_lines(
data,
info,
picks,
fig,
axes,
spatial_colors,
unit,
units,
scalings,
hline,
gfp,
types,
zorder,
xlim,
ylim,
times,
bad_ch_idx,
titles,
ch_types_used,
selectable,
psd,
line_alpha,
):
"""Plot data as butterfly plo... | https://github.com/mne-tools/mne-python/issues/5046 | /miniconda3/envs/mne/lib/python2.7/site-packages/mne/viz/evoked.py:433: VisibleDeprecationWarning: boolean index did not match indexed array along dimension 0; dimension is 1 but corresponding boolean dimension is 2
for ax in np.array(axes)[selectables]:
Traceback (most recent call last):
File "psd_bug.py", line 10, in... | IndexError |
def plot_compare_evokeds(
evokeds,
picks=None,
gfp=False,
colors=None,
linestyles=["-"],
styles=None,
cmap=None,
vlines="auto",
ci=0.95,
truncate_yaxis=False,
truncate_xaxis=True,
ylim=dict(),
invert_y=False,
show_sensors=None,
show_legend=True,
split_lege... | def plot_compare_evokeds(
evokeds,
picks=None,
gfp=False,
colors=None,
linestyles=["-"],
styles=None,
cmap=None,
vlines="auto",
ci=0.95,
truncate_yaxis=False,
truncate_xaxis=True,
ylim=dict(),
invert_y=False,
show_sensors=None,
show_legend=True,
split_lege... | https://github.com/mne-tools/mne-python/issues/5046 | /miniconda3/envs/mne/lib/python2.7/site-packages/mne/viz/evoked.py:433: VisibleDeprecationWarning: boolean index did not match indexed array along dimension 0; dimension is 1 but corresponding boolean dimension is 2
for ax in np.array(axes)[selectables]:
Traceback (most recent call last):
File "psd_bug.py", line 10, in... | IndexError |
def _set_psd_plot_params(info, proj, picks, ax, area_mode):
"""Set PSD plot params."""
import matplotlib.pyplot as plt
if area_mode not in [None, "std", "range"]:
raise ValueError('"area_mode" must be "std", "range", or None')
# XXX this could be refactored more with e.g., plot_evoked
megs... | def _set_psd_plot_params(info, proj, picks, ax, area_mode):
"""Set PSD plot params."""
import matplotlib.pyplot as plt
if area_mode not in [None, "std", "range"]:
raise ValueError('"area_mode" must be "std", "range", or None')
if picks is None:
# XXX this could be refactored more with e... | https://github.com/mne-tools/mne-python/issues/5046 | /miniconda3/envs/mne/lib/python2.7/site-packages/mne/viz/evoked.py:433: VisibleDeprecationWarning: boolean index did not match indexed array along dimension 0; dimension is 1 but corresponding boolean dimension is 2
for ax in np.array(axes)[selectables]:
Traceback (most recent call last):
File "psd_bug.py", line 10, in... | IndexError |
def plot_raw_psd(
raw,
tmin=0.0,
tmax=np.inf,
fmin=0,
fmax=np.inf,
proj=False,
n_fft=None,
picks=None,
ax=None,
color="black",
area_mode="std",
area_alpha=0.33,
n_overlap=0,
dB=True,
estimate="auto",
average=False,
show=True,
n_jobs=1,
line_alp... | def plot_raw_psd(
raw,
tmin=0.0,
tmax=np.inf,
fmin=0,
fmax=np.inf,
proj=False,
n_fft=None,
picks=None,
ax=None,
color="black",
area_mode="std",
area_alpha=0.33,
n_overlap=0,
dB=True,
estimate="auto",
average=False,
show=True,
n_jobs=1,
line_alp... | https://github.com/mne-tools/mne-python/issues/5046 | /miniconda3/envs/mne/lib/python2.7/site-packages/mne/viz/evoked.py:433: VisibleDeprecationWarning: boolean index did not match indexed array along dimension 0; dimension is 1 but corresponding boolean dimension is 2
for ax in np.array(axes)[selectables]:
Traceback (most recent call last):
File "psd_bug.py", line 10, in... | IndexError |
def restrict_forward_to_stc(fwd, stc):
"""Restrict forward operator to active sources in a source estimate.
Parameters
----------
fwd : Forward
Forward operator.
stc : SourceEstimate
Source estimate.
Returns
-------
fwd_out : dict
Restricted forward operator.
... | def restrict_forward_to_stc(fwd, stc):
"""Restrict forward operator to active sources in a source estimate.
Parameters
----------
fwd : Forward
Forward operator.
stc : SourceEstimate
Source estimate.
Returns
-------
fwd_out : dict
Restricted forward operator.
... | https://github.com/mne-tools/mne-python/issues/4459 | ---------------------------------------------------------------------------
IndexError Traceback (most recent call last)
<ipython-input-300-d1587ecf7da4> in <module>()
4 stc = mne.read_source_estimate(path + '/MEG/sample/sample_audvis-meg')
5 fwd_restricted = mne.forward.restrict_forward_... | IndexError |
def restrict_forward_to_label(fwd, labels):
"""Restrict forward operator to labels.
Parameters
----------
fwd : Forward
Forward operator.
labels : label object | list
Label object or list of label objects.
Returns
-------
fwd_out : dict
Restricted forward operat... | def restrict_forward_to_label(fwd, labels):
"""Restrict forward operator to labels.
Parameters
----------
fwd : Forward
Forward operator.
labels : label object | list
Label object or list of label objects.
Returns
-------
fwd_out : dict
Restricted forward operat... | https://github.com/mne-tools/mne-python/issues/4459 | ---------------------------------------------------------------------------
IndexError Traceback (most recent call last)
<ipython-input-300-d1587ecf7da4> in <module>()
4 stc = mne.read_source_estimate(path + '/MEG/sample/sample_audvis-meg')
5 fwd_restricted = mne.forward.restrict_forward_... | IndexError |
def _plot_update_evoked_topomap(params, bools):
"""Update topomaps."""
projs = [
proj for ii, proj in enumerate(params["projs"]) if ii in np.where(bools)[0]
]
params["proj_bools"] = bools
new_evoked = params["evoked"].copy()
new_evoked.info["projs"] = []
new_evoked.add_proj(projs)
... | def _plot_update_evoked_topomap(params, bools):
"""Update topomaps."""
projs = [
proj for ii, proj in enumerate(params["projs"]) if ii in np.where(bools)[0]
]
params["proj_bools"] = bools
new_evoked = params["evoked"].copy()
new_evoked.info["projs"] = []
new_evoked.add_proj(projs)
... | https://github.com/mne-tools/mne-python/issues/4054 | Traceback (most recent call last):
File "/home/mainak/anaconda2/lib/python2.7/site-packages/matplotlib/backends/t
guiEvent=event)
File "/home/mainak/anaconda2/lib/python2.7/site-packages/matplotlib/backend_bt
self.callbacks.process(s, mouseevent)
File "/home/mainak/anaconda2/lib/python2.7/site-packages/matplotlib/cbook... | IndexError |
def _pair_grad_sensors(
info, layout=None, topomap_coords=True, exclude="bads", raise_error=True
):
"""Find the picks for pairing grad channels
Parameters
----------
info : instance of Info
An info dictionary containing channel information.
layout : Layout | None
The layout if a... | def _pair_grad_sensors(info, layout=None, topomap_coords=True, exclude="bads"):
"""Find the picks for pairing grad channels
Parameters
----------
info : instance of Info
An info dictionary containing channel information.
layout : Layout | None
The layout if available. Defaults to No... | https://github.com/mne-tools/mne-python/issues/3063 | n [15]: Traceback (most recent call last):
File "/tsi/doctorants/mainak/anaconda/lib/python2.7/site-packages/matplotlib/backends/backend_qt5.py", line 291, in mouseReleaseEvent
FigureCanvasBase.button_release_event(self, x, y, button)
File "/tsi/doctorants/mainak/anaconda/lib/python2.7/site-packages/matplotlib/backend_... | ValueError |
def plot_patterns(
self,
info,
times=None,
ch_type=None,
layout=None,
vmin=None,
vmax=None,
cmap="RdBu_r",
sensors=True,
colorbar=True,
scale=None,
scale_time=1e3,
unit="a.u.",
res=64,
size=1,
cbar_fmt="%3.1f",
name_format="%01d ms",
proj=False,
... | def plot_patterns(
self,
info,
times=None,
ch_type=None,
layout=None,
vmin=None,
vmax=None,
cmap="RdBu_r",
sensors=True,
colorbar=True,
scale=None,
scale_time=1e3,
unit="a.u.",
res=64,
size=1,
cbar_fmt="%3.1f",
name_format="%01d ms",
proj=False,
... | https://github.com/mne-tools/mne-python/issues/3063 | n [15]: Traceback (most recent call last):
File "/tsi/doctorants/mainak/anaconda/lib/python2.7/site-packages/matplotlib/backends/backend_qt5.py", line 291, in mouseReleaseEvent
FigureCanvasBase.button_release_event(self, x, y, button)
File "/tsi/doctorants/mainak/anaconda/lib/python2.7/site-packages/matplotlib/backend_... | ValueError |
def plot_filters(
self,
info,
times=None,
ch_type=None,
layout=None,
vmin=None,
vmax=None,
cmap="RdBu_r",
sensors=True,
colorbar=True,
scale=None,
scale_time=1e3,
unit="a.u.",
res=64,
size=1,
cbar_fmt="%3.1f",
name_format="%01d ms",
proj=False,
... | def plot_filters(
self,
info,
times=None,
ch_type=None,
layout=None,
vmin=None,
vmax=None,
cmap="RdBu_r",
sensors=True,
colorbar=True,
scale=None,
scale_time=1e3,
unit="a.u.",
res=64,
size=1,
cbar_fmt="%3.1f",
name_format="%01d ms",
proj=False,
... | https://github.com/mne-tools/mne-python/issues/3063 | n [15]: Traceback (most recent call last):
File "/tsi/doctorants/mainak/anaconda/lib/python2.7/site-packages/matplotlib/backends/backend_qt5.py", line 291, in mouseReleaseEvent
FigureCanvasBase.button_release_event(self, x, y, button)
File "/tsi/doctorants/mainak/anaconda/lib/python2.7/site-packages/matplotlib/backend_... | ValueError |
def plot_patterns(
self,
info,
components=None,
ch_type=None,
layout=None,
vmin=None,
vmax=None,
cmap="RdBu_r",
sensors=True,
colorbar=True,
scale=None,
scale_time=1,
unit=None,
res=64,
size=1,
cbar_fmt="%3.1f",
name_format="CSP%01d",
proj=False,
... | def plot_patterns(
self,
info,
components=None,
ch_type=None,
layout=None,
vmin=None,
vmax=None,
cmap="RdBu_r",
sensors=True,
colorbar=True,
scale=None,
scale_time=1,
unit=None,
res=64,
size=1,
cbar_fmt="%3.1f",
name_format="CSP%01d",
proj=False,
... | https://github.com/mne-tools/mne-python/issues/3063 | n [15]: Traceback (most recent call last):
File "/tsi/doctorants/mainak/anaconda/lib/python2.7/site-packages/matplotlib/backends/backend_qt5.py", line 291, in mouseReleaseEvent
FigureCanvasBase.button_release_event(self, x, y, button)
File "/tsi/doctorants/mainak/anaconda/lib/python2.7/site-packages/matplotlib/backend_... | ValueError |
def plot_filters(
self,
info,
components=None,
ch_type=None,
layout=None,
vmin=None,
vmax=None,
cmap="RdBu_r",
sensors=True,
colorbar=True,
scale=None,
scale_time=1,
unit=None,
res=64,
size=1,
cbar_fmt="%3.1f",
name_format="CSP%01d",
proj=False,
... | def plot_filters(
self,
info,
components=None,
ch_type=None,
layout=None,
vmin=None,
vmax=None,
cmap="RdBu_r",
sensors=True,
colorbar=True,
scale=None,
scale_time=1,
unit=None,
res=64,
size=1,
cbar_fmt="%3.1f",
name_format="CSP%01d",
proj=False,
... | https://github.com/mne-tools/mne-python/issues/3063 | n [15]: Traceback (most recent call last):
File "/tsi/doctorants/mainak/anaconda/lib/python2.7/site-packages/matplotlib/backends/backend_qt5.py", line 291, in mouseReleaseEvent
FigureCanvasBase.button_release_event(self, x, y, button)
File "/tsi/doctorants/mainak/anaconda/lib/python2.7/site-packages/matplotlib/backend_... | ValueError |
def plot_psd_topomap(
self,
bands=None,
vmin=None,
vmax=None,
proj=False,
bandwidth=None,
adaptive=False,
low_bias=True,
normalization="length",
ch_type=None,
layout=None,
cmap="RdBu_r",
agg_fun=None,
dB=True,
n_jobs=1,
normalize=False,
cbar_fmt="%0.3f... | def plot_psd_topomap(
self,
bands=None,
vmin=None,
vmax=None,
proj=False,
bandwidth=None,
adaptive=False,
low_bias=True,
normalization="length",
ch_type=None,
layout=None,
cmap="RdBu_r",
agg_fun=None,
dB=True,
n_jobs=1,
normalize=False,
cbar_fmt="%0.3f... | https://github.com/mne-tools/mne-python/issues/3063 | n [15]: Traceback (most recent call last):
File "/tsi/doctorants/mainak/anaconda/lib/python2.7/site-packages/matplotlib/backends/backend_qt5.py", line 291, in mouseReleaseEvent
FigureCanvasBase.button_release_event(self, x, y, button)
File "/tsi/doctorants/mainak/anaconda/lib/python2.7/site-packages/matplotlib/backend_... | ValueError |
def plot_image(
self,
picks=None,
sigma=0.0,
vmin=None,
vmax=None,
colorbar=True,
order=None,
show=True,
units=None,
scalings=None,
cmap="RdBu_r",
fig=None,
overlay_times=None,
):
"""Plot Event Related Potential / Fields image
Parameters
----------
pi... | def plot_image(
self,
picks=None,
sigma=0.0,
vmin=None,
vmax=None,
colorbar=True,
order=None,
show=True,
units=None,
scalings=None,
cmap="RdBu_r",
fig=None,
overlay_times=None,
):
"""Plot Event Related Potential / Fields image
Parameters
----------
pi... | https://github.com/mne-tools/mne-python/issues/3063 | n [15]: Traceback (most recent call last):
File "/tsi/doctorants/mainak/anaconda/lib/python2.7/site-packages/matplotlib/backends/backend_qt5.py", line 291, in mouseReleaseEvent
FigureCanvasBase.button_release_event(self, x, y, button)
File "/tsi/doctorants/mainak/anaconda/lib/python2.7/site-packages/matplotlib/backend_... | ValueError |
def plot_image(
self,
picks=None,
exclude="bads",
unit=True,
show=True,
clim=None,
xlim="tight",
proj=False,
units=None,
scalings=None,
titles=None,
axes=None,
cmap="RdBu_r",
):
"""Plot evoked data as images
Parameters
----------
picks : array-like of... | def plot_image(
self,
picks=None,
exclude="bads",
unit=True,
show=True,
clim=None,
xlim="tight",
proj=False,
units=None,
scalings=None,
titles=None,
axes=None,
cmap="RdBu_r",
):
"""Plot evoked data as images
Parameters
----------
picks : array-like of... | https://github.com/mne-tools/mne-python/issues/3063 | n [15]: Traceback (most recent call last):
File "/tsi/doctorants/mainak/anaconda/lib/python2.7/site-packages/matplotlib/backends/backend_qt5.py", line 291, in mouseReleaseEvent
FigureCanvasBase.button_release_event(self, x, y, button)
File "/tsi/doctorants/mainak/anaconda/lib/python2.7/site-packages/matplotlib/backend_... | ValueError |
def plot_topomap(
self,
times="auto",
ch_type=None,
layout=None,
vmin=None,
vmax=None,
cmap=None,
sensors=True,
colorbar=True,
scale=None,
scale_time=1e3,
unit=None,
res=64,
size=1,
cbar_fmt="%3.1f",
time_format="%01d ms",
proj=False,
show=True,
... | def plot_topomap(
self,
times="auto",
ch_type=None,
layout=None,
vmin=None,
vmax=None,
cmap=None,
sensors=True,
colorbar=True,
scale=None,
scale_time=1e3,
unit=None,
res=64,
size=1,
cbar_fmt="%3.1f",
time_format="%01d ms",
proj=False,
show=True,
... | https://github.com/mne-tools/mne-python/issues/3063 | n [15]: Traceback (most recent call last):
File "/tsi/doctorants/mainak/anaconda/lib/python2.7/site-packages/matplotlib/backends/backend_qt5.py", line 291, in mouseReleaseEvent
FigureCanvasBase.button_release_event(self, x, y, button)
File "/tsi/doctorants/mainak/anaconda/lib/python2.7/site-packages/matplotlib/backend_... | ValueError |
def plot_components(
self,
picks=None,
ch_type=None,
res=64,
layout=None,
vmin=None,
vmax=None,
cmap="RdBu_r",
sensors=True,
colorbar=False,
title=None,
show=True,
outlines="head",
contours=6,
image_interp="bilinear",
head_pos=None,
):
"""Project unmix... | def plot_components(
self,
picks=None,
ch_type=None,
res=64,
layout=None,
vmin=None,
vmax=None,
cmap="RdBu_r",
sensors=True,
colorbar=False,
title=None,
show=True,
outlines="head",
contours=6,
image_interp="bilinear",
head_pos=None,
):
"""Project unmix... | https://github.com/mne-tools/mne-python/issues/3063 | n [15]: Traceback (most recent call last):
File "/tsi/doctorants/mainak/anaconda/lib/python2.7/site-packages/matplotlib/backends/backend_qt5.py", line 291, in mouseReleaseEvent
FigureCanvasBase.button_release_event(self, x, y, button)
File "/tsi/doctorants/mainak/anaconda/lib/python2.7/site-packages/matplotlib/backend_... | ValueError |
def plot(
self,
picks=None,
baseline=None,
mode="mean",
tmin=None,
tmax=None,
fmin=None,
fmax=None,
vmin=None,
vmax=None,
cmap="RdBu_r",
dB=False,
colorbar=True,
show=True,
title=None,
axes=None,
layout=None,
verbose=None,
):
"""Plot TFRs in a ... | def plot(
self,
picks=None,
baseline=None,
mode="mean",
tmin=None,
tmax=None,
fmin=None,
fmax=None,
vmin=None,
vmax=None,
cmap="RdBu_r",
dB=False,
colorbar=True,
show=True,
title=None,
axes=None,
layout=None,
verbose=None,
):
"""Plot TFRs in a ... | https://github.com/mne-tools/mne-python/issues/3063 | n [15]: Traceback (most recent call last):
File "/tsi/doctorants/mainak/anaconda/lib/python2.7/site-packages/matplotlib/backends/backend_qt5.py", line 291, in mouseReleaseEvent
FigureCanvasBase.button_release_event(self, x, y, button)
File "/tsi/doctorants/mainak/anaconda/lib/python2.7/site-packages/matplotlib/backend_... | ValueError |
def _onselect(self, eclick, erelease, baseline, mode, layout):
"""Callback function called by rubber band selector in channel tfr."""
import matplotlib.pyplot as plt
from ..viz import plot_tfr_topomap
if abs(eclick.x - erelease.x) < 0.1 or abs(eclick.y - erelease.y) < 0.1:
return
plt.ion() ... | def _onselect(self, eclick, erelease, baseline, mode, layout):
"""Callback function called by rubber band selector in channel tfr."""
import matplotlib.pyplot as plt
from ..viz import plot_tfr_topomap
if abs(eclick.x - erelease.x) < 0.1 or abs(eclick.y - erelease.y) < 0.1:
return
plt.ion() ... | https://github.com/mne-tools/mne-python/issues/3063 | n [15]: Traceback (most recent call last):
File "/tsi/doctorants/mainak/anaconda/lib/python2.7/site-packages/matplotlib/backends/backend_qt5.py", line 291, in mouseReleaseEvent
FigureCanvasBase.button_release_event(self, x, y, button)
File "/tsi/doctorants/mainak/anaconda/lib/python2.7/site-packages/matplotlib/backend_... | ValueError |
def plot_topo(
self,
picks=None,
baseline=None,
mode="mean",
tmin=None,
tmax=None,
fmin=None,
fmax=None,
vmin=None,
vmax=None,
layout=None,
cmap="RdBu_r",
title=None,
dB=False,
colorbar=True,
layout_scale=0.945,
show=True,
border="none",
fig_fa... | def plot_topo(
self,
picks=None,
baseline=None,
mode="mean",
tmin=None,
tmax=None,
fmin=None,
fmax=None,
vmin=None,
vmax=None,
layout=None,
cmap="RdBu_r",
title=None,
dB=False,
colorbar=True,
layout_scale=0.945,
show=True,
border="none",
fig_fa... | https://github.com/mne-tools/mne-python/issues/3063 | n [15]: Traceback (most recent call last):
File "/tsi/doctorants/mainak/anaconda/lib/python2.7/site-packages/matplotlib/backends/backend_qt5.py", line 291, in mouseReleaseEvent
FigureCanvasBase.button_release_event(self, x, y, button)
File "/tsi/doctorants/mainak/anaconda/lib/python2.7/site-packages/matplotlib/backend_... | ValueError |
def plot_topomap(
self,
tmin=None,
tmax=None,
fmin=None,
fmax=None,
ch_type=None,
baseline=None,
mode="mean",
layout=None,
vmin=None,
vmax=None,
cmap=None,
sensors=True,
colorbar=True,
unit=None,
res=64,
size=2,
cbar_fmt="%1.1e",
show_names=Fal... | def plot_topomap(
self,
tmin=None,
tmax=None,
fmin=None,
fmax=None,
ch_type=None,
baseline=None,
mode="mean",
layout=None,
vmin=None,
vmax=None,
cmap=None,
sensors=True,
colorbar=True,
unit=None,
res=64,
size=2,
cbar_fmt="%1.1e",
show_names=Fal... | https://github.com/mne-tools/mne-python/issues/3063 | n [15]: Traceback (most recent call last):
File "/tsi/doctorants/mainak/anaconda/lib/python2.7/site-packages/matplotlib/backends/backend_qt5.py", line 291, in mouseReleaseEvent
FigureCanvasBase.button_release_event(self, x, y, button)
File "/tsi/doctorants/mainak/anaconda/lib/python2.7/site-packages/matplotlib/backend_... | ValueError |
def plot_epochs_image(
epochs,
picks=None,
sigma=0.0,
vmin=None,
vmax=None,
colorbar=True,
order=None,
show=True,
units=None,
scalings=None,
cmap="RdBu_r",
fig=None,
axes=None,
overlay_times=None,
):
"""Plot Event Related Potential / Fields image
Paramete... | def plot_epochs_image(
epochs,
picks=None,
sigma=0.0,
vmin=None,
vmax=None,
colorbar=True,
order=None,
show=True,
units=None,
scalings=None,
cmap="RdBu_r",
fig=None,
axes=None,
overlay_times=None,
):
"""Plot Event Related Potential / Fields image
Paramete... | https://github.com/mne-tools/mne-python/issues/3063 | n [15]: Traceback (most recent call last):
File "/tsi/doctorants/mainak/anaconda/lib/python2.7/site-packages/matplotlib/backends/backend_qt5.py", line 291, in mouseReleaseEvent
FigureCanvasBase.button_release_event(self, x, y, button)
File "/tsi/doctorants/mainak/anaconda/lib/python2.7/site-packages/matplotlib/backend_... | ValueError |
def _butterfly_onselect(xmin, xmax, ch_types, evoked, text=None):
"""Function for drawing topomaps from the selected area."""
import matplotlib.pyplot as plt
ch_types = [type for type in ch_types if type in ("eeg", "grad", "mag")]
if (
"grad" in ch_types
and len(
_pair_grad_... | def _butterfly_onselect(xmin, xmax, ch_types, evoked, text=None):
"""Function for drawing topomaps from the selected area."""
import matplotlib.pyplot as plt
ch_types = [type for type in ch_types if type in ("eeg", "grad", "mag")]
vert_lines = list()
if text is not None:
text.set_visible(Tr... | https://github.com/mne-tools/mne-python/issues/3063 | n [15]: Traceback (most recent call last):
File "/tsi/doctorants/mainak/anaconda/lib/python2.7/site-packages/matplotlib/backends/backend_qt5.py", line 291, in mouseReleaseEvent
FigureCanvasBase.button_release_event(self, x, y, button)
File "/tsi/doctorants/mainak/anaconda/lib/python2.7/site-packages/matplotlib/backend_... | ValueError |
def _plot_evoked(
evoked,
picks,
exclude,
unit,
show,
ylim,
proj,
xlim,
hline,
units,
scalings,
titles,
axes,
plot_type,
cmap=None,
gfp=False,
window_title=None,
spatial_colors=False,
set_tight_layout=True,
selectable=True,
zorder="unso... | def _plot_evoked(
evoked,
picks,
exclude,
unit,
show,
ylim,
proj,
xlim,
hline,
units,
scalings,
titles,
axes,
plot_type,
cmap=None,
gfp=False,
window_title=None,
spatial_colors=False,
set_tight_layout=True,
selectable=True,
zorder="unso... | https://github.com/mne-tools/mne-python/issues/3063 | n [15]: Traceback (most recent call last):
File "/tsi/doctorants/mainak/anaconda/lib/python2.7/site-packages/matplotlib/backends/backend_qt5.py", line 291, in mouseReleaseEvent
FigureCanvasBase.button_release_event(self, x, y, button)
File "/tsi/doctorants/mainak/anaconda/lib/python2.7/site-packages/matplotlib/backend_... | ValueError |
def plot_evoked_image(
evoked,
picks=None,
exclude="bads",
unit=True,
show=True,
clim=None,
xlim="tight",
proj=False,
units=None,
scalings=None,
titles=None,
axes=None,
cmap="RdBu_r",
):
"""Plot evoked data as images
Parameters
----------
evoked : ins... | def plot_evoked_image(
evoked,
picks=None,
exclude="bads",
unit=True,
show=True,
clim=None,
xlim="tight",
proj=False,
units=None,
scalings=None,
titles=None,
axes=None,
cmap="RdBu_r",
):
"""Plot evoked data as images
Parameters
----------
evoked : ins... | https://github.com/mne-tools/mne-python/issues/3063 | n [15]: Traceback (most recent call last):
File "/tsi/doctorants/mainak/anaconda/lib/python2.7/site-packages/matplotlib/backends/backend_qt5.py", line 291, in mouseReleaseEvent
FigureCanvasBase.button_release_event(self, x, y, button)
File "/tsi/doctorants/mainak/anaconda/lib/python2.7/site-packages/matplotlib/backend_... | ValueError |
def _imshow_tfr(
ax,
ch_idx,
tmin,
tmax,
vmin,
vmax,
onselect,
ylim=None,
tfr=None,
freq=None,
vline=None,
x_label=None,
y_label=None,
colorbar=False,
picker=True,
cmap=("RdBu_r", True),
title=None,
hline=None,
):
"""Aux function to show time-f... | def _imshow_tfr(
ax,
ch_idx,
tmin,
tmax,
vmin,
vmax,
onselect,
ylim=None,
tfr=None,
freq=None,
vline=None,
x_label=None,
y_label=None,
colorbar=False,
picker=True,
cmap="RdBu_r",
title=None,
hline=None,
):
"""Aux function to show time-freq map ... | https://github.com/mne-tools/mne-python/issues/3063 | n [15]: Traceback (most recent call last):
File "/tsi/doctorants/mainak/anaconda/lib/python2.7/site-packages/matplotlib/backends/backend_qt5.py", line 291, in mouseReleaseEvent
FigureCanvasBase.button_release_event(self, x, y, button)
File "/tsi/doctorants/mainak/anaconda/lib/python2.7/site-packages/matplotlib/backend_... | ValueError |
def plot_projs_topomap(
projs,
layout=None,
cmap=None,
sensors=True,
colorbar=False,
res=64,
size=1,
show=True,
outlines="head",
contours=6,
image_interp="bilinear",
axes=None,
):
"""Plot topographic maps of SSP projections
Parameters
----------
projs : l... | def plot_projs_topomap(
projs,
layout=None,
cmap=None,
sensors=True,
colorbar=False,
res=64,
size=1,
show=True,
outlines="head",
contours=6,
image_interp="bilinear",
axes=None,
):
"""Plot topographic maps of SSP projections
Parameters
----------
projs : l... | https://github.com/mne-tools/mne-python/issues/3063 | n [15]: Traceback (most recent call last):
File "/tsi/doctorants/mainak/anaconda/lib/python2.7/site-packages/matplotlib/backends/backend_qt5.py", line 291, in mouseReleaseEvent
FigureCanvasBase.button_release_event(self, x, y, button)
File "/tsi/doctorants/mainak/anaconda/lib/python2.7/site-packages/matplotlib/backend_... | ValueError |
def plot_ica_components(
ica,
picks=None,
ch_type=None,
res=64,
layout=None,
vmin=None,
vmax=None,
cmap="RdBu_r",
sensors=True,
colorbar=False,
title=None,
show=True,
outlines="head",
contours=6,
image_interp="bilinear",
head_pos=None,
):
"""Project un... | def plot_ica_components(
ica,
picks=None,
ch_type=None,
res=64,
layout=None,
vmin=None,
vmax=None,
cmap="RdBu_r",
sensors=True,
colorbar=False,
title=None,
show=True,
outlines="head",
contours=6,
image_interp="bilinear",
head_pos=None,
):
"""Project un... | https://github.com/mne-tools/mne-python/issues/3063 | n [15]: Traceback (most recent call last):
File "/tsi/doctorants/mainak/anaconda/lib/python2.7/site-packages/matplotlib/backends/backend_qt5.py", line 291, in mouseReleaseEvent
FigureCanvasBase.button_release_event(self, x, y, button)
File "/tsi/doctorants/mainak/anaconda/lib/python2.7/site-packages/matplotlib/backend_... | ValueError |
def plot_tfr_topomap(
tfr,
tmin=None,
tmax=None,
fmin=None,
fmax=None,
ch_type=None,
baseline=None,
mode="mean",
layout=None,
vmin=None,
vmax=None,
cmap=None,
sensors=True,
colorbar=True,
unit=None,
res=64,
size=2,
cbar_fmt="%1.1e",
show_names=... | def plot_tfr_topomap(
tfr,
tmin=None,
tmax=None,
fmin=None,
fmax=None,
ch_type=None,
baseline=None,
mode="mean",
layout=None,
vmin=None,
vmax=None,
cmap=None,
sensors=True,
colorbar=True,
unit=None,
res=64,
size=2,
cbar_fmt="%1.1e",
show_names=... | https://github.com/mne-tools/mne-python/issues/3063 | n [15]: Traceback (most recent call last):
File "/tsi/doctorants/mainak/anaconda/lib/python2.7/site-packages/matplotlib/backends/backend_qt5.py", line 291, in mouseReleaseEvent
FigureCanvasBase.button_release_event(self, x, y, button)
File "/tsi/doctorants/mainak/anaconda/lib/python2.7/site-packages/matplotlib/backend_... | ValueError |
def plot_evoked_topomap(
evoked,
times="auto",
ch_type=None,
layout=None,
vmin=None,
vmax=None,
cmap=None,
sensors=True,
colorbar=True,
scale=None,
scale_time=1e3,
unit=None,
res=64,
size=1,
cbar_fmt="%3.1f",
time_format="%01d ms",
proj=False,
show... | def plot_evoked_topomap(
evoked,
times="auto",
ch_type=None,
layout=None,
vmin=None,
vmax=None,
cmap=None,
sensors=True,
colorbar=True,
scale=None,
scale_time=1e3,
unit=None,
res=64,
size=1,
cbar_fmt="%3.1f",
time_format="%01d ms",
proj=False,
show... | https://github.com/mne-tools/mne-python/issues/3063 | n [15]: Traceback (most recent call last):
File "/tsi/doctorants/mainak/anaconda/lib/python2.7/site-packages/matplotlib/backends/backend_qt5.py", line 291, in mouseReleaseEvent
FigureCanvasBase.button_release_event(self, x, y, button)
File "/tsi/doctorants/mainak/anaconda/lib/python2.7/site-packages/matplotlib/backend_... | ValueError |
def _plot_topomap_multi_cbar(
data,
pos,
ax,
title=None,
unit=None,
vmin=None,
vmax=None,
cmap=None,
outlines="head",
colorbar=False,
cbar_fmt="%3.3f",
):
"""Aux Function"""
import matplotlib.pyplot as plt
from mpl_toolkits.axes_grid1 import make_axes_locatable
... | def _plot_topomap_multi_cbar(
data,
pos,
ax,
title=None,
unit=None,
vmin=None,
vmax=None,
cmap="RdBu_r",
colorbar=False,
cbar_fmt="%3.3f",
):
"""Aux Function"""
import matplotlib.pyplot as plt
from mpl_toolkits.axes_grid1 import make_axes_locatable
_hide_frame(ax... | https://github.com/mne-tools/mne-python/issues/3063 | n [15]: Traceback (most recent call last):
File "/tsi/doctorants/mainak/anaconda/lib/python2.7/site-packages/matplotlib/backends/backend_qt5.py", line 291, in mouseReleaseEvent
FigureCanvasBase.button_release_event(self, x, y, button)
File "/tsi/doctorants/mainak/anaconda/lib/python2.7/site-packages/matplotlib/backend_... | ValueError |
def plot_epochs_psd_topomap(
epochs,
bands=None,
vmin=None,
vmax=None,
tmin=None,
tmax=None,
proj=False,
bandwidth=None,
adaptive=False,
low_bias=True,
normalization="length",
ch_type=None,
layout=None,
cmap="RdBu_r",
agg_fun=None,
dB=False,
n_jobs=1,
... | def plot_epochs_psd_topomap(
epochs,
bands=None,
vmin=None,
vmax=None,
tmin=None,
tmax=None,
proj=False,
bandwidth=None,
adaptive=False,
low_bias=True,
normalization="length",
ch_type=None,
layout=None,
cmap="RdBu_r",
agg_fun=None,
dB=False,
n_jobs=1,
... | https://github.com/mne-tools/mne-python/issues/3063 | n [15]: Traceback (most recent call last):
File "/tsi/doctorants/mainak/anaconda/lib/python2.7/site-packages/matplotlib/backends/backend_qt5.py", line 291, in mouseReleaseEvent
FigureCanvasBase.button_release_event(self, x, y, button)
File "/tsi/doctorants/mainak/anaconda/lib/python2.7/site-packages/matplotlib/backend_... | ValueError |
def plot_psds_topomap(
psds,
freqs,
pos,
agg_fun=None,
vmin=None,
vmax=None,
bands=None,
cmap=None,
dB=True,
normalize=False,
cbar_fmt="%0.3f",
outlines="head",
show=True,
):
"""Plot spatial maps of PSDs
Parameters
----------
psds : np.ndarray of floa... | def plot_psds_topomap(
psds,
freqs,
pos,
agg_fun=None,
vmin=None,
vmax=None,
bands=None,
cmap="RdBu_r",
dB=True,
normalize=False,
cbar_fmt="%0.3f",
outlines="head",
show=True,
):
"""Plot spatial maps of PSDs
Parameters
----------
psds : np.ndarray of ... | https://github.com/mne-tools/mne-python/issues/3063 | n [15]: Traceback (most recent call last):
File "/tsi/doctorants/mainak/anaconda/lib/python2.7/site-packages/matplotlib/backends/backend_qt5.py", line 291, in mouseReleaseEvent
FigureCanvasBase.button_release_event(self, x, y, button)
File "/tsi/doctorants/mainak/anaconda/lib/python2.7/site-packages/matplotlib/backend_... | ValueError |
def _onselect(
eclick,
erelease,
tfr,
pos,
ch_type,
itmin,
itmax,
ifmin,
ifmax,
cmap,
fig,
layout=None,
):
"""Callback called from topomap for drawing average tfr over channels."""
import matplotlib.pyplot as plt
pos, _ = _check_outlines(pos, outlines="head",... | def _onselect(
eclick,
erelease,
tfr,
pos,
ch_type,
itmin,
itmax,
ifmin,
ifmax,
cmap,
fig,
layout=None,
):
"""Callback called from topomap for drawing average tfr over channels."""
import matplotlib.pyplot as plt
pos, _ = _check_outlines(pos, outlines="head",... | https://github.com/mne-tools/mne-python/issues/3063 | n [15]: Traceback (most recent call last):
File "/tsi/doctorants/mainak/anaconda/lib/python2.7/site-packages/matplotlib/backends/backend_qt5.py", line 291, in mouseReleaseEvent
FigureCanvasBase.button_release_event(self, x, y, button)
File "/tsi/doctorants/mainak/anaconda/lib/python2.7/site-packages/matplotlib/backend_... | ValueError |
def _hide_frame(ax):
"""Helper to hide axis frame for topomaps."""
ax.get_yticks()
ax.xaxis.set_ticks([])
ax.yaxis.set_ticks([])
ax.set_frame_on(False)
| def _hide_frame(ax):
"""Helper to hide axis frame for topomaps."""
ax.set_xticks([])
ax.set_yticks([])
ax.set_frame_on(False)
| https://github.com/mne-tools/mne-python/issues/3063 | n [15]: Traceback (most recent call last):
File "/tsi/doctorants/mainak/anaconda/lib/python2.7/site-packages/matplotlib/backends/backend_qt5.py", line 291, in mouseReleaseEvent
FigureCanvasBase.button_release_event(self, x, y, button)
File "/tsi/doctorants/mainak/anaconda/lib/python2.7/site-packages/matplotlib/backend_... | ValueError |
def _topomap_animation(
evoked,
ch_type="mag",
times=None,
frame_rate=None,
butterfly=False,
blit=True,
show=True,
):
"""Make animation of evoked data as topomap timeseries. Animation can be
paused/resumed with left mouse button. Left and right arrow keys can be
used to move back... | def _topomap_animation(
evoked,
ch_type="mag",
times=None,
frame_rate=None,
butterfly=False,
blit=True,
show=True,
):
"""Make animation of evoked data as topomap timeseries. Animation can be
paused/resumed with left mouse button. Left and right arrow keys can be
used to move back... | https://github.com/mne-tools/mne-python/issues/3063 | n [15]: Traceback (most recent call last):
File "/tsi/doctorants/mainak/anaconda/lib/python2.7/site-packages/matplotlib/backends/backend_qt5.py", line 291, in mouseReleaseEvent
FigureCanvasBase.button_release_event(self, x, y, button)
File "/tsi/doctorants/mainak/anaconda/lib/python2.7/site-packages/matplotlib/backend_... | ValueError |
def _fake_click(fig, ax, point, xform="ax", button=1, kind="press"):
"""Helper to fake a click at a relative point within axes."""
if xform == "ax":
x, y = ax.transAxes.transform_point(point)
elif xform == "data":
x, y = ax.transData.transform_point(point)
else:
raise ValueError(... | def _fake_click(fig, ax, point, xform="ax", button=1):
"""Helper to fake a click at a relative point within axes."""
if xform == "ax":
x, y = ax.transAxes.transform_point(point)
elif xform == "data":
x, y = ax.transData.transform_point(point)
else:
raise ValueError("unknown trans... | https://github.com/mne-tools/mne-python/issues/3063 | n [15]: Traceback (most recent call last):
File "/tsi/doctorants/mainak/anaconda/lib/python2.7/site-packages/matplotlib/backends/backend_qt5.py", line 291, in mouseReleaseEvent
FigureCanvasBase.button_release_event(self, x, y, button)
File "/tsi/doctorants/mainak/anaconda/lib/python2.7/site-packages/matplotlib/backend_... | ValueError |
def __init__(self, cbar, mappable):
import matplotlib.pyplot as plt
self.cbar = cbar
self.mappable = mappable
self.press = None
self.cycle = sorted([i for i in dir(plt.cm) if hasattr(getattr(plt.cm, i), "N")])
self.index = self.cycle.index(cbar.get_cmap().name)
self.lims = (self.cbar.norm.v... | def __init__(self, imdata, **kwargs):
"""Display the image for clicking."""
from matplotlib.pyplot import figure
self.coords = []
self.imdata = imdata
self.fig = figure()
self.ax = self.fig.add_subplot(111)
self.ymax = self.imdata.shape[0]
self.xmax = self.imdata.shape[1]
self.im = ... | https://github.com/mne-tools/mne-python/issues/3063 | n [15]: Traceback (most recent call last):
File "/tsi/doctorants/mainak/anaconda/lib/python2.7/site-packages/matplotlib/backends/backend_qt5.py", line 291, in mouseReleaseEvent
FigureCanvasBase.button_release_event(self, x, y, button)
File "/tsi/doctorants/mainak/anaconda/lib/python2.7/site-packages/matplotlib/backend_... | ValueError |
def _plot_corrmap(
data,
subjs,
indices,
ch_type,
ica,
label,
show,
outlines,
layout,
cmap,
contours,
template=True,
):
"""Customized ica.plot_components for corrmap"""
if not template:
title = "Detected components"
if label is not None:
... | def _plot_corrmap(
data,
subjs,
indices,
ch_type,
ica,
label,
show,
outlines,
layout,
cmap,
contours,
template=True,
):
"""Customized ica.plot_components for corrmap"""
if not template:
title = "Detected components"
if label is not None:
... | https://github.com/mne-tools/mne-python/issues/3118 | In [51]: ica.plot_components()
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-51-31baf63ee5ff> in <module>()
----> 1 ica.plot_components()
/Applications/packages/mne-python/mne/preprocessing/ica.py i... | AttributeError |
def _label_clicked(pos, params):
"""Function for plotting independent components on click to label."""
import matplotlib.pyplot as plt
offsets = np.array(params["offsets"]) + params["offsets"][0]
line_idx = np.searchsorted(offsets, pos[1]) + params["ch_start"]
if line_idx >= len(params["picks"]):
... | def _label_clicked(pos, params):
"""Function for plotting independent components on click to label."""
import matplotlib.pyplot as plt
offsets = np.array(params["offsets"]) + params["offsets"][0]
line_idx = np.searchsorted(offsets, pos[1]) + params["ch_start"]
if line_idx >= len(params["picks"]):
... | https://github.com/mne-tools/mne-python/issues/3118 | In [51]: ica.plot_components()
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-51-31baf63ee5ff> in <module>()
----> 1 ica.plot_components()
/Applications/packages/mne-python/mne/preprocessing/ica.py i... | AttributeError |
def _prepare_trellis(n_cells, max_col):
"""Aux function"""
import matplotlib.pyplot as plt
if n_cells == 1:
nrow = ncol = 1
elif n_cells <= max_col:
nrow, ncol = 1, n_cells
else:
nrow, ncol = int(math.ceil(n_cells / float(max_col))), max_col
fig, axes = plt.subplots(nro... | def _prepare_trellis(n_cells, max_col):
"""Aux function"""
import matplotlib.pyplot as plt
if n_cells == 1:
nrow = ncol = 1
elif n_cells <= max_col:
nrow, ncol = 1, n_cells
else:
nrow, ncol = int(math.ceil(n_cells / float(max_col))), max_col
fig, axes = plt.subplots(nro... | https://github.com/mne-tools/mne-python/issues/3118 | In [51]: ica.plot_components()
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-51-31baf63ee5ff> in <module>()
----> 1 ica.plot_components()
/Applications/packages/mne-python/mne/preprocessing/ica.py i... | AttributeError |
def rehint(self):
if self._pixbuf:
height, width = self._resize_max(
original_height=self._pixbuf.get_height(),
original_width=self._pixbuf.get_width(),
max_height=self.native.get_allocated_height(),
max_width=self.native.get_allocated_width(),
)
... | def rehint(self):
height, width = self._resize_max(
original_height=self._pixbuf.get_height(),
original_width=self._pixbuf.get_width(),
max_height=self.native.get_allocated_height(),
max_width=self.native.get_allocated_width(),
)
scaled_pixbuf = self._pixbuf.scale_simple(
... | https://github.com/beeware/toga/issues/1062 | Traceback (most recent call last):
File "/home/samschott/.local/lib/python3.8/site-packages/toga_gtk/app.py", line 93, in gtk_startup
self.interface.startup()
File "/media/psf/Home/Python/toga/examples/imageview/imageview/app.py", line 18, in startup
imageview_from_path = toga.ImageView(image_from_path)
File "/home/sam... | AttributeError |
def winforms_item_selection_changed(self, sender, e):
# update selection interface property
self.interface._selection = self._selected_rows()
if e.IsSelected and self.interface.on_select:
self.interface.on_select(self.interface, row=self.interface.data[e.ItemIndex])
| def winforms_item_selection_changed(self, sender, e):
# update selection interface property
self.interface._selection = self._selected_rows()
if e.IsSelected:
self.interface.on_select(self.interface, row=self.interface.data[e.ItemIndex])
| https://github.com/beeware/toga/issues/994 | Traceback (most recent call last):
File "C:\\Users\\brcan\\Desktop\\snippets\\.venv\\lib\\site-packages\\toga_winforms\\widgets\\table.py", line 74, in _native_item_selection_changed
self.interface.on_select(self.interface, row=self.interface.data[e.ItemIndex])
TypeError : 'NoneType' object is not callable | TypeError |
def __init__(
self,
preprocess_net: nn.Module,
action_shape: Sequence[int],
hidden_sizes: Sequence[int] = (),
max_action: float = 1.0,
device: Union[str, int, torch.device] = "cpu",
preprocess_net_output_dim: Optional[int] = None,
) -> None:
super().__init__()
self.device = device
... | def __init__(
self,
preprocess_net: nn.Module,
action_shape: Sequence[int],
hidden_sizes: Sequence[int] = (),
max_action: float = 1.0,
device: Union[str, int, torch.device] = "cpu",
preprocess_net_output_dim: Optional[int] = None,
) -> None:
super().__init__()
self.device = device
... | https://github.com/thu-ml/tianshou/issues/286 | % python test/discrete/test_sac.py (git)-[master]-
tianshou/data/buffer.py:348: UserWarning: ListReplayBuffer will be replaced in version 0.4.0.
warnings.warn("ListReplayBuffer will be replaced ... | RuntimeError |
def __init__(
self,
preprocess_net: nn.Module,
hidden_sizes: Sequence[int] = (),
device: Union[str, int, torch.device] = "cpu",
preprocess_net_output_dim: Optional[int] = None,
) -> None:
super().__init__()
self.device = device
self.preprocess = preprocess_net
self.output_dim = 1
... | def __init__(
self,
preprocess_net: nn.Module,
hidden_sizes: Sequence[int] = (),
device: Union[str, int, torch.device] = "cpu",
preprocess_net_output_dim: Optional[int] = None,
) -> None:
super().__init__()
self.device = device
self.preprocess = preprocess_net
self.output_dim = 1
... | https://github.com/thu-ml/tianshou/issues/286 | % python test/discrete/test_sac.py (git)-[master]-
tianshou/data/buffer.py:348: UserWarning: ListReplayBuffer will be replaced in version 0.4.0.
warnings.warn("ListReplayBuffer will be replaced ... | RuntimeError |
def __init__(
self,
preprocess_net: nn.Module,
action_shape: Sequence[int],
hidden_sizes: Sequence[int] = (),
max_action: float = 1.0,
device: Union[str, int, torch.device] = "cpu",
unbounded: bool = False,
conditioned_sigma: bool = False,
preprocess_net_output_dim: Optional[int] = N... | def __init__(
self,
preprocess_net: nn.Module,
action_shape: Sequence[int],
hidden_sizes: Sequence[int] = (),
max_action: float = 1.0,
device: Union[str, int, torch.device] = "cpu",
unbounded: bool = False,
conditioned_sigma: bool = False,
preprocess_net_output_dim: Optional[int] = N... | https://github.com/thu-ml/tianshou/issues/286 | % python test/discrete/test_sac.py (git)-[master]-
tianshou/data/buffer.py:348: UserWarning: ListReplayBuffer will be replaced in version 0.4.0.
warnings.warn("ListReplayBuffer will be replaced ... | RuntimeError |
def __init__(
self,
preprocess_net: nn.Module,
action_shape: Sequence[int],
hidden_sizes: Sequence[int] = (),
softmax_output: bool = True,
preprocess_net_output_dim: Optional[int] = None,
device: Union[str, int, torch.device] = "cpu",
) -> None:
super().__init__()
self.device = devic... | def __init__(
self,
preprocess_net: nn.Module,
action_shape: Sequence[int],
hidden_sizes: Sequence[int] = (),
softmax_output: bool = True,
preprocess_net_output_dim: Optional[int] = None,
) -> None:
super().__init__()
self.preprocess = preprocess_net
self.output_dim = np.prod(action_... | https://github.com/thu-ml/tianshou/issues/286 | % python test/discrete/test_sac.py (git)-[master]-
tianshou/data/buffer.py:348: UserWarning: ListReplayBuffer will be replaced in version 0.4.0.
warnings.warn("ListReplayBuffer will be replaced ... | RuntimeError |
def __init__(
self,
preprocess_net: nn.Module,
hidden_sizes: Sequence[int] = (),
last_size: int = 1,
preprocess_net_output_dim: Optional[int] = None,
device: Union[str, int, torch.device] = "cpu",
) -> None:
super().__init__()
self.device = device
self.preprocess = preprocess_net
... | def __init__(
self,
preprocess_net: nn.Module,
hidden_sizes: Sequence[int] = (),
last_size: int = 1,
preprocess_net_output_dim: Optional[int] = None,
) -> None:
super().__init__()
self.preprocess = preprocess_net
self.output_dim = last_size
input_dim = getattr(preprocess_net, "output... | https://github.com/thu-ml/tianshou/issues/286 | % python test/discrete/test_sac.py (git)-[master]-
tianshou/data/buffer.py:348: UserWarning: ListReplayBuffer will be replaced in version 0.4.0.
warnings.warn("ListReplayBuffer will be replaced ... | RuntimeError |
def post_process_fn(
self, batch: Batch, buffer: ReplayBuffer, indice: np.ndarray
) -> None:
"""Post-process the data from the provided replay buffer.
Typical usage is to update the sampling weight in prioritized
experience replay. Used in :meth:`update`.
"""
if hasattr(buffer, "update_weight")... | def post_process_fn(
self, batch: Batch, buffer: ReplayBuffer, indice: np.ndarray
) -> None:
"""Post-process the data from the provided replay buffer.
Typical usage is to update the sampling weight in prioritized
experience replay. Used in :meth:`update`.
"""
if isinstance(buffer, PrioritizedRe... | https://github.com/thu-ml/tianshou/issues/215 | Epoch #1: 0%| | 0/1 [00:21<?, ?it/s]
Traceback (most recent call last):
File "D:/PycharmProjects/Stable-BaselineTrading/Tianshou/TD3.py", line 85, in <module>
save_fn=lambda p: torch.save(p.state_dict(), save_dir))
File "D:\PycharmProjects\Stable-BaselineTrading\Tianshou\Trainer\offpolicy.py", line 110, in o... | TypeError |
def compute_nstep_return(
batch: Batch,
buffer: ReplayBuffer,
indice: np.ndarray,
target_q_fn: Callable[[ReplayBuffer, np.ndarray], torch.Tensor],
gamma: float = 0.99,
n_step: int = 1,
rew_norm: bool = False,
) -> Batch:
r"""Compute n-step return for Q-learning targets.
.. math::
... | def compute_nstep_return(
batch: Batch,
buffer: ReplayBuffer,
indice: np.ndarray,
target_q_fn: Callable[[ReplayBuffer, np.ndarray], torch.Tensor],
gamma: float = 0.99,
n_step: int = 1,
rew_norm: bool = False,
) -> Batch:
r"""Compute n-step return for Q-learning targets.
.. math::
... | https://github.com/thu-ml/tianshou/issues/215 | Epoch #1: 0%| | 0/1 [00:21<?, ?it/s]
Traceback (most recent call last):
File "D:/PycharmProjects/Stable-BaselineTrading/Tianshou/TD3.py", line 85, in <module>
save_fn=lambda p: torch.save(p.state_dict(), save_dir))
File "D:\PycharmProjects\Stable-BaselineTrading\Tianshou\Trainer\offpolicy.py", line 110, in o... | TypeError |
def learn(self, batch: Batch, **kwargs: Any) -> Dict[str, float]:
weight = batch.pop("weight", 1.0)
target_q = batch.returns.flatten()
act = to_torch(batch.act[:, np.newaxis], device=target_q.device, dtype=torch.long)
# critic 1
current_q1 = self.critic1(batch.obs).gather(1, act).flatten()
td1 ... | def learn(self, batch: Batch, **kwargs: Any) -> Dict[str, float]:
weight = batch.pop("weight", 1.0)
target_q = batch.returns.flatten()
act = to_torch(batch.act[:, np.newaxis], device=target_q.device, dtype=torch.long)
# critic 1
current_q1 = self.critic1(batch.obs).gather(1, act).flatten()
td1 ... | https://github.com/thu-ml/tianshou/issues/215 | Epoch #1: 0%| | 0/1 [00:21<?, ?it/s]
Traceback (most recent call last):
File "D:/PycharmProjects/Stable-BaselineTrading/Tianshou/TD3.py", line 85, in <module>
save_fn=lambda p: torch.save(p.state_dict(), save_dir))
File "D:\PycharmProjects\Stable-BaselineTrading\Tianshou\Trainer\offpolicy.py", line 110, in o... | TypeError |
def learn(self, batch, batch_size=None, repeat=1, **kwargs):
self._batch = batch_size
r = batch.returns
if self._rew_norm and r.std() > self.__eps:
batch.returns = (r - r.mean()) / r.std()
losses, actor_losses, vf_losses, ent_losses = [], [], [], []
for _ in range(repeat):
for b in b... | def learn(self, batch, batch_size=None, repeat=1, **kwargs):
self._batch = batch_size
r = batch.returns
if self._rew_norm and r.std() > self.__eps:
batch.returns = (r - r.mean()) / r.std()
losses, actor_losses, vf_losses, ent_losses = [], [], [], []
for _ in range(repeat):
for b in b... | https://github.com/thu-ml/tianshou/issues/46 | python test/discrete/test_a2c_with_il.py --max-grad-norm 1
Epoch #1: 0%| | 0/1000 [00:00<?, ?it/s]
Traceback (most recent... | AttributeError |
def main(conf):
model = load_best_model(conf["train_conf"], conf["exp_dir"])
# Handle device placement
if conf["use_gpu"]:
model.cuda()
model_device = next(model.parameters()).device
test_set = KinectWsjMixDataset(conf["test_dir"], n_src=conf["n_src"], segment=None)
# Used to reorder sou... | def main(conf):
model = load_best_model(conf["train_conf"], conf["exp_dir"])
# Handle device placement
if conf["use_gpu"]:
model.cuda()
model_device = next(model.parameters()).device
test_set = KinectWsjMixDataset(conf["test_dir"], n_src=conf["n_src"], segment=None)
# Used to reorder sou... | https://github.com/asteroid-team/asteroid/issues/139 | Traceback (most recent call last):
File "eval.py", line 118, in <module>
main(arg_dic)
File "eval.py", line 78, in main
conf['sample_rate'])
File ".../lib/python3.7/site-packages/soundfile.py", line 313, in write
channels = data.shape[1]
IndexError: tuple index out of range | IndexError |
def main(conf):
model_path = os.path.join(conf["exp_dir"], "best_model.pth")
model = ConvTasNet.from_pretrained(model_path)
# Handle device placement
if conf["use_gpu"]:
model.cuda()
model_device = next(model.parameters()).device
test_set = LibriMix(
csv_dir=conf["test_dir"],
... | def main(conf):
model_path = os.path.join(conf["exp_dir"], "best_model.pth")
model = ConvTasNet.from_pretrained(model_path)
# Handle device placement
if conf["use_gpu"]:
model.cuda()
model_device = next(model.parameters()).device
test_set = LibriMix(
csv_dir=conf["test_dir"],
... | https://github.com/asteroid-team/asteroid/issues/139 | Traceback (most recent call last):
File "eval.py", line 118, in <module>
main(arg_dic)
File "eval.py", line 78, in main
conf['sample_rate'])
File ".../lib/python3.7/site-packages/soundfile.py", line 313, in write
channels = data.shape[1]
IndexError: tuple index out of range | IndexError |
def main(conf):
model_path = os.path.join(conf["exp_dir"], "best_model.pth")
model = ConvTasNet.from_pretrained(model_path)
# Handle device placement
if conf["use_gpu"]:
model.cuda()
model_device = next(model.parameters()).device
test_set = WhamDataset(
conf["test_dir"],
... | def main(conf):
model_path = os.path.join(conf["exp_dir"], "best_model.pth")
model = ConvTasNet.from_pretrained(model_path)
# Handle device placement
if conf["use_gpu"]:
model.cuda()
model_device = next(model.parameters()).device
test_set = WhamDataset(
conf["test_dir"],
... | https://github.com/asteroid-team/asteroid/issues/139 | Traceback (most recent call last):
File "eval.py", line 118, in <module>
main(arg_dic)
File "eval.py", line 78, in main
conf['sample_rate'])
File ".../lib/python3.7/site-packages/soundfile.py", line 313, in write
channels = data.shape[1]
IndexError: tuple index out of range | IndexError |
def main(conf):
model_path = os.path.join(conf["exp_dir"], "best_model.pth")
model = DPRNNTasNet.from_pretrained(model_path)
# Handle device placement
if conf["use_gpu"]:
model.cuda()
model_device = next(model.parameters()).device
test_set = WhamDataset(
conf["test_dir"],
... | def main(conf):
model_path = os.path.join(conf["exp_dir"], "best_model.pth")
model = DPRNNTasNet.from_pretrained(model_path)
# Handle device placement
if conf["use_gpu"]:
model.cuda()
model_device = next(model.parameters()).device
test_set = WhamDataset(
conf["test_dir"],
... | https://github.com/asteroid-team/asteroid/issues/139 | Traceback (most recent call last):
File "eval.py", line 118, in <module>
main(arg_dic)
File "eval.py", line 78, in main
conf['sample_rate'])
File ".../lib/python3.7/site-packages/soundfile.py", line 313, in write
channels = data.shape[1]
IndexError: tuple index out of range | IndexError |
def main(conf):
model = load_best_model(conf["train_conf"], conf["exp_dir"])
# Handle device placement
if conf["use_gpu"]:
model.cuda()
model_device = next(model.parameters()).device
test_set = WhamDataset(
conf["test_dir"],
conf["task"],
sample_rate=conf["sample_rate... | def main(conf):
model = load_best_model(conf["train_conf"], conf["exp_dir"])
# Handle device placement
if conf["use_gpu"]:
model.cuda()
model_device = next(model.parameters()).device
test_set = WhamDataset(
conf["test_dir"],
conf["task"],
sample_rate=conf["sample_rate... | https://github.com/asteroid-team/asteroid/issues/139 | Traceback (most recent call last):
File "eval.py", line 118, in <module>
main(arg_dic)
File "eval.py", line 78, in main
conf['sample_rate'])
File ".../lib/python3.7/site-packages/soundfile.py", line 313, in write
channels = data.shape[1]
IndexError: tuple index out of range | IndexError |
def main(conf):
model = load_best_separator_if_available(conf["train_conf"])
# Handle device placement
if conf["use_gpu"]:
model.cuda()
model_device = next(model.parameters()).device
test_set = WhamDataset(
conf["test_dir"],
conf["task"],
sample_rate=conf["sample_rate... | def main(conf):
model = load_best_separator_if_available(conf["train_conf"])
# Handle device placement
if conf["use_gpu"]:
model.cuda()
model_device = next(model.parameters()).device
test_set = WhamDataset(
conf["test_dir"],
conf["task"],
sample_rate=conf["sample_rate... | https://github.com/asteroid-team/asteroid/issues/139 | Traceback (most recent call last):
File "eval.py", line 118, in <module>
main(arg_dic)
File "eval.py", line 78, in main
conf['sample_rate'])
File ".../lib/python3.7/site-packages/soundfile.py", line 313, in write
channels = data.shape[1]
IndexError: tuple index out of range | IndexError |
def main(conf):
model = load_best_model(conf["train_conf"], conf["exp_dir"])
# Handle device placement
if conf["use_gpu"]:
model.cuda()
model_device = next(model.parameters()).device
test_set = WhamRDataset(
conf["test_dir"],
conf["task"],
sample_rate=conf["sample_rat... | def main(conf):
model = load_best_model(conf["train_conf"], conf["exp_dir"])
# Handle device placement
if conf["use_gpu"]:
model.cuda()
model_device = next(model.parameters()).device
test_set = WhamRDataset(
conf["test_dir"],
conf["task"],
sample_rate=conf["sample_rat... | https://github.com/asteroid-team/asteroid/issues/139 | Traceback (most recent call last):
File "eval.py", line 118, in <module>
main(arg_dic)
File "eval.py", line 78, in main
conf['sample_rate'])
File ".../lib/python3.7/site-packages/soundfile.py", line 313, in write
channels = data.shape[1]
IndexError: tuple index out of range | IndexError |
def main(conf):
model = load_best_model(conf["train_conf"], conf["exp_dir"])
# Handle device placement
if conf["use_gpu"]:
model.cuda()
model_device = next(model.parameters()).device
test_set = Wsj0mixDataset(conf["test_dir"], n_src=conf["n_src"], segment=None)
# Used to reorder sources ... | def main(conf):
model = load_best_model(conf["train_conf"], conf["exp_dir"])
# Handle device placement
if conf["use_gpu"]:
model.cuda()
model_device = next(model.parameters()).device
test_set = Wsj0mixDataset(conf["test_dir"], n_src=conf["n_src"], segment=None)
# Used to reorder sources ... | https://github.com/asteroid-team/asteroid/issues/139 | Traceback (most recent call last):
File "eval.py", line 118, in <module>
main(arg_dic)
File "eval.py", line 78, in main
conf['sample_rate'])
File ".../lib/python3.7/site-packages/soundfile.py", line 313, in write
channels = data.shape[1]
IndexError: tuple index out of range | IndexError |
def main(conf):
model_path = os.path.join(conf["exp_dir"], "best_model.pth")
model = ConvTasNet.from_pretrained(model_path)
# Handle device placement
if conf["use_gpu"]:
model.cuda()
model_device = next(model.parameterss()).device
test_set = LibriMix(
csv_dir=conf["test_dir"],
... | def main(conf):
model_path = os.path.join(conf["exp_dir"], "best_model.pth")
model = ConvTasNet.from_pretrained(model_path)
# Handle device placement
if conf["use_gpu"]:
model.cuda()
model_device = next(model.parameterss()).device
test_set = LibriMix(
csv_dir=conf["test_dir"],
... | https://github.com/asteroid-team/asteroid/issues/139 | Traceback (most recent call last):
File "eval.py", line 118, in <module>
main(arg_dic)
File "eval.py", line 78, in main
conf['sample_rate'])
File ".../lib/python3.7/site-packages/soundfile.py", line 313, in write
channels = data.shape[1]
IndexError: tuple index out of range | IndexError |
def main(conf):
model_path = os.path.join(conf["exp_dir"], "best_model.pth")
model = ConvTasNet.from_pretrained(model_path)
# Handle device placement
if conf["use_gpu"]:
model.cuda()
model_device = next(model.parameters()).device
test_set = WhamDataset(
conf["test_dir"],
... | def main(conf):
model_path = os.path.join(conf["exp_dir"], "best_model.pth")
model = ConvTasNet.from_pretrained(model_path)
# Handle device placement
if conf["use_gpu"]:
model.cuda()
model_device = next(model.parameters()).device
test_set = WhamDataset(
conf["test_dir"],
... | https://github.com/asteroid-team/asteroid/issues/139 | Traceback (most recent call last):
File "eval.py", line 118, in <module>
main(arg_dic)
File "eval.py", line 78, in main
conf['sample_rate'])
File ".../lib/python3.7/site-packages/soundfile.py", line 313, in write
channels = data.shape[1]
IndexError: tuple index out of range | IndexError |
def main(conf):
model_path = os.path.join(conf["exp_dir"], "best_model.pth")
model = DPRNNTasNet.from_pretrained(model_path)
# Handle device placement
if conf["use_gpu"]:
model.cuda()
model_device = next(model.parameters()).device
test_set = WhamDataset(
conf["test_dir"],
... | def main(conf):
model_path = os.path.join(conf["exp_dir"], "best_model.pth")
model = DPRNNTasNet.from_pretrained(model_path)
# Handle device placement
if conf["use_gpu"]:
model.cuda()
model_device = next(model.parameters()).device
test_set = WhamDataset(
conf["test_dir"],
... | https://github.com/asteroid-team/asteroid/issues/139 | Traceback (most recent call last):
File "eval.py", line 118, in <module>
main(arg_dic)
File "eval.py", line 78, in main
conf['sample_rate'])
File ".../lib/python3.7/site-packages/soundfile.py", line 313, in write
channels = data.shape[1]
IndexError: tuple index out of range | IndexError |
def main(conf):
model = load_best_model(conf["train_conf"], conf["exp_dir"])
# Handle device placement
if conf["use_gpu"]:
model.cuda()
model_device = next(model.parameters()).device
test_set = WhamDataset(
conf["test_dir"],
conf["task"],
sample_rate=conf["sample_rate... | def main(conf):
model = load_best_model(conf["train_conf"], conf["exp_dir"])
# Handle device placement
if conf["use_gpu"]:
model.cuda()
model_device = next(model.parameters()).device
test_set = WhamDataset(
conf["test_dir"],
conf["task"],
sample_rate=conf["sample_rate... | https://github.com/asteroid-team/asteroid/issues/139 | Traceback (most recent call last):
File "eval.py", line 118, in <module>
main(arg_dic)
File "eval.py", line 78, in main
conf['sample_rate'])
File ".../lib/python3.7/site-packages/soundfile.py", line 313, in write
channels = data.shape[1]
IndexError: tuple index out of range | IndexError |
def main(conf):
model = load_best_separator_if_available(conf["train_conf"])
# Handle device placement
if conf["use_gpu"]:
model.cuda()
model_device = next(model.parameters()).device
test_set = WhamDataset(
conf["test_dir"],
conf["task"],
sample_rate=conf["sample_rate... | def main(conf):
model = load_best_separator_if_available(conf["train_conf"])
# Handle device placement
if conf["use_gpu"]:
model.cuda()
model_device = next(model.parameters()).device
test_set = WhamDataset(
conf["test_dir"],
conf["task"],
sample_rate=conf["sample_rate... | https://github.com/asteroid-team/asteroid/issues/139 | Traceback (most recent call last):
File "eval.py", line 118, in <module>
main(arg_dic)
File "eval.py", line 78, in main
conf['sample_rate'])
File ".../lib/python3.7/site-packages/soundfile.py", line 313, in write
channels = data.shape[1]
IndexError: tuple index out of range | IndexError |
def main(conf):
model = load_best_model(conf["train_conf"], conf["exp_dir"])
# Handle device placement
if conf["use_gpu"]:
model.cuda()
model_device = next(model.parameters()).device
test_set = WhamRDataset(
conf["test_dir"],
conf["task"],
sample_rate=conf["sample_rat... | def main(conf):
model = load_best_model(conf["train_conf"], conf["exp_dir"])
# Handle device placement
if conf["use_gpu"]:
model.cuda()
model_device = next(model.parameters()).device
test_set = WhamRDataset(
conf["test_dir"],
conf["task"],
sample_rate=conf["sample_rat... | https://github.com/asteroid-team/asteroid/issues/139 | Traceback (most recent call last):
File "eval.py", line 118, in <module>
main(arg_dic)
File "eval.py", line 78, in main
conf['sample_rate'])
File ".../lib/python3.7/site-packages/soundfile.py", line 313, in write
channels = data.shape[1]
IndexError: tuple index out of range | IndexError |
def get_norm_adj_mat(self):
r"""Get the normalized interaction matrix of users and items.
Construct the square matrix from the training data and normalize it
using the laplace matrix.
.. math::
A_{hat} = D^{-0.5} \times A \times D^{-0.5}
Returns:
Sparse tensor of the normalized in... | def get_norm_adj_mat(self):
r"""Get the normalized interaction matrix of users and items.
Construct the square matrix from the training data and normalize it
using the laplace matrix.
.. math::
A_{hat} = D^{-0.5} \times A \times D^{-0.5}
Returns:
Sparse tensor of the normalized in... | https://github.com/RUCAIBox/RecBole/issues/519 | 20 Nov 23:58 INFO General Hyper Parameters:
gpu_id=0
use_gpu=True
seed=2020 [76/1356]
state=INFO
reproducibility=Tru... | MemoryError |
def get_laplacian_matrix(self):
r"""Get the laplacian matrix of users and items.
.. math::
L = I - D^{-1} \times A
Returns:
Sparse tensor of the laplacian matrix.
"""
# build adj matrix
A = sp.dok_matrix(
(self.n_users + self.n_items, self.n_users + self.n_items), dtype... | def get_laplacian_matrix(self):
r"""Get the laplacian matrix of users and items.
.. math::
L = I - D^{-1} \times A
Returns:
Sparse tensor of the laplacian matrix.
"""
# build adj matrix
A = sp.dok_matrix(
(self.n_users + self.n_items, self.n_users + self.n_items), dtype... | https://github.com/RUCAIBox/RecBole/issues/519 | 20 Nov 23:58 INFO General Hyper Parameters:
gpu_id=0
use_gpu=True
seed=2020 [76/1356]
state=INFO
reproducibility=Tru... | MemoryError |
def __radd__(self, X):
"""Y.__radd__(X) <==> Y+X"""
return add(self, X)
| def __radd__(self, X):
"""Y.__radd__(X) <==> Y+X"""
return add(X, self)
| https://github.com/jonathf/chaospy/issues/25 | import chaospy as cp
cp.Uniform() + 1
<chaospy.dist.operators.Add at 0x7fb40405e400>
# but this fails
1 + cp.Uniform()
Traceback (most recent call last):
File "chaospy/src/chaospy/dist/backend.py", line 372, in __radd__
return add(X, self)
File "chaospy/src/chaospy/dist/operators.py", line 134, in add
return Add(A=A, B... | TypeError |
def __rmul__(self, X):
"""Y.__rmul__(X) <==> Y*X"""
return mul(self, X)
| def __rmul__(self, X):
"""Y.__rmul__(X) <==> Y*X"""
return mul(X, self)
| https://github.com/jonathf/chaospy/issues/25 | import chaospy as cp
cp.Uniform() + 1
<chaospy.dist.operators.Add at 0x7fb40405e400>
# but this fails
1 + cp.Uniform()
Traceback (most recent call last):
File "chaospy/src/chaospy/dist/backend.py", line 372, in __radd__
return add(X, self)
File "chaospy/src/chaospy/dist/operators.py", line 134, in add
return Add(A=A, B... | TypeError |
def run(receivers, args, find_receiver, _ignore):
assert receivers
if args.receiver:
receiver_name = args.receiver.lower()
receiver = find_receiver(receivers, receiver_name)
if not receiver:
raise Exception("no receiver found matching '%s'" % receiver_name)
else:
... | def run(receivers, args, find_receiver, _ignore):
assert receivers
if args.receiver:
receiver_name = args.receiver.lower()
receiver = find_receiver(receiver_name)
if not receiver:
raise Exception("no receiver found matching '%s'" % receiver_name)
else:
receiver =... | https://github.com/pwr-Solaar/Solaar/issues/1083 | $ solaar pair xxxxxxxx
solaar: error: Traceback (most recent call last):
File "/usr/lib/python3.9/site-packages/solaar/cli/__init__.py", line 202, in run
m.run(c, args, _find_receiver, _find_device)
File "/usr/lib/python3.9/site-packages/solaar/cli/pair.py", line 35, in run
receiver = find_receiver(receiver_name)
TypeE... | TypeError |
def _create_parser():
parser = _argparse.ArgumentParser(
prog=NAME.lower(),
add_help=False,
epilog="For details on individual actions, run `%s <action> --help`."
% NAME.lower(),
)
subparsers = parser.add_subparsers(
title="actions", help="optional action to perform"
... | def _create_parser():
parser = _argparse.ArgumentParser(
prog=NAME.lower(),
add_help=False,
epilog="For details on individual actions, run `%s <action> --help`."
% NAME.lower(),
)
subparsers = parser.add_subparsers(
title="actions", help="optional action to perform"
... | https://github.com/pwr-Solaar/Solaar/issues/1083 | $ solaar pair xxxxxxxx
solaar: error: Traceback (most recent call last):
File "/usr/lib/python3.9/site-packages/solaar/cli/__init__.py", line 202, in run
m.run(c, args, _find_receiver, _find_device)
File "/usr/lib/python3.9/site-packages/solaar/cli/pair.py", line 35, in run
receiver = find_receiver(receiver_name)
TypeE... | TypeError |
def process_notification(device, status, notification, feature):
if not x11:
return
global keys_down, key_down
key_down = None
# need to keep track of keys that are down to find a new key down
if feature == _F.REPROG_CONTROLS_V4 and notification.address == 0x00:
new_keys_down = _unpa... | def process_notification(device, status, notification, feature):
global keys_down, key_down
key_down = None
# need to keep track of keys that are down to find a new key down
if feature == _F.REPROG_CONTROLS_V4 and notification.address == 0x00:
new_keys_down = _unpack("!4H", notification.data[:8]... | https://github.com/pwr-Solaar/Solaar/issues/1006 | Nov 19 16:49:15 xxx solaar.desktop[4106058]: * Please make sure that you have an X server running, and that the DISPLAY environment variable is set correctly
Nov 19 16:49:15 xxx solaar.desktop[4106058]: Try one of the following resolutions:
Nov 19 16:49:15 xxx solaar.desktop[4106058]: ImportError: this platform is not... | ImportError |
def run(receivers, args, find_receiver, _ignore):
assert receivers
if args.receiver:
receiver_name = args.receiver.lower()
receiver = find_receiver(receiver_name)
if not receiver:
raise Exception("no receiver found matching '%s'" % receiver_name)
else:
receiver =... | def run(receivers, args, find_receiver, _ignore):
assert receivers
if args.receiver:
receiver_name = args.receiver.lower()
receiver = find_receiver(receiver_name)
if not receiver:
raise Exception("no receiver found matching '%s'" % receiver_name)
else:
receiver =... | https://github.com/pwr-Solaar/Solaar/issues/958 | solaar: error: Traceback (most recent call last):
File "/usr/share/solaar/lib/solaar/cli/__init__.py", line 175, in run
m.run(c, args, _find_receiver, _find_device)
File "/usr/share/solaar/lib/solaar/cli/pair.py", line 79, in run
receiver.handle.notifications_hook(n)
File "/usr/share/solaar/lib/solaar/cli/pair.py", lin... | IndexError |
def notifications_hook(self, n):
nonlocal known_devices
assert n
if n.devnumber == 0xFF:
_notifications.process(receiver, n)
elif n.sub_id == 0x41 and len(n.data) == _base._SHORT_MESSAGE_SIZE - 4:
kd, known_devices = (
known_devices,
None,
) # only proces... | def notifications_hook(self, n):
nonlocal known_devices
assert n
if n.devnumber == 0xFF:
_notifications.process(receiver, n)
elif n.sub_id == 0x41: # allow for other protocols! (was and n.address == 0x04)
kd, known_devices = (
known_devices,
None,
) # on... | https://github.com/pwr-Solaar/Solaar/issues/958 | solaar: error: Traceback (most recent call last):
File "/usr/share/solaar/lib/solaar/cli/__init__.py", line 175, in run
m.run(c, args, _find_receiver, _find_device)
File "/usr/share/solaar/lib/solaar/cli/pair.py", line 79, in run
receiver.handle.notifications_hook(n)
File "/usr/share/solaar/lib/solaar/cli/pair.py", lin... | IndexError |
def _notifications_handler(self, n):
assert self.receiver
# if _log.isEnabledFor(_DEBUG):
# _log.debug("%s: handling %s", self.receiver, n)
if n.devnumber == 0xFF:
# a receiver notification
_notifications.process(self.receiver, n)
return
# a device notification
if no... | def _notifications_handler(self, n):
assert self.receiver
# if _log.isEnabledFor(_DEBUG):
# _log.debug("%s: handling %s", self.receiver, n)
if n.devnumber == 0xFF:
# a receiver notification
_notifications.process(self.receiver, n)
return
# a device notification
if no... | https://github.com/pwr-Solaar/Solaar/issues/876 | idefix Solaar> bin/solaar -dd
17:57:28,196 INFO [MainThread] root: language en_US (UTF-8), translations path /home/local/SoftwareDownloads/Solaar/share/locale
17:57:28,251 DEBUG [MainThread] solaar.ui.tray: using AppIndicator3
17:57:28,263 INFO [MainThread] solaar.upower: connected to system dbus, watching f... | AssertionError |
def update(device, need_popup=False):
if _window is None:
return
assert device is not None
if need_popup:
popup()
selected_device_id = _find_selected_device_id()
if device.kind is None:
# receiver
is_alive = bool(device)
item = _receiver_row(device.path, d... | def update(device, need_popup=False):
if _window is None:
return
assert device is not None
if need_popup:
popup()
selected_device_id = _find_selected_device_id()
if device.kind is None:
# receiver
is_alive = bool(device)
item = _receiver_row(device.path, d... | https://github.com/pwr-Solaar/Solaar/issues/651 | peter.patel@2030008406L:~/Samsung/github/Solaar$ bin/solaar
(solaar:5523): Gdk-CRITICAL **: 09:58:43.893:
gdk_window_thaw_toplevel_updates: assertion 'window-
update_and_descendants_freeze_count > 0' failed
Traceback (most recent call last):
File "/home/peter.patel/Samsung/github/Solaar/lib/solaar/ui/__init__.py", lin... | AttributeError |
def __call__(self, device):
assert not hasattr(self, "_value")
# combined keyboards and touchpads (e.g., K400) break this assertion so don't use it
# assert self.device_kind is None or device.kind in self.device_kind
p = device.protocol
if p == 1.0:
# HID++ 1.0 devices do not support feature... | def __call__(self, device):
assert not hasattr(self, "_value")
assert self.device_kind is None or device.kind in self.device_kind
p = device.protocol
if p == 1.0:
# HID++ 1.0 devices do not support features
assert self._rw.kind == RegisterRW.kind
elif p >= 2.0:
# HID++ 2.0 de... | https://github.com/pwr-Solaar/Solaar/issues/266 | Traceback (most recent call last):
File "/home/user/upstream/hw/Solaar/lib/logitech_receiver/listener.py", line 185, in run
self._notifications_callback(n)
File "/home/user/upstream/hw/Solaar/lib/solaar/listener.py", line 207, in _notifications_handler
_notifications.process(dev, n)
File "/home/user/upstream/hw/Solaar/... | AssertionError |
def __init__(self, **kwargs):
def _readable_name(n):
if not isinstance(n, str) and not isinstance(n, unicode):
raise TypeError("expected string, got " + type(n))
if n == n.upper():
n = n.lstrip("_")
return n.replace("__", "/").replace("_", " ")
values = {k: Named... | def __init__(self, **kwargs):
def _readable_name(n):
if not isinstance(n, str) and not isinstance(n, unicode):
raise TypeError("expected string, got " + type(n))
if n == n.upper():
n.lstrip("_")
return n.replace("__", "/").replace("_", " ")
values = {k: NamedInt(... | https://github.com/pwr-Solaar/Solaar/issues/10 | Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 552, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 505, in run
self.__target(*self.__args, **self.__kwargs)
File "/opt/extras.ubuntu.com/solaar/share/solaar/lib/solaar/ui/config_panel.py", line 36, in _process... | ValueError |
def _readable_name(n):
if not isinstance(n, str) and not isinstance(n, unicode):
raise TypeError("expected string, got " + type(n))
if n == n.upper():
n = n.lstrip("_")
return n.replace("__", "/").replace("_", " ")
| def _readable_name(n):
if not isinstance(n, str) and not isinstance(n, unicode):
raise TypeError("expected string, got " + type(n))
if n == n.upper():
n.lstrip("_")
return n.replace("__", "/").replace("_", " ")
| https://github.com/pwr-Solaar/Solaar/issues/10 | Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 552, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 505, in run
self.__target(*self.__args, **self.__kwargs)
File "/opt/extras.ubuntu.com/solaar/share/solaar/lib/solaar/ui/config_panel.py", line 36, in _process... | ValueError |
def index_pass(self):
def safe_update_index(path):
chunk_id = path.rsplit("/", 1)[-1]
if len(chunk_id) != STRLEN_CHUNKID:
return
for c in chunk_id:
if c not in hexdigits:
return
try:
self.update_index(path)
self.successe... | def index_pass(self):
def safe_update_index(path):
chunk_id = path.rsplit("/", 1)[-1]
if len(chunk_id) != STRLEN_CHUNKID:
return
for c in chunk_id:
if c not in hexdigits:
return
try:
self.update_index(path)
self.successe... | https://github.com/open-io/oio-sds/issues/1512 | 11573 7F920C7A0730 log ERROR ERROR while updating /var/lib/oio/sds/OPENIO/rawx-0/7BD/7BDE49669C6616A0656097C6544923F1BB0EE711A23D9D18B7D23071997AB9F7
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/oio/blob/indexer.py", line 65, in safe_update_index
self.update_index(path)
File "/usr/lib/pytho... | VolumeException |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.