Did I find the right examples for you? yes no

All Samples(12)  |  Call(12)  |  Derive(0)  |  Import(0)
Check if the *feature* is supported in the handler and
raise an exception otherwise.

**Parameters**

feature: str
    Identifier for a certain feature.
readwrite: "read" or "write"
    Check if the feature is available for reading or writing.

src/c/h/chemlab-0.3/chemlab/io/handlers/xyz.py   chemlab(Download)
    def read(self, feature):
        self.check_feature(feature, "read")
 
        lines = [line.decode('utf-8') for line in self.fd.readlines()]
 
    def write(self, feature, mol):
        self.check_feature(feature, "write")
 
        lines = []
        if feature == 'molecule':

src/c/h/chemlab-0.3/chemlab/io/handlers/cml.py   chemlab(Download)
    def read(self, feature):
        self.check_feature(feature, "read")
 
        if feature == 'molecule':
            root = ET.fromstring(self.fd.read())            
    def write(self, feature, mol):
        self.check_feature(feature, "write")
 
        lines = []
        if feature == 'molecule':

src/c/h/chemlab-HEAD/chemlab/io/handlers/xyz.py   chemlab(Download)
    def read(self, feature):
        self.check_feature(feature, "read")
 
        lines = [line.decode('utf-8') for line in self.fd.readlines()]
 
    def write(self, feature, mol):
        self.check_feature(feature, "write")
 
        lines = []
        if feature == 'molecule':

src/c/h/chemlab-HEAD/chemlab/io/handlers/cml.py   chemlab(Download)
    def read(self, feature):
        self.check_feature(feature, "read")
 
        if feature == 'molecule':
            root = ET.fromstring(self.fd.read())            
    def write(self, feature, mol):
        self.check_feature(feature, "write")
 
        lines = []
        if feature == 'molecule':

src/c/h/chemlab-0.3/chemlab/io/handlers/mol.py   chemlab(Download)
    def read(self, feature):
        self.check_feature(feature, "read")
 
        if feature == 'molecule':
            string = self.fd.read().decode('utf-8')

src/c/h/chemlab-0.3/chemlab/io/handlers/edr.py   chemlab(Download)
    def read(self, feature, *args):
        self.check_feature(feature, 'read')
 
        if not self.processed:
            self.frames = frames = self.process_frames()        

src/c/h/chemlab-HEAD/chemlab/io/handlers/mol.py   chemlab(Download)
    def read(self, feature):
        self.check_feature(feature, "read")
 
        if feature == 'molecule':
            string = self.fd.read().decode('utf-8')

src/c/h/chemlab-HEAD/chemlab/io/handlers/edr.py   chemlab(Download)
    def read(self, feature, *args):
        self.check_feature(feature, 'read')
 
        if not self.processed:
            self.frames = frames = self.process_frames()