-
Notifications
You must be signed in to change notification settings - Fork 9
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
filesorter.py sorts incorrectly #541
Labels
bug
Something isn't working
Comments
Hi Loren! |
Not sure what is going on here, but I was getting the wrong order until I made this switch, as we have some datasets that are numbered 01_sleep, 02_lineaertrack, 03_sleep, and the sort order was 01..., 03..., 02...
Loren
Loren Frank
Professor
Howard Hughes Medical Institute
Kavli Institute for Fundamental Neuroscience
UCSF Center for Integrative Neuroscience
University of California, San Francisco
415-502-7357
… On Nov 13, 2020, at 7:22 AM, acwikla ***@***.***> wrote:
Hi Loren!
If we use (item, len(item)), you will get bad order. e.g.:
a1, a10, a2
instead of
a1, a2, a10
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Oh, now I understand. We number epochs 01, 02, …, 11, 12, etc. We will never have > 99 epochs in a dataset, so sorting by name is correct for us.
Loren
… On Nov 13, 2020, at 8:57 AM, Loren Frank ***@***.***> wrote:
Not sure what is going on here, but I was getting the wrong order until I made this switch, as we have some datasets that are numbered 01_sleep, 02_lineaertrack, 03_sleep, and the sort order was 01..., 03..., 02...
Loren
Loren Frank
Professor
Howard Hughes Medical Institute
Kavli Institute for Fundamental Neuroscience
UCSF Center for Integrative Neuroscience
University of California, San Francisco
415-502-7357
> On Nov 13, 2020, at 7:22 AM, acwikla ***@***.***> wrote:
>
>
>
> Hi Loren!
> If we use (item, len(item)), you will get bad order. e.g.:
> a1, a10, a2
> instead of
> a1, a2, a10
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub <#541 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ABV4PSN3RNAIBXCGIVJI6KTSPVFNBANCNFSM4TSZR3GA>.
>
|
Should I change the type of sorting to the one you have indicated? |
Please do change it; we need the flexibility to name things differently across experiments.
Loren
… On Nov 16, 2020, at 12:43 AM, acwikla ***@***.***> wrote:
Should I change the type of sorting to the one you have indicated?
Please consider renaming your datasets to similar structure as those you have provided us with.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The current sort sorts by length first, then the item. It should be item, len(item)
The text was updated successfully, but these errors were encountered: