Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting the error #1

Open
pmgautham opened this issue Mar 7, 2021 · 7 comments
Open

Getting the error #1

pmgautham opened this issue Mar 7, 2021 · 7 comments

Comments

@pmgautham
Copy link

Screenshot (1107)
Screenshot (1108)

I am getting this error can you please help me to solve it.

@sakib160205029
Copy link

Screenshot (1107)
Screenshot (1108)

I am getting this error can you please help me to solve it.

getting the same error. please help solving the error

@jpdominguez
Copy link
Owner

Hi,
Can you try commenting line #160?
Best,
JP

@sakib160205029
Copy link

Hi,
Can you try commenting line #160?
Best,
JP

above problem solved. thank you.

I got into another error. can you help solving this error ? :

ssq
ssq2

AttributeError Traceback (most recent call last)
in
190
191 # Then, call "pyNavis.adapt" for adapting the events' timestamps
--> 192 sample_file_data = pyNAVIS.Functions.adapt_SpikesFile(sample_file_data, pynavis_settings)
193 # And check that everything is OK
194 pyNAVIS.Functions.check_SpikesFile(sample_file_data, pynavis_settings)

AttributeError: type object 'Functions' has no attribute 'adapt_SpikesFile'

@dgutierrezATC
Copy link
Collaborator

Hi :)

That error is due to pyNAVIS was updated, and that function was modified. Instead using:

sample_file_data = pyNAVIS.Functions.adapt_SpikesFile(sample_file_data, pynavis_settings)

you must use:

sample_file_data.timestamps = pyNAVIS.Functions.adapt_timestamps(sample_file_data.timestamps, pynavis_settings)

@sakib160205029
Copy link

Hi :)

That error is due to pyNAVIS was updated, and that function was modified. Instead using:

sample_file_data = pyNAVIS.Functions.adapt_SpikesFile(sample_file_data, pynavis_settings)

you must use:

sample_file_data.timestamps = pyNAVIS.Functions.adapt_timestamps(sample_file_data.timestamps, pynavis_settings)

thank you it solved the error .

now I'm getting this error :
ssq23
[Functions.check_SpikesFile] > TimestampOrderError: The SpikesFile file that you loaded has at least one timestamp whose value is lesser than its previous one.
[Functions.check_SpikesFile] > AddressValueError: The SpikesFile file that you loaded has at least one event whose address is either less than 0 or greater than the number of addresses that you specified.
c:\users\sakib\appdata\local\programs\python\python38\lib\site-packages\pyNAVIS\plots.py:229: UserWarning: Matplotlib is currently using module://ipykernel.pylab.backend_inline, which is a non-GUI backend, so cannot show the figure.

@pmgautham
Copy link
Author

pmgautham commented May 7, 2021 via email

@jpdominguez
Copy link
Owner

Hi :)
That error is due to pyNAVIS was updated, and that function was modified. Instead using:
sample_file_data = pyNAVIS.Functions.adapt_SpikesFile(sample_file_data, pynavis_settings)
you must use:
sample_file_data.timestamps = pyNAVIS.Functions.adapt_timestamps(sample_file_data.timestamps, pynavis_settings)

thank you it solved the error .

now I'm getting this error :
ssq23
[Functions.check_SpikesFile] > TimestampOrderError: The SpikesFile file that you loaded has at least one timestamp whose value is lesser than its previous one.
[Functions.check_SpikesFile] > AddressValueError: The SpikesFile file that you loaded has at least one event whose address is either less than 0 or greater than the number of addresses that you specified.
c:\users\sakib\appdata\local\programs\python\python38\lib\site-packages\pyNAVIS\plots.py:229: UserWarning: Matplotlib is currently using module://ipykernel.pylab.backend_inline, which is a non-GUI backend, so cannot show the figure.

Which files are you using as input?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants