Giter Site home page Giter Site logo

dreamento / dreamento Goto Github PK

View Code? Open in Web Editor NEW
68.0 8.0 4.0 439.73 MB

Dreamento (DReam ENgenieering TOolbox): a Python-based software for dream engineering while monitoring/analyzing real-time EEG data.

License: MIT License

Python 97.78% Jupyter Notebook 2.20% Batchfile 0.02%
automatic-sleep-analysis dream eeg-analysis lucid-dreaming python real-time sleep sleep-analysis dream-engineering

dreamento's Issues

No response| UI layout confusion

Hello, very lucky to find this project but I have some problems, there is no data response, the layout is also messy, I am using the zmax for lucidming version, what am I missing? Thank you
image

Not able to read data from socket

I am trying to set up dreamento for my zMax. I have been following the documentation and everything works fine up to the point i click on record.
The output of mainwindow.py is as follows:

<pyqtgraph.widgets.PlotWidget.PlotWidget object at 0x0000017134D3EEE8>
True
True
actual start time 1716906203.9074514
True
New HB created after 60 epochs
1 start
[] data
[] data
[] data

after which the program just stops. The timer on the record button is stuck at 1s aswell and the GUI is non responsive.

After further investigation i found that the first message received after the initial 'HELLO\n' contains the following:

HDServer v1.2.8223.37685.1343038
_DONGLE_INSERTED
RFCH 0 False

The next time

chunk = self.sock.recv(1)

is called in

RecordThread.run() -> ZmaxHeadband.read() ->ZmaxSocket.receive_oneLineBuffer()

the program freezes.

After using pythons select.select() I found that before sending the initial 'HELLO\n' message the socket allows to send but not to read data. After the 'HELLO\n' it allows to send and read, and after reading the first time it only allows sending again.

Regarding the setup, i have made sure that the HDServer and HDRecorder are running. The server shows in its output the connection messages and the HDRecorder outputs a signal

[- 24-36-28 16:36:33] HDServer v1.2.8223.37685
[- 24-36-28 16:36:33] Timezone: (UTC+01:00) Amsterdam, Berlin, Bern, Rom, Stockholm, Wien
[- 24-36-28 16:36:33] Silicon Version: 2
[- 24-36-28 16:36:33] TemperX logging module detected. Verifying sensor presence.
[- 24-36-28 16:36:33] TemperX sensor not plugged in and will not be used.
[- 24-36-28 16:36:33] Server started
[- 24-36-28 16:36:33] Serving ZMax data on port 8000
[- 24-36-28 16:36:33] Press ESC to stop the server and exit. Run with -h option for parameters.
[- 24-36-28 16:36:33] 16:36:33 - Client connected.
[- 24-36-28 16:36:33] 1 client(s) now connected.
[- 24-36-28 16:36:55] 16:36:55 - Client connected.
[- 24-36-28 16:36:55] 2 client(s) now connected.

The log above is acquired after starting dreamento and clicking connect but before clicking record.
The following is the HDServer output after I click on record:

16:38:25 - Client connected.
[- 24-38-28 16:38:25] 3 client(s) now connected.
[- 24-38-28 16:38:25] 16:38:25 - Client connected.
[- 24-38-28 16:38:25] 4 client(s) now connected.
[! 24-38-28 16:38:25] SocketException while receiving, marked for delete [ConnectionAborted].
[- 24-38-28 16:38:25] 16:38:25 - Removed client in deleteList.
[- 24-38-28 16:38:25] 3 client(s) now connected.

My machine:

  • cpu: AMD Ryzen 5 3600
  • gfx: NVIDIA GTX 970
  • Ram: 32gb corsair cmk16gx4m2b3200c16

Have you ever experienced that behaviour?

Thanks in advance and best regards,
David

"ResolvePackageNotFound:" when attempting "conda env create..."

I'm attempting to get Dreamento offline running on an M1 Mac (Anaconda is already installed).
I've cloned the repo, cd'd to the directory, and in terminal run conda env create --name offlinedreamento --file offlinedreamento.yml

But I get the error below and can't find any way around it. The suggested solution in this Stack Overflow thread —adding -free to the to the channels section of envrinomnet.yml— was not successful.

Solving environment: failed

ResolvePackageNotFound:
  - chardet==4.0.0=py39haa95532_1003
  - brotlipy==0.7.0=py39h2bbff1b_1003
  - pytz==2022.1=py39haa95532_0
  - colorama==0.4.5=py39haa95532_0
  - zlib==1.2.12=h8cc25b3_2
  - docutils==0.18.1=py39haa95532_3
  - mypy_extensions==0.4.3=py39haa95532_1
  - numpydoc==1.4.0=py39haa95532_0
  - psutil==5.9.0=py39h2bbff1b_0
  - typed-ast==1.4.3=py39h2bbff1b_1
  - pluggy==1.0.0=py39haa95532_1
  - zipp==3.8.0=py39haa95532_0
  - pyqt==5.9.2=py39hd77b12b_6
  - pyyaml==6.0=py39h2bbff1b_1
  - icu==58.2=ha925a31_3
  - click==8.0.4=py39haa95532_0
  - pyzmq==23.2.0=py39hd77b12b_0
  - lazy-object-proxy==1.6.0=py39h2bbff1b_0
  - keyring==23.4.0=py39haa95532_0
  - pynacl==1.4.0=py39hbd8134f_1
  - yaml==0.2.5=he774522_0
  - ca-certificates==2022.4.26=haa95532_0
  - debugpy==1.5.1=py39hd77b12b_0
  - libspatialindex==1.9.3=h6c2663c_0
  - pip==22.1.2=py39haa95532_0
  - beautifulsoup4==4.11.1=py39haa95532_0
  - jupyter_core==4.10.0=py39haa95532_0
  - ujson==5.4.0=py39hd77b12b_0
  - qt==5.9.7=vc14h73c81de_0
  - zeromq==4.3.4=hd77b12b_0
  - sip==4.19.13=py39hd77b12b_0
  - spyder==5.1.5=py39haa95532_1
  - inflection==0.5.1=py39haa95532_0
  - pyrsistent==0.18.0=py39h196d8e1_0
  - certifi==2022.6.15=py39haa95532_0
  - testpath==0.6.0=py39haa95532_0
  - watchdog==2.1.6=py39haa95532_0
  - jedi==0.18.1=py39haa95532_1
  - libsodium==1.0.18=h62dcd97_0
  - vc==14.2=h21ff451_1
  - wincertstore==0.2=py39haa95532_2
  - mistune==0.8.4=py39h2bbff1b_1000
  - nest-asyncio==1.5.5=py39haa95532_0
  - python==3.9.12=h6244533_0
  - qtconsole==5.3.1=py39haa95532_0
  - nbformat==5.3.0=py39haa95532_0
  - ipykernel==6.9.1=py39haa95532_0
  - vs2015_runtime==14.27.29016=h5e58377_2
  - cffi==1.15.0=py39h2bbff1b_1
  - setuptools==61.2.0=py39haa95532_0
  - spyder-kernels==2.1.3=py39haa95532_0
  - jsonschema==4.4.0=py39haa95532_0
  - openssl==1.1.1q=h2bbff1b_0
  - bcrypt==3.2.0=py39h196d8e1_0
  - markupsafe==2.1.1=py39h2bbff1b_0
  - pylint==2.9.6=py39haa95532_1
  - astroid==2.6.6=py39haa95532_0
  - entrypoints==0.4=py39haa95532_0
  - ipython==8.4.0=py39haa95532_0
  - nbclient==0.5.13=py39haa95532_0
  - webencodings==0.5.1=py39haa95532_1
  - sqlite==3.38.5=h2bbff1b_0
  - requests==2.28.1=py39haa95532_0
  - nbconvert==6.4.4=py39haa95532_0
  - rtree==0.9.7=py39h2eaa2aa_1
  - jpeg==9e=h2bbff1b_0
  - importlib-metadata==4.11.3=py39haa95532_0
  - win_inet_pton==1.1.0=py39haa95532_0
  - cryptography==37.0.1=py39h21b164f_0
  - libpng==1.6.37=h2a8f88b_0
  - sphinx==5.0.2=py39haa95532_0
  - tornado==6.1=py39h2bbff1b_0
  - mccabe==0.6.1=py39haa95532_1
  - urllib3==1.26.9=py39haa95532_0
  - imagesize==1.4.1=py39haa95532_0
  - regex==2022.3.15=py39h2bbff1b_0
  - pywin32-ctypes==0.2.0=py39haa95532_1000
  - pywin32==302=py39h2bbff1b_2
  - wrapt==1.12.1=py39h196d8e1_1
  - pysocks==1.7.1=py39haa95532_0

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.