Giter VIP home page Giter VIP logo

spacetop_biopac's Introduction

Hi there ๐Ÿ‘‹

spacetop_biopac's People

Contributors

isabeln23 avatar jungheejung avatar

Watchers

 avatar  avatar

spacetop_biopac's Issues

sub-0070_ses-04_run-01

In [14]:         eda_epochs_BL = nk.epochs_create(eda_processed,
    ...:                                         event_stimuli,
    ...:                                         sampling_rate=spacetop_samplingrate,
    ...:                                         epochs_start=0,
    ...:                                         epochs_end=9,
    ...:                                         baseline_correction=True)
---------------------------------------------------------------------------
ZeroDivisionError                         Traceback (most recent call last)
Input In [14], in <cell line: 1>()
----> 1 eda_epochs_BL = nk.epochs_create(eda_processed, 
      2                                 event_stimuli, 
      3                                 sampling_rate=spacetop_samplingrate, 
      4                                 epochs_start=0, 
      5                                 epochs_end=9,
      6                                 baseline_correction=True)

File ~/.conda/envs/biopac/lib/python3.9/site-packages/neurokit2/epochs/epochs_create.py:147, in epochs_create(data, events, sampling_rate, epochs_start, epochs_end, event_labels, event_conditions, baseline_correction)
    144         events["duration"] = list(np.diff(events["onset"])) + [len(data) - 1]
    146     epochs_end = [i / sampling_rate for i in events["duration"]]
--> 147 parameters = listify(
    148     onset=event_onsets,
    149     label=event_labels,
    150     condition=event_conditions,
    151     start=epochs_start,
    152     end=epochs_end,
    153 )
    155 # Find the maximum numbers of samples in an epoch
    156 parameters["duration"] = list(np.array(parameters["end"]) - np.array(parameters["start"]))

File ~/.conda/envs/biopac/lib/python3.9/site-packages/neurokit2/misc/listify.py:31, in listify(**kwargs)
     29 for key, value in args.items():
     30     if isinstance(value, list):
---> 31         args[key] = _multiply_list(value, maxi)
     32     else:
     33         args[key] = _multiply_list([value], maxi)

File ~/.conda/envs/biopac/lib/python3.9/site-packages/neurokit2/misc/listify.py:39, in _multiply_list(lst, length)
     38 def _multiply_list(lst, length):
---> 39     q, r = divmod(length, len(lst))
     40     return q * lst + lst[:r]

ZeroDivisionError: integer division or modulo by zero

sub-0077_ses-01_run-05

In [14]:         eda_epochs_BL = nk.epochs_create(eda_processed,
    ...:                                         event_stimuli,
    ...:                                         sampling_rate=spacetop_samplingrate,
    ...:                                         epochs_start=0,
    ...:                                         epochs_end=9,
    ...:                                         baseline_correction=True)
---------------------------------------------------------------------------
ZeroDivisionError                         Traceback (most recent call last)
Input In [14], in <cell line: 1>()
----> 1 eda_epochs_BL = nk.epochs_create(eda_processed, 
      2                                 event_stimuli, 
      3                                 sampling_rate=spacetop_samplingrate, 
      4                                 epochs_start=0, 
      5                                 epochs_end=9,
      6                                 baseline_correction=True)

File ~/.conda/envs/biopac/lib/python3.9/site-packages/neurokit2/epochs/epochs_create.py:147, in epochs_create(data, events, sampling_rate, epochs_start, epochs_end, event_labels, event_conditions, baseline_correction)
    144         events["duration"] = list(np.diff(events["onset"])) + [len(data) - 1]
    146     epochs_end = [i / sampling_rate for i in events["duration"]]
--> 147 parameters = listify(
    148     onset=event_onsets,
    149     label=event_labels,
    150     condition=event_conditions,
    151     start=epochs_start,
    152     end=epochs_end,
    153 )
    155 # Find the maximum numbers of samples in an epoch
    156 parameters["duration"] = list(np.array(parameters["end"]) - np.array(parameters["start"]))

File ~/.conda/envs/biopac/lib/python3.9/site-packages/neurokit2/misc/listify.py:31, in listify(**kwargs)
     29 for key, value in args.items():
     30     if isinstance(value, list):
---> 31         args[key] = _multiply_list(value, maxi)
     32     else:
     33         args[key] = _multiply_list([value], maxi)

File ~/.conda/envs/biopac/lib/python3.9/site-packages/neurokit2/misc/listify.py:39, in _multiply_list(lst, length)
     38 def _multiply_list(lst, length):
---> 39     q, r = divmod(length, len(lst))
     40     return q * lst + lst[:r]

ZeroDivisionError: integer division or modulo by zero

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.