Comments (4)
GitMate.io thinks a possibly related issue is #7 (Add .rec loading capability).
from visbrain.
@raphaelvallat I think this a part of your code, can you take a look at it?
from visbrain.
Hi @skjerns
Yes, I agree that the current implementation is not adequate for the two situations that you describe. Plus, I also think that the ptp might sometimes be biased in cases of very strong artefacts. As a more robust check, we could use the interquartile range (scipy.stats.iqr
) and check for each individual channel:
# Assume that the inter-quartile amplitude of EEG data is ~50 uV
from scipy.stats import iqr
iqr_data = iqr(data, axis=1)
for idx_chan, iqr_chan in enumerate(iqr_data):
if iqr_chan < 1:
mult_fact = np.floor(np.log10(50 / iqr_chan))
warn("Wrong channel data amplitude. Multiplying data amplitude by 10^%i" % mult_fact)
data[idx_chan, :] *= 10 ** mult_fact
If you have any ideas for a better check, please feel free to create a PR!
Thanks
from visbrain.
I think this is a good solution for now, and should cover most cases.
I suspect that there might be some problems however in case of non-EEG data (like Heartrate or temperature), but don't have a sample file right now to check it.
PR is created #33
from visbrain.
Related Issues (20)
- Source analysis of SEEG HOT 2
- repeated labels in AAL ROI HOT 1
- Documentation (visbrain.org) HOT 3
- visbrain Sleep crashes when running a 2nd time.
- [ENH] Speed up `_index_to_events` and `_events_to_index`
- VolumeObj not working but no explicit error HOT 3
- URLError: <urlopen error [WinError 10054] The current connection was forcibly disconnected by the remote host.> HOT 1
- Extracting parcellates midpoints
- Controlling transparency
- Colormap in topoplot HOT 1
- Import error related to PyQt5
- Brain() function error
- Channel markers in TopoPlot
- interactive annotations on graph HOT 9
- Error in: /.local/lib/python3.10/site-packages/visbrain/gui/sleep/interface/ui_elements/ui_settings.py, line 167, in _fcn_slider_settings self._SlVal.setMinimum(self._time.min()) TypeError: setMinimum(self, a0: int): argument 1 has unexpected type 'numpy.float32' HOT 2
- Imageobj Failed to read jpg
- documentation website is down HOT 4
- Visualization problem using visbrain HOT 3
- vector_to_opacity - dyn not working as expected or not intuitive
- Specify visbrain_data manually
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 visbrain.