I have downloaded and installed EEGLAB plugin in matlab.
I am trying to import .csv file into EEGLab. I am unable to do it because the tool looks for .SET files.
I tried installing some plugins like musemonitor which accepts .csv files as input.
After importing a .csv file, nothing happens.
Kindly let me know what I am missing here? Can EEGLab handle .csv files that are recorded using an Emotiv Headset ?
Related
I have used Pyinstaller to pack my script as onedir EXE, then installed to Program Files folder. i used this line to save a json to a file:
json.dump(data, open("data_file.json",'w'))
on some computers the file saved to where EXE is which is what i want, but others save it to different locations.
so when i try to get the file using json.load it says not file found:
json.load(open("data_file.json"), encoding="utf-8")
How can i solve this issue so the script only save files to the same EXE directory?
The cause of the problem is related to writing permission on windows. so instead of writing app data to the Program Files folder which is not recommended, you need to write the data to APPDATA folder.
i have used the code posted by giuliano-oliveira and it works perfectly cross platform.
get_user_data_dir
I successfully exported a file from workbench in .csv file format, only for it to save in textedit format on my Mac, making it impossible for Tableau to read the file. How do I resolve this?
You need to add the .csv file extension to the file name before exporting
I am attempting to read files from my computer using os in python 2.7
import os
path = 'C:\Users\Owner\OneDrive\_Program\Stocks\AMEX'
for filename in os.listdir(path):
print(filename)
data1=os.open(filename,1)
the program can see the files and list them for me so i know they are there. however when i try to open them with an open statement or a read statement (not shown) it does not do it.
OSError: [Errno 2] No such file or directory: 'AMEX_20170608.csv'
I would like to open and read each file and then perform some functions. I have found several similar questions but i am on a windows machine and they do not seem to work.
has anyone encountered this before?
Thanks in advance.
You need to put the path back in before you open the file
import os
path = 'C:/Users/Owner/OneDrive/_Program/Stocks/AMEX'
for filename in os.listdir(path):
print(filename)
data1=os.open(path+'/'+filename,1)
I have a folder that contains several .sql files inside of it. I'm trying to import that entire folder into a database in phpMyAdmin. I compressed the folder into a .zip file, but it seems phpMyAdmin requires .sql.zip filetype.
When I try to import the .zip file, it goes through with no errors, but there are no tables in the resulting database (0 queries executed). I have also tried just adding ".sql.zip" to the end of the file name, that of course doesn't work either. Also, I'm on Mac.
How do I turn my .zip file into a .sql.zip file?
Thank you, I'm still a database beginner.
I did this and worked for me,
Create a zip folder or file out of the file you have and simple change the extension to .sql.zip and hit enter.
You are ready to go.
My web host just sent me a database back up from last week that I'd like to take a look at but it's a .tar.gz
phpmyadmin doesn't recognise the file in my import folder, just .sql files. And Sypex Dumper isn't picking it up either.
I decompressed it in 7-Zip but no dice with .tar either.
I am on Windows 7 and use Wamp too.
Any ideas?