def __init__(self, cdf, path):

        if (cdf is None):
            self.noncd = True
            self.file = {}
            self.path = path
        else:
            # load config and set it based on
            config = getConfig()
            projectSection = 'project:input4mips'
            variables_none = config.get(projectSection,
                                        "variables_none",
                                        default="false")

            if variables_none == "false":
                self.noncd = False
                CdunifFormatHandler.__init__(self, cdf, path)
            elif variables_none == "attr":
                CdunifFormatHandler.__init__(self, cdf, path)
                self.attr_only = True
                self.noncd = True
            else:  # assume "true"
                self.noncd = True
                self.file = {}
                self.path = path
                self.attr_only = False
    def __init__(self, cdf, path):
        
        self.attr_only = False
        if (cdf is None ):
            self.noncd = True
            self.file = {}
            self.path = path
        else:
            # load config and set it based on 
            config = getConfig()
            projectSection = 'project:dream'
            variables_none = config.get(projectSection, "variables_none", default="false")

            if variables_none == "false":
                self.noncd = False
                CdunifFormatHandler.__init__(self, cdf, path)
            elif variables_none == "attr":
                CdunifFormatHandler.__init__(self, cdf, path)
                self.attr_only = True
                self.noncd = True
            else:  # assume "true"
                self.noncd = True
                self.file = {}
                self.path = path
                self.attr_only = False
    def __init__(self, cdf):

        if cdf is None:
            self.noncd = True
        else:
            self.noncd = False
            CdunifFormatHandler.__init__(self, cdf)
 def __init__(self, cdf):
     
     if (cdf is None ):
         self.noncd = True
     else:
         self.noncd = False
         CdunifFormatHandler.__init__(self, cdf)
 def __init__(self, cdf, path):
     
     if (cdf is None ):
         self.noncd = True
         self.file = {}
         self.path = path
     else:
         self.noncd = False
         CdunifFormatHandler.__init__(self, cdf, path)
Example #6
0
    def __init__(self, cdf, path):

        if (cdf is None):
            self.noncd = True
            self.file = {}
            self.path = path
        else:
            self.noncd = False
            CdunifFormatHandler.__init__(self, cdf, path)
Example #7
0
    def __init__(self, cdf, path):
        
        if (cdf is None ):
            self.noncd = True
            self.file = {}
            self.path = path
        else:
            # load config and set it based on 
            config = getConfig()
            projectSection = 'project:'
            variables_none = config.get(projectSection, "variables_none", default="false")

            if variables_none == "false":
                self.noncd = False
                CdunifFormatHandler.__init__(self, cdf, path)
            else:
                self.noncd = True
                self.file = {}
                self.path = path