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

Reordering datasets? #1917

Open
NPPO-NL opened this issue Nov 22, 2024 · 2 comments
Open

Reordering datasets? #1917

NPPO-NL opened this issue Nov 22, 2024 · 2 comments
Labels
documentation Improvements or additions to documentation

Comments

@NPPO-NL
Copy link

NPPO-NL commented Nov 22, 2024

If auspice has access to multiple datasets, how does auspice decide in what order to display this? I am unable to find an answer in the documentation.
image
Ideally the 20191231 dataset in the above image would be the top dataset.

@NPPO-NL NPPO-NL added the documentation Improvements or additions to documentation label Nov 22, 2024
@jameshadfield
Copy link
Member

Hi @NPPO-NL - the code for this is here - basically it relies on the behaviour of fs.readdir which AFAIK is system dependent. Sorting alphabetically seems sensible, would that work for you?

@NPPO-NL
Copy link
Author

NPPO-NL commented Jan 17, 2025

hi @jameshadfield - Apologies for the late reply, Changing the line
const files = await readdir(localDataPath);
to something like
const files = (await readdir(localDataPath)).sort((a, b) => a.localeCompare(b));
might work.
Is there a way to make this change to my local auspice installation I already installed as a user?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants