Skip to content

Commit

Permalink
feature: added Unit::VoltSecondPerSquareCentimeter
Browse files Browse the repository at this point in the history
  • Loading branch information
mobiusklein committed Jul 28, 2024
1 parent 989d66e commit 3eea053
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/params.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1967,6 +1967,7 @@ impl Unit {
Self::Millisecond => ("UO:0000028", "millisecond"),
Self::Second => ("UO:0000010", "second"),
Self::Minute => ("UO:0000031", "minute"),
Self::VoltSecondPerSquareCentimeter => ("MS:1002814", "volt-second per square centimeter"),

Self::MZ => ("MS:1000040", "m/z"),
Self::Mass => ("UO:000221", "dalton"),
Expand Down Expand Up @@ -2006,6 +2007,7 @@ impl Unit {
b"percent" => Self::PercentElectronVolt,

b"dimensionless unit" => Self::Dimensionless,
b"volt-second per square centimeter" => Self::VoltSecondPerSquareCentimeter,

_ => Unit::Unknown,
}
Expand All @@ -2032,6 +2034,8 @@ impl Unit {

b"UO:0000186" => Self::Dimensionless,

b"MS:1002814" => Self::VoltSecondPerSquareCentimeter,

_ => Unit::Unknown,
}
}
Expand Down Expand Up @@ -2089,6 +2093,10 @@ impl Unit {
controlled_vocabulary: ControlledVocabulary::UO,
accession: 186,
} => Self::Dimensionless,
CURIE {
controlled_vocabulary: ControlledVocabulary::MS,
accession: 1002814
} => Self::VoltSecondPerSquareCentimeter,
_ => Unit::Unknown,
}
}
Expand Down Expand Up @@ -2147,6 +2155,11 @@ impl Unit {
controlled_vocabulary: ControlledVocabulary::UO,
accession: 186,
}),

Self::VoltSecondPerSquareCentimeter => Some(CURIE {
controlled_vocabulary: ControlledVocabulary::MS,
accession: 1002814
}),
_ => None,
}
}
Expand Down

0 comments on commit 3eea053

Please sign in to comment.