Skip to content

Commit

Permalink
added missing test modules
Browse files Browse the repository at this point in the history
  • Loading branch information
iskandr committed Mar 21, 2024
1 parent c24b598 commit 36c9892
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tests/arch.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

import platform

apple_silicon = (platform.system() == "Darwin" and platform.processor() == "arm")
23 changes: 23 additions & 0 deletions tests/predictor_classes.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import mhctools
from .arch import apple_silicon

mhc1_predictor_classes = [
mhctools.NetMHCpan,
mhctools.NetMHC,
mhctools.NetMHC4,
mhctools.IedbNetMHCcons,
mhctools.IedbNetMHCpan,
mhctools.IedbSMM,
mhctools.IedbSMM_PMBEC,
]

if not apple_silicon:
mhc1_predictor_classes += [
mhctools.NetMHC3,
mhctools.NetMHCcons,
]

mhc2_predictor_classes = [
mhctools.NetMHCIIpan,
mhctools.IedbNetMHCIIpan,
]

0 comments on commit 36c9892

Please sign in to comment.