Comments (4)
Could you send the full traceback ?
from pactools.
Sorry, here it comes
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-71-b6c0e5191975> in <module>
40 continue
41 spec, xlim, sigdriv, sigdriv_imag = dar._amplitude_frequency()
---> 42 estimator.save(raw_path / (name + '.hdf5'))
43 action_group = output_group.require_group(name)
44 action_group.attrs = {
~/.virtualenvs/expipe/lib/python3.6/site-packages/pactools/comodulogram.py in save(self, fname, overwrite)
589 save_vars['progress_bar'] = True
590 write_hdf5(fname, save_vars, title='comodulogram', overwrite=overwrite,
--> 591 slash='replace')
592
593
~/.virtualenvs/expipe/lib/python3.6/site-packages/mne/externals/h5io/_h5io.py in write_hdf5(fname, data, overwrite, compression, title, slash)
105 cleanup_data = []
106 _triage_write(title, data, fid, comp_kw, str(type(data)),
--> 107 cleanup_data=cleanup_data, slash=slash, title=title)
108
109 # Will not be empty if any extra data to be written
~/.virtualenvs/expipe/lib/python3.6/site-packages/mne/externals/h5io/_h5io.py in _triage_write(key, value, root, comp_kw, where, cleanup_data, slash, title)
136 _triage_write(
137 'key_{0}'.format(key), sub_value, sub_root, comp_kw,
--> 138 where + '["%s"]' % key, cleanup_data=cleanup_data, slash=slash)
139 elif isinstance(value, (list, tuple)):
140 title = 'list' if isinstance(value, list) else 'tuple'
~/.virtualenvs/expipe/lib/python3.6/site-packages/mne/externals/h5io/_h5io.py in _triage_write(key, value, root, comp_kw, where, cleanup_data, slash, title)
206
207 err_str = 'unsupported type %s (in %s)' % (type(value), where)
--> 208 raise TypeError(err_str)
209
210 ##############################################################################
TypeError: unsupported type <class 'pactools.dar_model.dar.DAR'> (in <class 'dict'>["method"])
from pactools.
Oh I see, this is when you are saving the comodulogram.
We cannot currently save a DAR object with h5io, not sure what is the best workaround.
Maybe we should just not save the DAR object in this case, what do you think?
from pactools.
Saving the DAR object would be a good idea, or extract all parameters that is necessary in order to replicate the analysis.
from pactools.
Related Issues (20)
- Tort Phase Bins HOT 2
- Deprecation warning HOT 2
- Implement cross-bispectrum HOT 2
- singular matrices HOT 1
- hard to reach raw results HOT 1
- Band pass in delay estimator HOT 1
- Masking clarification HOT 1
- [General usage question-Feature Engineering]How to obtain unique PAC values for a group of patients in the 1020 electrode system? HOT 3
- [ENH] Add an event-related PAC simulation HOT 2
- Using pactools for resting state EEG HOT 1
- [ENH] Use simulated data instead of MNE sample data for I/O demo HOT 1
- [BUG] Tort `amplitude_dist` index error
- (Question) Interpreting phase HOT 2
- [ENH] Add a decimate keyword argument to Comodulogram HOT 2
- [BUG] Save estimator hdf5 with method as DAR HOT 2
- Question about default filter design HOT 2
- Calculation of PAC with TORT method HOT 30
- binary incompatibility warning HOT 2
- Where did randomisation procedure happen and what the purpose of it? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pactools.