Did I find the right examples for you? yes no

All Samples(7)  |  Call(4)  |  Derive(0)  |  Import(3)

src/p/r/procgraph-1.5/src/procgraph/scripts/pgmain.py   procgraph(Download)
from ..core.constants import PATH_ENV_VAR
from ..core.exceptions import PGException, SemanticError
from ..core.model_loader import (model_from_string, pg_look_for_models,
    ModelSpec)
from ..core.registrar import default_library, Library
            msg = ('The name %r corresponds to a block, not a model. '
                   'You can only use "pg" with models. ' % filename)
            raise SemanticError(msg, None)
 
        if len(generator.input) > 0:
                  (filename, len(generator.input), inputs))
            # XXX nothing given
            raise SemanticError(msg, generator.input[0])
 
        if debug:
                # TODO: add where for command line
                msg = 'Unknown model or file %r.' % filename
                raise SemanticError(msg, None) #XXX
 
        # Make sure we use absolute pathnames so that we know the exact 

src/p/r/procgraph-1.5/src/procgraph/testing/utils.py   procgraph(Download)
from ..core.block import Block
from ..core.exceptions import SemanticError, PGSyntaxError, add_prefix
from ..core.model_loader import model_from_string
from ..core.parsing import parse_model
from ..core.registrar import default_library, Library
    def init(self):
        if self.config.x != self.config.y:
            raise SemanticError('Oops: "%s" != "%s".' % \
                                (self.config.x, self.config.y), self)
 

src/p/r/procgraph-1.5/src/procgraph/testing/test_connections.py   procgraph(Download)
from ..core.exceptions import SemanticError
from ..core.model_loader import model_from_string # XXX:
 
from .utils import PGTestCase