Skip to content

Text To Columns: Allow setting output format#280

Merged
janezd merged 3 commits intobiolab:masterfrom
janezd:text-to-column-outputs
Aug 22, 2025
Merged

Text To Columns: Allow setting output format#280
janezd merged 3 commits intobiolab:masterfrom
janezd:text-to-column-outputs

Conversation

@janezd
Copy link
Contributor

@janezd janezd commented Aug 15, 2025

Issue

Resolves part of #279: output formats.

In addition to what @wvdvegte wrote, the current output (0 and 1) is ambiguous: it looks like number, but these are "categories".

Description of changes

Adds output format which can be No / Yes, 0 / 1 (as number) or counts.

Includes
  • Code changes
  • Tests
  • Documentation

@janezd
Copy link
Contributor Author

janezd commented Aug 15, 2025

I don't like this GUI. It looks to "technical". Suggestions welcome.

Screenshot 2025-08-15 at 16 05 32

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds output format options to the Text To Columns widget, allowing users to choose between different representations for the split column results. The change addresses the ambiguity of the previous 0/1 output by providing four distinct formats: "No/Yes", "0/1 (as categorical)", "0/1 (as numbers)", and "Counts".

  • Introduces four output format options for Text To Columns widget
  • Refactors existing classes to support both one-hot encoding and count-based outputs
  • Extends test coverage for the new output format functionality

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
owtexttocolumns.py Implements output format selection with new classes and UI controls
test_owtexttocolumns.py Adds comprehensive tests for all output formats and refactors existing tests

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
You can also share your feedback on Copilot code review for a chance to win a $100 gift card. Take the survey.

@janezd janezd force-pushed the text-to-column-outputs branch 2 times, most recently from 10577bb to 0a70d81 Compare August 15, 2025 19:45
@janezd janezd force-pushed the text-to-column-outputs branch from 0a70d81 to 3e7fb79 Compare August 22, 2025 21:06
@janezd janezd merged commit 8ebc89b into biolab:master Aug 22, 2025
18 checks passed
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.

2 participants