Code Monkey home page Code Monkey logo

bwpy's Introduction

Hi there ๐Ÿ‘‹

  • ๐Ÿ”ญ Iโ€™m currently working on lots of projects related to my PhD in neuroscience!
  • ๐Ÿ’ฌ Ask me about cycling, hiking or doing things you shouldn't do in Python.
  • ๐Ÿ“ซ How to reach me: GitHub notifications are my go-to drugs.
  • ๐Ÿ˜„ Pronouns: they (or die/hun in my native language, Dutch)
  • โšก Fun fact: Whales have tiny feet in their skeleton and lobsters don't answer when you ask them for their age.

Some of my projects are in disarray or only up to snuff for personal use, but I'm highly susceptible to external motivation. If you're interested in any of them feel free to open an issue and I will be immediatly available to polish up my projects for your use!

bwpy's People

Contributors

helveg avatar igorcantele avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

igorcantele

bwpy's Issues

Prevent writing to things that shouldn't be written to

Add a list of things that shouldn't be written to and patch up all the ways to access them, like the __getitem__ function. Goal is this:

with bwpy.File(...) as f:
  f["3BRecInfo/3BRecVars/BitDepth"][0] = 12
>>> RuntimeError: The bit depth is a protected variable. If you wish to venture into dangerous lands open the file in unsafe mode.

BXR ChannelGroup reading causes error with h5py>=3.0.0

Reading an item from the ChannelGroup dataset /3BUserInfo/ChsGroups with h5py>=3.0.0 causes:

======================================================================
ERROR: test_channel_group_names (test_file.TestChannelGroups)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/mnt/c/Users/robin/Documents/GIT/bwpy/tests/test_file.py", line 61, in test_channel_group_names
    names = f.get_channel_group_names()
  File "/mnt/c/Users/robin/Documents/GIT/bwpy/bwpy/__init__.py", line 76, in get_channel_group_names
    print("GROUP0", self.get_raw_user_info()["ChsGroups"][()])
  File "h5py/_objects.pyx", line 54, in h5py._objects.with_phil.wrapper
  File "h5py/_objects.pyx", line 55, in h5py._objects.with_phil.wrapper
  File "/home/robin/.pyenv/versions/3.8.6/lib/python3.8/site-packages/h5py/_hl/dataset.py", line 784, in __getitem__
    self.id.read(mspace, fspace, arr, mtype, dxpl=self._dxpl)
  File "h5py/_objects.pyx", line 54, in h5py._objects.with_phil.wrapper
  File "h5py/_objects.pyx", line 55, in h5py._objects.with_phil.wrapper
  File "h5py/h5d.pyx", line 192, in h5py.h5d.DatasetID.read
  File "h5py/_proxy.pyx", line 141, in h5py._proxy.dset_rw
  File "h5py/_conv.pyx", line 670, in h5py._conv.vlen2ndarray
  File "h5py/_conv.pyx", line 717, in h5py._conv.conv_vlen2ndarray
ValueError: data type must provide an itemsize

----------------------------------------------------------------------

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.