Robert Elder commited on
Commit
8ed2e18
·
1 Parent(s): e97c3c4

streamlining ceramic detection logic, final

Browse files
Files changed (1) hide show
  1. ChemID.py +2 -2
ChemID.py CHANGED
@@ -550,12 +550,12 @@ def ClassifyMaterial(cas, name, smiles):
550
  # the ceramic fallback.
551
  if cas:
552
  try:
553
- mp, mp_origin = string2mp(cas, include_predictions=False)
554
  except Exception:
555
  mp, mp_origin = None, None
556
  if mp is None and name:
557
  try:
558
- mp, mp_origin = string2mp(name, include_predictions=False)
559
  except Exception:
560
  mp, mp_origin = None, None
561
  if mp is not None:
 
550
  # the ceramic fallback.
551
  if cas:
552
  try:
553
+ mp, mp_origin = string2mp(cas, include_predictions=True)
554
  except Exception:
555
  mp, mp_origin = None, None
556
  if mp is None and name:
557
  try:
558
+ mp, mp_origin = string2mp(name, include_predictions=True)
559
  except Exception:
560
  mp, mp_origin = None, None
561
  if mp is not None: