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

further bin format cleanups #386

Merged
merged 4 commits into from
Mar 1, 2024
Merged

Conversation

macklin-10x
Copy link
Contributor

@macklin-10x macklin-10x commented Feb 29, 2024

Removes several additional dead files/fields. Deletes a test definitions file that was an exact duplicate also present in enclone.

Comment on lines -89 to -90
if ctl.gen_opt.h5 {
let gex_outs = &ctl.origin_info.gex_path;
Copy link
Contributor

Choose a reason for hiding this comment

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

Could there be any inter-dependency between these two? Maybe some validation on the enclone side that ctl.origin_info.gex_path is present and is of length ctl.origin_info.dataset_path.len() if ctl.gen_opt.h5 is true. Wondering if we can get index out of bounds for gex_outs[i]

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I deleted this because after my refactoring, there is no condition under which gen_opt.h5 is ever false. This was set by the argument NH5 which was only used to tell enclone to read the (now deleted) binary count matrix instead of the .h5 version.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Looks like they are populated together:

ctl.origin_info.dataset_path.push(result.0);
ctl.origin_info.gex_path.push(result.1);

Copy link
Contributor Author

Choose a reason for hiding this comment

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

In this refactoring process I've been trying to be very careful to make sure that I've confirmed that a conditional is constrained to exactly one path before removing it.

@macklin-10x macklin-10x merged commit cdda245 into main Mar 1, 2024
2 checks passed
@macklin-10x macklin-10x deleted the macklin/further-bin-format-cleanups branch March 1, 2024 00:54
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