Skip to content

Commit

Permalink
Update PrecursorType.php
Browse files Browse the repository at this point in the history
  • Loading branch information
xieguigang committed Mar 21, 2024
1 parent 36ccdac commit 801f87b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions BioDeep/PrecursorType.php
Original file line number Diff line number Diff line change
Expand Up @@ -173,9 +173,9 @@ public static function DefaultAdductNames($mode) {
* @return PrecursorType[]
*/
public static function LoadDefault($mode) {
if ($mode == 1 || $mode == "+") {
if ($mode == 1 || $mode == "+" || $mode == "pos") {
return self::Positive();
} else if ($mode == -1 || $mode == "-") {
} else if ($mode == -1 || $mode == "-" || $mode == "neg") {
return self::Negative();
} else {
throw new \exception("Invalid ion mode!");
Expand Down

0 comments on commit 801f87b

Please sign in to comment.