Skip to content

Analyzing data with TDT storename containing '\' #146

@MannyEsguerra

Description

@MannyEsguerra

Windows 10, GuPPy version as of 11/6/2024

I need to analyze data that uses the TDT Storename 'Cn1\'.
storesList.csv thus contains these storenames:

415A,415C,465A,465C,Cn1\1,Cn1\2,Cn1\4,Cn1\6,Cn1\8,Cn1\10
control_LeftBox,control_RightBox,signal_LeftBox,signal_RightBox,Cn1\_1,Cn1\_2,Cn1\_4,Cn1\_6,Cn1\_8,Cn1\_10

The backslash character is causing problems at the "Extract timestamps" step, and throwing this error:

OSError: Unable to create file (unable to open file: name = 'D:\Data\Manny\OptoGEVI_Cohort4_SYNAPSE\pTrain_Opto_RealTime-250504\ME84-ME85-250824-102749\ME84-ME85-250824-102749_output_3\Cn1\_1_LeftBox.hdf5', errno = 2, error message = 'No such file or directory', flags = 13, o_flags = 302)

How should I deal with storenames that contain the \ escape character, so this file and path are created properly?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions