Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
yufongpeng committed Jan 11, 2024
1 parent 8190028 commit da14635
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions src/SphingolipidsID.jl
Original file line number Diff line number Diff line change
Expand Up @@ -318,9 +318,7 @@ Type containg information of analyte settings, calibration data, qc data, serial
struct Quantification{A}
batch::Batch{A}
config::Dictionary
Quantification() = new{Any}()
Quantification(batch::Batch{A}, config::Dictionary) where A = new{A}(batch, config)
end # Wrap MethodTable
end

function getproperty(quant::Quantification, p::Symbol)
if p in propertynames(getfield(quant, :batch))
Expand Down
2 changes: 1 addition & 1 deletion src/preis.jl
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ end

function Project(preis::PreIS; data_id = -1, kwargs...)
appendix = Dictionary{Symbol, Any}(kwargs)
project = Project(AnalyteSP[], AbstractData[], Quantification(), appendix)
project = Project(AnalyteSP[], AbstractData[], nothing, appendix)
preis!(project, preis; data_id)
end

Expand Down

0 comments on commit da14635

Please sign in to comment.