![]() ![]() quantitativeReference # we can only create a product system from a process # when it has a quantitative reference flow which is # a product output or waste input if qref is None: # load the process process = ProcessDao( db). # write the indicators as column headers header = # configure the CSV writer # see writer = csv. # init the CSV file, run calculations, and write results with open( f. Return print( "Selected CSV file: %s" % f. # select the CSV file where the results should be written to f = FileChooser. Print( "Selected LCIA method '%s' with %i indicators" % Return indicators = ImpactMethodDao( db). # select the LCIA method method = ModelSelectionDialog. Return print( "Selected %i processes" % len( processes)) If processes is None or len( processes) = 0: Global db # select the processes processes = ModelSelectionDialog. database import ImpactMethodDao, ProcessDao from org. model import ProcessType, ProductSystem from org. matrix import ProductSystemBuilder, LinkingConfig from org. math import CalculationSetup, CalculationType, SystemCalculator from org. components import FileChooser, ModelSelectionDialog from org.
0 Comments
Leave a Reply. |