reports = [reports] if ALL not in reports: reports.append(ALL) if not all(isinstance(tag, data.Report) for tag in reports): raise AttributeError("Unapproved reports for {}".format(name)) for report in reports: if report not in ReportInterface.reports: ReportInterface.reports.add(report) report.addToReport(group, name, value) # -------------------------------------------- # GROUP DEFINITIONS # -------------------------------------------- UNGROUPED = data.Table("Ungrouped", "No grouping specified for the following information.") RUN_META = data.Table("Run Meta") CASE_PARAMETERS = data.Table("Case Parameters") CASE_CONTROLS = data.Table("Case Controls") PLANT_META = data.Table("Plant Meta") REACTOR_PARAMS = data.Table("Reactor Params") BURNUP_GROUPS = data.Table("Burnup Groups") SNAPSHOT = data.Table("Snapshot", "Information regarding the loaded snapshot") COST_ASSUMPTIONS = data.Table( "Cost Assumptions", "Values affecting primarily the business aspect of the reactor") CORE_RESOURCES = data.Table( "Initial Core Resources", "Cost of the fuel in the core", header=["Required Resources", "???", "Cost ($)"], )
def setUp(self): self.test_group = data.Table(settings.getMasterCs(), "banana")