Browse files

Add catch for CDC data without ferret ids.

  • Loading branch information...
barneypotter24 committed Dec 4, 2017
1 parent 154b8b3 commit e94fc96da1572b65565d1b48650e22d2e4d28c03
Showing with 12 additions and 0 deletions.
  1. +12 −0 tdb/
@@ -89,6 +89,18 @@ def format_titer(self, meas):
meas['titer'] = None
def format_serum_sample(self,meas):
Format serum sample attribute for the measurements, so that there is
not a specific organism used for HI assays.
if not meas['serum_id']:
if 'lot_number' in meas.keys():
meas['serum_id'] = 'L' + str(meas['lot_number'])
# print 'new serum id is %s' % (meas['serum_id'])
# else:
# print 'old serum id is %s' % (meas['serum_id'])
def remove_fields(self, meas):
Remove unnecessary fields provided in CDC titer tables.

0 comments on commit e94fc96

Please sign in to comment.