Skip to content

Commit

Permalink
Remove M from being checked by rule 321/
Browse files Browse the repository at this point in the history
  • Loading branch information
timronan committed Jun 10, 2020
1 parent 3b252d0 commit 79490af
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/edu/iris/dmc/station/RuleEngineRegistry.java
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ private void defaultChannelRules(Set<Integer> set) {
}
if (!set.contains(321)) {
add(321, new InstrumentCodeUnitsCondition(true,
"If Channel:Code[2] == (H | L | M | N) then Stage[1]:InputUnit must equal *m/s* AND Stage[Last]:OutputUnits must equal count*"),
"If Channel:Code[2] == (H | L | N) then Stage[1]:InputUnit must equal *m/s* AND Stage[Last]:OutputUnits must equal count*"),
Channel.class);
}
if (!set.contains(332)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public Message evaluate(Channel channel) {



if("HLMN".indexOf(code.charAt(1)) >=0 | "hlmn".indexOf(code.charAt(1)) >=0) {
if("HLN".indexOf(code.charAt(1)) >=0 | "hln".indexOf(code.charAt(1)) >=0) {
if(!inputUnit.toLowerCase().contains("m/s")) {
nestedMessage.add(Result.warning("Instrument code " +code.charAt(1)+" should have stage 1 input units similar to *m/s* but input units are "+inputUnit));
returnmessage=true;
Expand Down

0 comments on commit 79490af

Please sign in to comment.