Skip to content

Questions regarding create_input_json.py setup #77

@petesass

Description

@petesass

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions