Changeset fa6233a


Ignore:
Timestamp:
Sep 15, 2021, 4:39:45 PM (3 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, ast-experimental, enum, forall-pointer-decay, master, pthread-emulation, qualifiedEnum
Children:
3e9ec44
Parents:
6dc2db9
Message:

rmit no longer crashes on unreadable key-values

File:
1 edited

Legend:

Unmodified
Added
Removed
  • benchmark/rmit.py

    r6dc2db9 rfa6233a  
    208208                                match = re.search("^(.*):(.*)$", s)
    209209                                if match:
    210                                         fields[match.group(1).strip()] = float(match.group(2).strip().replace(',',''))
     210                                        try:
     211                                                fields[match.group(1).strip()] = float(match.group(2).strip().replace(',',''))
     212                                        except:
     213                                                pass
    211214
    212215                options.file.write(json.dumps([a[0][2:], sa, fields]))
Note: See TracChangeset for help on using the changeset viewer.