-
Notifications
You must be signed in to change notification settings - Fork 23
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
feat: add channel_labels #323
Conversation
@castillohair @JS3xton : Please help review this one, thanks. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the contribution. I found some small things, but otherwise looks good to me.
- The
channel_labels
method should be described in theFCSData
docstring. - It would be nice to explicitly unit test
channel_labels
like other similar methods (e.g. the TestFCSAttributesDetectorVoltage class in/test/test_io.py
).
|
@JS3xton : Thanks for feedback, I will update accordingly. |
@JS3xton : I have a quick question, because all of the current testing fcs files don't have label value, i.e. they don't have |
@abawchen Hmm, good point. I wouldn't modify the existing files. If you have a new file you can contribute, that seems fine to me. Otherwise, you might be able to find one in this repository: https://flowrepository.org/id/FR-FCM-ZZZ4. |
@JS3xton , I added the description of @abawchen I think we would still prefer if you could incorporate an FCS file that actually contains |
@JS3xton @castillohair : btw, I have rebase the updated develop branch. |
|
||
We have previously looked at the contents of the $PnS attribute for | ||
the test files and identified the correct label(marker): | ||
- Data001.fcs: [None, None, None, None, None, None] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The last element of this list should be 'Time (204.80 sec.)'
. This is what you have later in the test_attribute()
function.
In my opinion, the proposed unit tests validate that the feature works as expected. I have one observation in the test class docstring though. @JS3xton see what you think. |
-Changed "PxS" to "PnS" to conform to naming convention for FCS parameters.
Looks good to me. (The new data file is kinda large, though... ~16MB) |
@abawchen thanks for the contribution! We will release it with the new FlowCal version soon. |
Add
channel_labels
and pass unittest.