Coder Social home page Coder Social logo

openspyrit / spas Goto Github PK

View Code? Open in Web Editor NEW
8.0 3.0 2.0 1.13 MB

Single-Pixel Acquisition Software

Home Page: https://spas.readthedocs.io/en/latest/

License: GNU Lesser General Public License v3.0

Jupyter Notebook 75.16% Python 24.84%
single-pixel-camera acquisition hyperspectral-imaging spectrometer digital-micromirror-device medical-imaging hadamard python dmd avantes

spas's People

Contributors

cmouton avatar guilhermebene avatar mahieu-williame avatar nducros avatar tbaudier avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

mribes donjoyii

spas's Issues

Unable to use read_metadata()?

Une idée ?

_, acquisition_parameters, _, _ = read_metadata(meta_path)

Gives

Traceback (most recent call last):

  Input In [27] in <cell line: 1>
    _, acquisition_parameters, _, _ = read_metadata(meta_path)

  File c:\users\ducros\openspyrit\spas\spas\metadata.py:823 in read_metadata
    saved_acquisition_params.undo_readable_pattern_order()

  File c:\users\ducros\openspyrit\spas\spas\metadata.py:244 in undo_readable_pattern_order
    self.patterns_wp = self.patterns_wp.strip('[').strip(']').split(', ')

AttributeError: 'NoneType' object has no attribute 'strip'

Remove openCV dependency

cv2 used in :

spas > scripts > read_video_from_monchromeIDScam.py

and

spas > spas > visualization.py

Remove it because of problematic installation in some cases.

pyueye problem

je viens juste d'installer spas et l'ajout module pyueye pose problème

  1. Il faudrait le rajouter au setup.py
  2. En l'absence des dll, j'ai rencontré tout une série d'erreurs, dont la première est reproduite ci-dessous. J'ai fini par commenter mais c'est dommage

Il faudrait peut-être traiter ça en même temps que l'issue #6 ? A voir avec Thomas ?

File ~.conda\envs\spyrit-spas-dev\lib\site-packages\pyueye\dll.py:166 in load_dll
dll = DLL(libinfo, libnames, os.getenv(envname))

File ~.conda\envs\spyrit-spas-dev\lib\site-packages\pyueye\dll.py:96 in init
raise RuntimeError("could not find any library for {} ({})".format(libinfo, dllmsg))

RuntimeError: could not find any library for ueye_api (DLL_PATH: unset)

Having errors DLL of the cam not installed !!

Hello,
I having an issues when I launch the project.
DLL of the cam not installed !! Is there another way to have avaspecx64.dll ? I try on internet and I contacted the company also but no success.

Thank you for help

Update spas dependencies

During the development of spas, I had to fork the repositories ALP4lib because some features had minor issues that would not work properly with spas.
You can see in

spas/setup.py

Line 15 in b486bcb

'ALP4lib @ git+https://github.com/guilhermebene/ALP4lib.git@7e35abf3a5c2e31652f7cfb2e4243b279b6a3a47',
that spas actually looks for those forks in my personal github account.
It would be nice to revisit these points and maybe update update the setup.py so that it gets specific versions of ALP4lib from their Pypi or github officiail pages instead of for the fork I had done.

pyueye issue when no DLL

Hello,

I'm having an issue when using the library to read metadata from SPIHIM (without any need for the dll). I get the following error when importing read_metadata from spas :
issue_pyueye

The error comes from pyueye not having a DLL_PATH specified, thus failing the 'from pyueye import ueye' instruction.

A quick fix for my need (since I don't think I'm using it in my code) was to comment all occurences of ueye in the CAM class, but I don't think it's a good idea in the long run as I might find troubles later...

SPAS Unsupported for Linux users

Importing SPAS is impossible for Linux users. This is due to the use of Winreg which is not compatible with linux.

While the package is not meant to be used for Linux users to control the instrument side of things, it still is important for Linux users to be able to import it to read data/metadata etc.

Potentially isolate the use of winreg and other windows specific applications inside a "submodule" so that linux users can use some of the functions that do not control the intrumentation.

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.