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

ImportError: cannot import name 'project_to_local_frame' from 'RVGP.geometry' #3

Open
NevVerVer opened this issue Oct 23, 2024 · 4 comments

Comments

@NevVerVer
Copy link

When I am trying to run examples/eeg_example/run_eeg_vector_field_interp.py script, it throughts ImportError: cannot import name 'project_to_local_frame' from 'RVGP.geometry'.

In geometry.py there is project_to_manifold and express_in_local_frame functions, but there isn't any project_to_local_frame. What function should be used instead of project_to_local_frame?

@agosztolai
Copy link
Owner

Hello,

I have added the project_to_local_frame function to the eeg_utils.py file. The main RVGP code no longer needs it, so we removed it, but the EEG example was still not synchronised.

I also realized that the EEG data was not uploaded to the repo. If you want to run the EEG example, please bear with me until I find the collaborator who analysed the data.

@NevVerVer
Copy link
Author

NevVerVer commented Oct 27, 2024

Thank you for the rapid answer! I am particularly interested in application of your method to EEG data. So, I am looking forward to your collaborator to upload the data to reproduce EEG results :)
I suppose that in principle any EEG data can be used for in you method, so I'll also try to run it with some random data from open datasets. Thanks again!

@peach-lucien
Copy link
Collaborator

Hi Nev! the EEG-data I will upload is already converted into vector field format. This was a process that was performed using C-NEM in Matlab. I will need a couple of days to upload some of this data as an example and ensure this is all working smoothly. However, I imagine you are also interested in actually constructing the vector fields from your raw EEG data? not just interpolating low-density EEG?

@peach-lucien
Copy link
Collaborator

Hi Nev - I have now updated the EEG example to download some example files from the Harvard data verse. Let me know if you have any further trouble! Note that the examples are already in vector-field format (as a function of time).

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

3 participants