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

Questions regarding create_input_json.py setup #77

Open
petesass opened this issue Feb 23, 2023 · 1 comment
Open

Questions regarding create_input_json.py setup #77

petesass opened this issue Feb 23, 2023 · 1 comment

Comments

@petesass
Copy link

petesass commented Feb 23, 2023

Hello! I am seeking assistance to understand how to edit create_input_json.py. I have edited lines 17-23 of the code below, this is a recreation of how I filled in these values:

def createInputJson(output_file,
                    npx_directory=C:\Users\user\ecephysinputdata,
                    continuous_file =None,
                    extracted_data_directory=C:\Users\user\ecephysinputdata\recording1,
                    kilosort_output_directory=C:\Users\user\ecephysinputdata\KS,
                    kilosort_output_tmp=None,
                    probe_type='3B1):

Am I right to change these values in this way? Is the format correct? Are there more values to be changed within create_input_json.py?

After running python C:\Users\user\Downloads\ecephys_spike_sorting-master\ecephys_spike_sorting-master\ecephys_spike_sorting\scripts\batch_processing.py I got the following error:

Traceback (most recent call last):
  File "C:\Users\user\Downloads\ecephys_spike_sorting-master\ecephys_spike_sorting-master\ecephys_spike_sorting\scripts\batch_processing.py", line 23, in <module>
    info = createInputJson(input_json, kilosort_output_directory=directory)
  File "C:\Users\user\Downloads\ecephys_spike_sorting-master\ecephys_spike_sorting-master\ecephys_spike_sorting\scripts\create_input_json.py", line 202, in createInputJson
    with io.open(output_file, 'w', encoding='utf-8') as f:
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\svc_neuropix\\Documents\\json_files\\outputs-input.json'

I assume given from the above error that I also have to edit 'C:\\Users\\svc_neuropix\\Documents\\json_files\\outputs-input.json' in create_input_json.py, but I will try this tomorrow. Is this the only other thing that needs to be changed to run batch_processing.py?

I apologize for the trivial nature of these questions and I appreciate any assistance in getting ecephys up and running!

@jsiegle
Copy link
Collaborator

jsiegle commented Feb 23, 2023

It's failing because the script cannot find the specified file – you'll need to change any file paths in create_input_json.py and batch_processing.py to point to locations that exist on your system.

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

2 participants