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

Support zlib compression #8

Merged
merged 3 commits into from
May 26, 2022
Merged

Conversation

youdongguo
Copy link
Contributor

No description provided.

src/MzXML.jl Outdated
@@ -241,7 +241,7 @@ function Base.copyto!(dest::AxisArray, src::Vector{<:MSscan})
axmz, axt = AxisArrays.axes(dest, Axis{:mz}), AxisArrays.axes(dest, Axis{:time})
fill!(dest, 0)
for scan in src
j, ft = val2index(axt, scan.retentionTime)
j, ft = val2index(axt, scan.retentionTime.val)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

axt is a range like 0:1:10, scan.retentionTime is a "Quatity" like 2s (where s is second). then, operations like "scan.retentionTime - 2" would throw bugs. scan.retentionTime.val will return the value of this "Quantity".

@timholy timholy merged commit c8d3ac0 into timholy:master May 26, 2022
@timholy timholy changed the title change copyto! func Support zlib compression May 26, 2022
@timholy
Copy link
Owner

timholy commented May 26, 2022

New release: JuliaRegistries/General#61111

@timholy
Copy link
Owner

timholy commented Jun 27, 2022

This hasn't been registered yet because of [compat]. See JuliaRegistries/General#61111. It might be good practice for you to fix it, seem reasonable?

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