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

Enable support for exporting 1D and 2D dataset slices. #23

Merged
merged 2 commits into from
Sep 7, 2023

Conversation

mandrew9
Copy link
Contributor

@mandrew9 mandrew9 commented Apr 2, 2023

Fix #20

I'm admittedly not an expert with TypeScript or VS Code extensions, but I think this implementation for exporting data slices within the VS Code extension follows your guidelines provided in the associated ticket. Please let me know if there's anything I can do to improve the implementation.

Copy link
Contributor

@axelboc axelboc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for having a crack at this @mandrew9!

app/App.tsx Outdated Show resolved Hide resolved
app/Viewer.tsx Outdated Show resolved Hide resolved
app/Viewer.tsx Outdated Show resolved Hide resolved
app/Viewer.tsx Outdated Show resolved Hide resolved
app/Viewer.tsx Outdated Show resolved Hide resolved
@axelboc
Copy link
Contributor

axelboc commented Sep 7, 2023

I've refactored the CSV export logic a bit to avoid filtering out dimensions with cardinality of 1 and to avoid having a specific for loop for 1D datasets/slices. I've also removed the extra space that was added after every comma.

Thanks again @mandrew9!

@axelboc axelboc merged commit 7f4a9f4 into silx-kit:main Sep 7, 2023
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

Successfully merging this pull request may close these issues.

Exporting slices
2 participants