Changeset 19


Ignore:
Timestamp:
Aug 11, 2010, 4:02:46 PM (10 years ago)
Author:
j@…
bzr:base-revision:
j@dannynavarro.net-20100805133009-k3n8lq42t030hm3c
bzr:committer:
Danny Navarro <j@dannynavarro.net>
bzr:file-ids:

mzcms/models.py models.py-20100730084238-fjjwldiefr0w07zv-4
bzr:mapping-version:
v4
bzr:repository-uuid:
724254b2-fbe6-419d-9466-c04ef4c9d29d
bzr:revision-id:
j@dannynavarro.net-20100805133900-7qkkooa0u9vl1kju
bzr:revno:
19
bzr:revprop:branch-nick:
trunk
bzr:root:
trunk
bzr:timestamp:
2010-08-05 15:39:00.809000015 +0200
bzr:user-agent:
bzr2.1.2+bzr-svn1.0.3
svn:original-date:
2010-08-05T13:39:00.809000Z
Message:

Attributes for Spectrum

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/mzcms/models.py

    r18 r19  
    2828
    2929class Spectra(Folder):
     30    """A Container for spectra"""
    3031    pass
    3132
    3233class Spectrum(Persistent):
    33     pass
     34    """A Spectrum"""
     35    def __init__(self, scan, run, peaks, prec_mz, prec_charge):
     36        self.scan = int(scan)
     37        self.run = str(scan)
     38        self.peaks = tuple(peaks)
     39        self.prec_mz = float(prec_mz)
     40        self.prec_charge = int(prec_charge)
    3441
    3542class Psms(Folder):
    36     """A container for Psms"""
     43    """A container for psms"""
    3744    pass
    3845
Note: See TracChangeset for help on using the changeset viewer.