def post(self): form = cgi.FieldStorage() # print form args={} for key in form: args[key] = form.getvalue(key) args["run_type"] = "single" przm_obj = przm_model.przm(args) # logger.info(vars(przm_obj)) templatepath = os.path.dirname(__file__) + '/../templates/' ChkCookie = self.request.cookies.get("ubercookie") html = uber_lib.SkinChk(ChkCookie, "PRZM Output") html = html + template.render(templatepath + '02uberintroblock_wmodellinks.html', {'model':'przm','page':'output'}) html = html + template.render (templatepath + '03ubertext_links_left.html', {}) html = html + template.render(templatepath + '04uberoutput_start.html', { 'model':'przm', 'model_attributes':'PRZM Output'}) html = html + przm_tables.timestamp(przm_obj) html = html + przm_tables.table_all(przm_obj) html = html + template.render(templatepath + 'export.html', {}) html = html + template.render(templatepath + '04uberoutput_end.html', {}) html = html + template.render(templatepath + '06uberfooter.html', {'links': ''}) rest_funcs.save_dic(html, przm_obj.__dict__, 'przm', 'single') self.response.out.write(html)
def post(self): form = cgi.FieldStorage() #Get variables needed to construct terrplant object version_terrplant = form.getvalue('version_terrplant') I = form.getvalue('incorporation') A = form.getvalue('application_rate') D = form.getvalue('drift_fraction') R = form.getvalue('runoff_fraction') nms = form.getvalue('EC25_for_nonlisted_seedling_emergence_monocot') nds = form.getvalue('EC25_for_nonlisted_seedling_emergence_dicot') lms = form.getvalue('NOAEC_for_listed_seedling_emergence_monocot') lds = form.getvalue('NOAEC_for_listed_seedling_emergence_dicot') #fill out terrplant object with yet to be used data chemical_name = form.getvalue('chemical_name') # terr.chemical_name = chemical_name pc_code = form.getvalue('pc_code') # terr.pc_code = pc_code use = form.getvalue('use') # terr.use = use application_method = form.getvalue('application_method') # terr.application_method = application_method application_form = form.getvalue('application_form') # terr.application_form = application_form solubility = form.getvalue('solubility') # terr.sol = sol terr = terrplant_model.terrplant(True,True,version_terrplant,"single",A,I,R,D,nms,lms,nds,lds,chemical_name,pc_code,use,application_method,application_form,solubility) nmv = form.getvalue('EC25_for_nonlisted_vegetative_vigor_monocot') terr.nmv = nmv ndv = form.getvalue('EC25_for_nonlisted_vegetative_vigor_dicot') terr.ndv = ndv lmv = form.getvalue('NOAEC_for_listed_vegetative_vigor_monocot') terr.lmv = lmv ldv = form.getvalue('NOAEC_for_listed_vegetative_vigor_dicot') terr.ldv = ldv logger.info(terr.__dict__) text_file = open('terrplant/terrplant_description.txt','r') x = text_file.read() templatepath = os.path.dirname(__file__) + '/../templates/' ChkCookie = self.request.cookies.get("ubercookie") html = uber_lib.SkinChk(ChkCookie, "TerrPlant Output") html = html + template.render(templatepath + '02uberintroblock_wmodellinks.html', {'model':'terrplant','page':'output'}) html = html + template.render (templatepath + '03ubertext_links_left.html', {}) html = html + template.render(templatepath + '04uberoutput_start.html',{ 'model':'terrplant', 'model_attributes':'TerrPlant Output'}) html = html + terrplant_tables.timestamp(terr) html = html + terrplant_tables.table_all(terrplant_tables.pvheadings, terrplant_tables.pvuheadings,terrplant_tables.deheadings, terrplant_tables.plantec25noaecheadings,terrplant_tables.plantecdrysemisprayheadings, terrplant_tables.sumheadings, terrplant_tables.tmpl, terr) html = html + template.render(templatepath + 'export.html', {}) html = html + template.render(templatepath + '04uberoutput_end.html', {}) html = html + template.render(templatepath + '06uberfooter.html', {'links': ''}) rest_funcs.save_dic(html, terr.__dict__, "terrplant", "single") self.response.out.write(html)
def post(self): form = cgi.FieldStorage() chemical_name = form.getvalue('chemical_name') label_epa_reg_no = form.getvalue('label_epa_reg_no') ar_lb = form.getvalue('application_rate') frac_pest_surface = form.getvalue('frac_pest_assumed_at_surface') dislodge_fol_res = form.getvalue('dislodgeable_foliar_residue') bird_acute_oral_study = form.getvalue('bird_acute_oral_study') bird_study_add_comm = form.getvalue('bird_study_add_comm') low_bird_acute_ld50 = form.getvalue('low_bird_acute_oral_ld50') test_bird_bw = form.getvalue('tested_bird_body_weight') mamm_acute_derm_study = form.getvalue('mamm_acute_derm_study') mamm_study_add_comm = form.getvalue('mamm_study_add_comm') #aviandermaltype = form.getvalue('aviandermaltype') mam_acute_derm_ld50 = form.getvalue('mamm_acute_derm_ld50') mam_acute_oral_ld50 = form.getvalue('mam_acute_oral_ld50') test_mam_bw = form.getvalue('tested_mamm_body_weight') mineau_scaling_factor = float(form.getvalue('mineau_scaling_factor')) dust_obj = dust_model.dust(True, False, 'single',chemical_name, label_epa_reg_no, ar_lb, frac_pest_surface, dislodge_fol_res, bird_acute_oral_study, bird_study_add_comm, low_bird_acute_ld50, test_bird_bw, mineau_scaling_factor, mamm_acute_derm_study, mamm_study_add_comm, mam_acute_derm_ld50, mam_acute_oral_ld50, test_mam_bw, None) #print vars(dust_obj) # client = pymongo.MongoClient() # # print client # db = client.test_database # posts = db.posts # user_names={"user":"******"} # dust_save = dict(dust_obj.__dict__,**user_names) # posts.insert(dust_save) # print db # print posts # print posts.find_one({"user":"******"}) # for post in posts.find({"user":"******"}): # print post templatepath = os.path.dirname(__file__) + '/../templates/' ChkCookie = self.request.cookies.get("ubercookie") html = uber_lib.SkinChk(ChkCookie, "DUST Output") html = html + template.render(templatepath + '02uberintroblock_wmodellinks.html', {'model':'dust','page':'output'}) html = html + template.render (templatepath + '03ubertext_links_left.html', {}) html = html + template.render(templatepath + '04uberoutput_start.html', { 'model':'dust', 'model_attributes':'DUST Output'}) html = html + dust_tables.timestamp(dust_obj) html = html + dust_tables.table_all(dust_obj)[0] html = html + template.render(templatepath + 'export.html', {}) html = html + template.render(templatepath + '04uberoutput_end.html', {}) html = html + template.render(templatepath + '06uberfooter.html', {'links': ''}) rest_funcs.save_dic(html, dust_obj.__dict__, "dust", "single") self.response.out.write(html)
def get(self): templatepath = os.path.dirname(__file__) + '/../templates/' ChkCookie = self.request.cookies.get("ubercookie") html = uber_lib.SkinChk(ChkCookie, "TREX 1.5.2 QA/QC") html = html + template.render(templatepath + '02uberintroblock_wmodellinks.html', {'model':'trex2','page':'qaqc'}) html = html + template.render (templatepath + '03ubertext_links_left.html', {}) html = html + template.render(templatepath + '04uberoutput_start.html', { 'model':'therps', 'model_attributes':'T-Rex QAQC'}) html = html + html_qaqc html = html + template.render(templatepath + 'export.html', {}) html = html + template.render(templatepath + '04uberoutput_end.html', {'sub_title': ''}) html = html + template.render(templatepath + '06uberfooter.html', {'links': ''}) rest_funcs.save_dic(html, trex2_obj.__dict__, 'trex2', 'qaqc') self.response.out.write(html)
def get(self): templatepath = os.path.dirname(__file__) + '/../templates/' ChkCookie = self.request.cookies.get("ubercookie") html = uber_lib.SkinChk(ChkCookie, "SIP QA/QC") html = html + template.render(templatepath + '02uberintroblock_wmodellinks.html', {'model':'sip','page':'qaqc'}) html = html + template.render (templatepath + '03ubertext_links_left.html', {}) html = html + template.render(templatepath + '04uberoutput_start.html', { 'model':'sip', 'model_attributes':'SIP QAQC'}) html = html + sip_tables.timestamp(sip_obj) html = html + sip_tables.table_all_qaqc(sip_obj) html = html + template.render(templatepath + 'export.html', {}) html = html + template.render(templatepath + '04uberoutput_end.html', {'sub_title': ''}) html = html + template.render(templatepath + '06uberfooter.html', {'links': ''}) rest_funcs.save_dic(html, sip_obj.__dict__, 'sip', 'qaqc') self.response.out.write(html)
def post(self): form = cgi.FieldStorage() chemical_name = form.getvalue('chemical_name') # select_receptor = form.getvalue('select_receptor') # bw_bird = form.getvalue('body_weight_of_bird') # bw_mamm = form.getvalue('body_weight_of_mammal') sol = form.getvalue('solubility') ld50_a = form.getvalue('ld50_a') ld50_m = form.getvalue('ld50_m') aw_bird = form.getvalue('aw_bird') # tw_bird = form.getvalue('body_weight_of_the_tested_bird') aw_mamm = form.getvalue('aw_mamm') # tw_mamm = form.getvalue('body_weight_of_the_tested_mammal') mineau = form.getvalue('mineau_scaling_factor') noael = form.getvalue('NOAEL') noaec_d = form.getvalue('NOAEC_d') noaec_q = form.getvalue('NOAEC_q') noaec_o = form.getvalue('NOAEC_o') # noaec_o2 = form.getvalue('NOAEC_o2') Species_of_the_bird_NOAEC_CHOICES = form.getvalue('NOAEC_species') bw_quail = form.getvalue('bw_quail') bw_duck = form.getvalue('bw_duck') bwb_other = form.getvalue('bwb_other') bw_rat = form.getvalue('bw_rat') bwm_other = form.getvalue('bwm_other') b_species = form.getvalue('b_species') m_species = form.getvalue('m_species') sip_obj = sip_model.sip(True,True,'single',chemical_name, b_species, m_species, bw_quail, bw_duck, bwb_other, bw_rat, bwm_other, sol, ld50_a, ld50_m, aw_bird, mineau, aw_mamm, noaec_d, noaec_q, noaec_o, Species_of_the_bird_NOAEC_CHOICES, noael) text_file = open('sip/sip_description.txt','r') x = text_file.read() templatepath = os.path.dirname(__file__) + '/../templates/' ChkCookie = self.request.cookies.get("ubercookie") html = uber_lib.SkinChk(ChkCookie, "SIP Output") html = html + template.render(templatepath + '02uberintroblock_wmodellinks.html', {'model':'sip','page':'output'}) html = html + template.render (templatepath + '03ubertext_links_left.html', {}) html = html + template.render(templatepath + '04uberoutput_start.html', { 'model':'sip', 'model_attributes':'SIP Output'}) html = html + sip_tables.timestamp(sip_obj) html = html + sip_tables.table_all(sip_obj) html = html + template.render(templatepath + 'export.html', {}) html = html + template.render(templatepath + '04uberoutput_end.html', {}) html = html + template.render(templatepath + '06uberfooter.html', {'links': ''}) rest_funcs.save_dic(html, sip_obj.__dict__, "sip", "single") self.response.out.write(html)
def post(self): form = cgi.FieldStorage() chem_name = form.getvalue('chemical_name') scenarios =form.getvalue('scenarios') farm =form.getvalue('farm_pond') mw = form.getvalue('molecular_weight') sol = form.getvalue('solubility') koc = form.getvalue('Koc') vp = form.getvalue('vapor_pressure') aem = form.getvalue('aerobic_aquatic_metabolism') anm = form.getvalue('anaerobic_aquatic_metabolism') aqp = form.getvalue('aquatic_direct_photolysis') tmper = form.getvalue('temperature') n_ph = float(form.getvalue('n_ph')) ph_out = [] hl_out = [] for i in range(int(n_ph)): j=i+1 ph_temp = form.getvalue('ph'+str(j)) ph_out.append(float(ph_temp)) hl_temp = float(form.getvalue('hl'+str(j))) hl_out.append(hl_temp) exams_obj = exams_model.exams(chem_name, scenarios, farm, mw, sol, koc, vp, aem, anm, aqp, tmper, n_ph, ph_out, hl_out) # logging.info(vars(exams_obj)) templatepath = os.path.dirname(__file__) + '/../templates/' ChkCookie = self.request.cookies.get("ubercookie") html = uber_lib.SkinChk(ChkCookie, "EXAMS Output") html = html + template.render(templatepath + '02uberintroblock_wmodellinks.html', {'model':'exams','page':'output'}) html = html + template.render (templatepath + '03ubertext_links_left.html', {}) html = html + template.render(templatepath + '04uberoutput_start.html', { 'model':'exams', 'model_attributes':'EXAMS Output'}) html = html + exams_tables.timestamp(exams_obj) html = html + exams_tables.table_all(exams_obj) html = html + template.render(templatepath + 'export.html', {}) html = html + template.render(templatepath + '04uberoutput_end.html', {}) html = html + template.render(templatepath + '06uberfooter.html', {'links': ''}) rest_funcs.save_dic(html, exams_obj.__dict__, 'exams', 'single') self.response.out.write(html)
def post(self): form = cgi.FieldStorage() args={} for key in form: args[key] = form.getvalue(key) args["run_type"] = "single" vvwm_obj = vvwm_model.vvwm(args) templatepath = os.path.dirname(__file__) + '/../templates/' ChkCookie = self.request.cookies.get("ubercookie") html = uber_lib.SkinChk(ChkCookie, "VVWM Output") html = html + template.render(templatepath + '02uberintroblock_wmodellinks.html', {'model':'vvwm','page':'output'}) html = html + template.render (templatepath + '03ubertext_links_left.html', {}) html = html + template.render(templatepath + '04uberoutput_start.html', { 'model':'vvwm', 'model_attributes':'VVWM Output'}) html = html + vvwm_tables.table_all(vvwm_obj) html = html + template.render(templatepath + 'export.html', {}) html = html + template.render(templatepath + '04uberoutput_end.html', {}) html = html + template.render(templatepath + '06uberfooter.html', {'links': ''}) html = html + template.render(templatepath + 'vvwm_output_jquery.html', {'jid': vvwm_obj.jid}) rest_funcs.save_dic("", vvwm_obj.__dict__, 'vvwm', 'single') self.response.out.write(html)
def post(self): form = cgi.FieldStorage() LC50 = float(form.getvalue('LC50')) threshold = float(form.getvalue('threshold')) dose_response = float(form.getvalue('dose_response')) iec_obj = iec_model.iec(True,True,'single',dose_response, LC50, threshold, None) text_file = open('iec/iec_description.txt','r') x1 = text_file.read() templatepath = os.path.dirname(__file__) + '/../templates/' ChkCookie = self.request.cookies.get("ubercookie") html = uber_lib.SkinChk(ChkCookie, "IEC Output") html = html + template.render(templatepath + '02uberintroblock_wmodellinks.html', {'model':'iec','page':'output'}) html = html + template.render (templatepath + '03ubertext_links_left.html', {}) html = html + template.render(templatepath + '04uberoutput_start.html', { 'model':'iec', 'model_attributes':'IEC Output'}) html = html + iec_tables.timestamp(iec_obj) html = html + iec_tables.table_all(iec_obj) html = html + template.render(templatepath + 'export.html', {}) html = html + template.render(templatepath + '04uberoutput_end.html', {}) html = html + template.render(templatepath + '06uberfooter.html', {'links': ''}) rest_funcs.save_dic(html, iec_obj.__dict__, "iec", "single") self.response.out.write(html)
def post(self): form = cgi.FieldStorage() chem_name = form.getvalue("chemical_name") application_target = form.getvalue("application_target") application_rate = form.getvalue("application_rate") number_of_applications = form.getvalue("number_of_applications") interval_between_applications = form.getvalue("interval_between_applications") Koc = form.getvalue("Koc") aerobic_soil_metabolism = form.getvalue("aerobic_soil_metabolism") wet_in = form.getvalue("wet_in") application_method = form.getvalue("application_method") # A1 aerial_size_dist = form.getvalue("aerial_size_dist") # B1 ground_spray_type = form.getvalue("ground_spray_type") # C1 airblast_type = form.getvalue("airblast_type") # B2 spray_quality = form.getvalue("spray_quality") no_spray_drift = form.getvalue("no_spray_drift") incorporation_depth = form.getvalue("incorporation_depth") solubility = form.getvalue("solubility") aerobic_aquatic_metabolism = form.getvalue("aerobic_aquatic_metabolism") hydrolysis = form.getvalue("hydrolysis") photolysis_aquatic_half_life = form.getvalue("photolysis_aquatic_half_life") if application_method == "a" or application_method == "c": incorporation_depth = 0 if application_method == "d": no_spray_drift = 0 if aerobic_aquatic_metabolism > 0: hydrolysis_label = "NA" else: hydrolysis_label = hydrolysis ################label selection################################### if application_method == "a": application_method_label = "Aerial Spray" if aerial_size_dist == "a": aerial_size_dist_label = "Very Fine to Fine" ground_spray_type_label = "NA" spray_quality_label = "NA" airblast_type_label = "NA" elif aerial_size_dist == "b": aerial_size_dist_label = "Fine to Medium (EFED Default)" ground_spray_type_label = "NA" spray_quality_label = "NA" airblast_type_label = "NA" elif aerial_size_dist == "c": aerial_size_dist_label = "Medium to Coarse" ground_spray_type_label = "NA" spray_quality_label = "NA" airblast_type_label = "NA" else: aerial_size_dist_label = "Coarse to Very Coarse" ground_spray_type_label = "NA" spray_quality_label = "NA" airblast_type_label = "NA" elif application_method == "b": application_method_label = "Ground Spray" if ground_spray_type == "a": if spray_quality == "a": aerial_size_dist_label = "NA" ground_spray_type_label = 'Low Boom Ground Spray (20" or less)' spray_quality_label = "Fine (EFED Default)" airblast_type_label = "NA" else: aerial_size_dist_label = "NA" ground_spray_type_label = 'Low Boom Ground Spray (20" or less)' spray_quality_label = "Medium-Coarse" airblast_type_label = "NA" else: if spray_quality == "a": aerial_size_dist_label = "NA" ground_spray_type_label = 'High Boom Ground Spray (20-50"; EFED Default)' spray_quality_label = "Fine (EFED Default)" airblast_type_label = "NA" else: aerial_size_dist_label = "NA" ground_spray_type_label = 'High Boom Ground Spray (20-50"; EFED Default)' spray_quality_label = "Medium-Coarse" airblast_type_label = "NA" elif application_method == "c": application_method_label = "Airblast Spray (Orchard & Vineyard)" if airblast_type == "a": aerial_size_dist_label = "NA" ground_spray_type_label = "NA" spray_quality_label = "NA" airblast_type_label = "Orchards and Dormant Vineyards" else: aerial_size_dist_label = "NA" ground_spray_type_label = "NA" spray_quality_label = "NA" airblast_type_label = "Foliated Vineyards" else: application_method_label = "NA" aerial_size_dist_label = "NA" ground_spray_type_label = "NA" spray_quality_label = "NA" airblast_type_label = "NA" ########################################################################################## geneec_obj = geneec_model.geneec( "single", chem_name, application_target, application_rate, number_of_applications, interval_between_applications, Koc, aerobic_soil_metabolism, wet_in, application_method, application_method_label, aerial_size_dist, ground_spray_type, airblast_type, spray_quality, no_spray_drift, incorporation_depth, solubility, aerobic_aquatic_metabolism, hydrolysis, photolysis_aquatic_half_life, ) templatepath = os.path.dirname(__file__) + "/../templates/" ChkCookie = self.request.cookies.get("ubercookie") html = uber_lib.SkinChk(ChkCookie, "GENEEC Output") html = html + template.render( templatepath + "02uberintroblock_wmodellinks.html", {"model": "geneec", "page": "output"} ) html = html + template.render(templatepath + "03ubertext_links_left.html", {}) html = html + template.render( templatepath + "04uberoutput_start.html", {"model": "geneec", "model_attributes": "GENEEC Output"} ) html = html + geneec_tables.timestamp(geneec_obj) html = html + geneec_tables.table_all(geneec_obj) html = html + template.render(templatepath + "export.html", {}) html = html + template.render(templatepath + "04uberoutput_end.html", {}) html = html + template.render(templatepath + "06uberfooter.html", {"links": ""}) rest_funcs.save_dic(html, geneec_obj.__dict__, "geneec", "single") self.response.out.write(html)
def post(self): form = cgi.FieldStorage() # args={} #for keys in form: # args[keys]=form.getvalue(keys) drop_size = form.getvalue('drop_size') ecosystem_type = form.getvalue('ecosystem_type') application_method = form.getvalue('application_method') boom_height = form.getvalue('boom_height') orchard_type = form.getvalue('orchard_type') application_rate = form.getvalue('application_rate') aquatic_type = form.getvalue('aquatic_type') distance = form.getvalue('distance') calculation_input = form.getvalue('calculation_input') # init_avg_dep_foa = form.getvalue('init_avg_dep_foa') # avg_depo_gha = form.getvalue('avg_depo_gha') # avg_depo_lbac = form.getvalue('avg_depo_lbac') # deposition_ngL = form.getvalue('deposition_ngL') # deposition_mgcm = form.getvalue('deposition_mgcm') # nasae = form.getvalue('nasae') # y = form.getvalue('y') # x = form.getvalue('x') # express_y = form.getvalue('express_y') agdrift_obj = agdrift_model.agdrift(True, True, 'single',drop_size, ecosystem_type, application_method, boom_height, orchard_type, application_rate, distance, aquatic_type, calculation_input, None) text_file = open('agdrift/agdrift_description.txt','r') x = text_file.read() templatepath = os.path.dirname(__file__) + '/../templates/' ChkCookie = self.request.cookies.get("ubercookie") html = uber_lib.SkinChk(ChkCookie, "AgDrift Output") html = html + template.render(templatepath + '02uberintroblock_wmodellinks.html', {'model':'agdrift','page':'output'}) html = html + template.render (templatepath + '03ubertext_links_left.html', {}) html = html + template.render(templatepath + '04uberoutput_start.html', { 'model':'agdrift', 'model_attributes':'AgDrift Output'}) html = html + agdrift_tables.timestamp(agdrift_obj) html = html + agdrift_tables.table_all(agdrift_obj) # <H3 class="out_1 collapsible" id="section1"><span></span>User Inputs</H3> # <div class="out_"> # <table class="out_"> # <tr> # <th colspan="2">Inputs: Chemical Identity</th> # </tr> # <tr> # <td>Application method</td> # <td id="app_method_val">%s</td> # </tr> # <tr id="Orc_type"> # <td>Orchard type</td> # <td>%s</td> # </tr> # <tr> # <td>Drop size</td> # <td>%s</td> # </tr> # <tr> # <td>Ecosystem type</td> # <td>%s</td> # </tr> # </table> # </div> # """ % (application_method, orchard_type, drop_size, ecosystem_type) # html = html + """ # <table style="display:none;"> # <tr> # <td>distance</td> # <td id="distance">%s</td> # </tr> # <tr> # <td>deposition</td> # <td id="deposition">%s</td> # </tr> # </table> # <br> # <h3 class="out_2 collapsible" id="section2"><span></span>Results</h3> #<div> # """%(results[0], results[1]) html = html + template.render(templatepath + 'agdrift-output-jqplot_header.html', {}) html = html + """ </div> """ html = html + template.render(templatepath + 'export.html', {}) html = html + template.render(templatepath + '04uberoutput_end.html', {}) html = html + template.render(templatepath + '06uberfooter.html', {'links': ''}) rest_funcs.save_dic(html, agdrift_obj.__dict__, "agdrift", "single") self.response.out.write(html)
def post(self): form = cgi.FieldStorage() #print form # args={} #for keys in form: # args[keys]=form.getvalue(keys) drop_size = form.getvalue('drop_size') ecosystem_type = form.getvalue('ecosystem_type') application_method = form.getvalue('application_method') boom_height = form.getvalue('boom_height') orchard_type = form.getvalue('orchard_type') # application_rate = form.getvalue('application_rate') aquatic_type = form.getvalue('aquatic_type') distance = form.getvalue('distance') calculation_input = form.getvalue('calculation_input') # init_avg_dep_foa = form.getvalue('init_avg_dep_foa') # avg_depo_gha = form.getvalue('avg_depo_gha') # avg_depo_lbac = form.getvalue('avg_depo_lbac') # deposition_ngL = form.getvalue('deposition_ngL') # deposition_mgcm = form.getvalue('deposition_mgcm') # nasae = form.getvalue('nasae') # y = form.getvalue('y') # x = form.getvalue('x') # express_y = form.getvalue('express_y') chem_name = form.getvalue('chemical_name') use = form.getvalue('Use') formu_name = form.getvalue('Formulated_product_name') a_i = form.getvalue('percent_ai') # print a_i a_i = float(a_i)/100 Application_type = form.getvalue('Application_type') seed_crop = float(form.getvalue('seed_crop')) seed_crop_v = form.getvalue('seed_crop_v') p_i = form.getvalue('percent_incorporated') p_i = float(p_i)/100 seed_treatment_formulation_name = form.getvalue('seed_treatment_formulation_name') den = form.getvalue('density_of_product') den = float(den) m_s_r_p = form.getvalue('maximum_seedling_rate_per_use') m_s_r_p = float(m_s_r_p) r_s = form.getvalue('row_sp') r_s=float(r_s) b_w = form.getvalue('bandwidth') #convert to ft b_w = float(b_w)/12 if Application_type=='Seed Treatment': n_a = 1 else: n_a = float(form.getvalue('noa')) rate_out = [] day_out = [0] for i in range(int(n_a)): j=i+1 rate_temp = form.getvalue('rate'+str(j)) rate_out.append(float(rate_temp)) # day_temp = float(form.getvalue('day'+str(j))) # day_out.append(day_temp) h_l = form.getvalue('Foliar_dissipation_half_life') ld50_bird = form.getvalue('avian_ld50') lc50_bird = form.getvalue('avian_lc50') NOAEC_bird = float(form.getvalue('avian_NOAEC')) try: NOAEL_bird = float(form.getvalue('avian_NOAEL')) except: NOAEL_bird = 'N/A' aw_bird_sm = form.getvalue('body_weight_of_the_assessed_bird_small') aw_bird_sm = float(aw_bird_sm) aw_bird_md = form.getvalue('body_weight_of_the_assessed_bird_medium') aw_bird_md = float(aw_bird_md) aw_bird_lg = form.getvalue('body_weight_of_the_assessed_bird_large') aw_bird_lg = float(aw_bird_lg) Species_of_the_tested_bird_avian_ld50 = form.getvalue('Species_of_the_tested_bird_avian_ld50') Species_of_the_tested_bird_avian_lc50 = form.getvalue('Species_of_the_tested_bird_avian_lc50') Species_of_the_tested_bird_avian_NOAEC = form.getvalue('Species_of_the_tested_bird_avian_NOAEC') Species_of_the_tested_bird_avian_NOAEL = form.getvalue('Species_of_the_tested_bird_avian_NOAEL') tw_bird_ld50 = float(form.getvalue('bw_avian_ld50')) tw_bird_lc50 = float(form.getvalue('bw_avian_lc50')) tw_bird_NOAEC = float(form.getvalue('bw_avian_NOAEC')) tw_bird_NOAEL = float(form.getvalue('bw_avian_NOAEL')) x = form.getvalue('mineau_scaling_factor') ld50_mamm = form.getvalue('mammalian_ld50') try: lc50_mamm = float(form.getvalue('mammalian_lc50')) except: lc50_mamm = 'N/A' NOAEC_mamm = form.getvalue('mammalian_NOAEC') NOAEC_mamm = float(NOAEC_mamm) NOAEL_mamm = form.getvalue('mammalian_NOAEL') aw_mamm_sm = form.getvalue('body_weight_of_the_assessed_mammal_small') aw_mamm_sm = float(aw_mamm_sm) aw_mamm_md = form.getvalue('body_weight_of_the_assessed_mammal_medium') aw_mamm_md = float(aw_mamm_md) aw_mamm_lg = form.getvalue('body_weight_of_the_assessed_mammal_large') aw_mamm_lg = float(aw_mamm_lg) tw_mamm = form.getvalue('body_weight_of_the_tested_mammal') tw_mamm = float(tw_mamm) agdrift_obj = agdrift_model.agdrift(True, True, 'single', drop_size, ecosystem_type, application_method, boom_height, orchard_type, rate_out[0], distance, aquatic_type, calculation_input, None) x_agdrif=agdrift_obj.x trex_obj = trex2_model.trex2('single', chem_name, use, formu_name, a_i, Application_type, seed_treatment_formulation_name, seed_crop, seed_crop_v, r_s, b_w, p_i, den, h_l, n_a, [agdrift_obj.init_avg_dep_foa*i for i in rate_out], day_out, ld50_bird, lc50_bird, NOAEC_bird, NOAEL_bird, aw_bird_sm, aw_bird_md, aw_bird_lg, Species_of_the_tested_bird_avian_ld50, Species_of_the_tested_bird_avian_lc50, Species_of_the_tested_bird_avian_NOAEC, Species_of_the_tested_bird_avian_NOAEL, tw_bird_ld50, tw_bird_lc50, tw_bird_NOAEC, tw_bird_NOAEL, x, ld50_mamm, lc50_mamm, NOAEC_mamm, NOAEL_mamm, aw_mamm_sm, aw_mamm_md, aw_mamm_lg, tw_mamm, m_s_r_p) # templatepath = os.path.dirname(__file__) + '/../templates/' # ChkCookie = self.request.cookies.get("ubercookie") # html = uber_lib.SkinChk(ChkCookie, "AgDrift-TREX Output") # html = html + template.render(templatepath + '02uberintroblock_wmodellinks.html', {'model':'agdrift_trex','page':'output'}) # html = html + template.render (templatepath + '03ubertext_links_left.html', {}) # html = html + template.render(templatepath + '04uberoutput_start.html', { # 'model':'agdrift_trex', # 'model_attributes':'AgDrift-T-Rex Output'}) # html = html + agdrift_trex_tables.timestamp(agdrift_obj) # html = html + agdrift_tables.table_all(agdrift_obj) # html = html + trex2_tables.table_all(trex_obj)[0] # html = html + template.render(templatepath + 'agdrift-output-jqplot_header.html', {}) # html = html + template.render(templatepath + 'export.html', {}) # html = html + template.render(templatepath + '04uberoutput_end.html', {}) # html = html + template.render(templatepath + '06uberfooter.html', {'links': ''}) #Note: If you need to rebuild the output page based on saved class, #variables named x_agdrif and x_trex in the class agdrift_trex_obj #are x in their own instance (agdrift_obj.x, trex_obj.x). agdrift_trex_obj = merge(agdrift_obj, trex_obj) agdrift_trex_obj.x_agdrif=x_agdrif agdrift_trex_obj.x_trex=trex_obj.x logging.info(vars(agdrift_trex_obj)) rest_funcs.save_dic(html, agdrift_trex_obj.__dict__, "agdrift_trex", "single") self.response.out.write(html)
def post(self): form = cgi.FieldStorage() ######Chemical####### wat_hl = form.getvalue('wat_hl') wat_t = form.getvalue('wat_t') ben_hl = form.getvalue('ben_hl') ben_t = form.getvalue('ben_t') unf_hl = form.getvalue('unf_hl') unf_t = form.getvalue('unf_t') aqu_hl = form.getvalue('aqu_hl') aqu_t = form.getvalue('aqu_t') hyd_hl = form.getvalue('hyd_hl') mw = form.getvalue('mw') vp = form.getvalue('vp') sol = form.getvalue('sol') koc = form.getvalue('koc') hea_h = form.getvalue('hea_h') hea_r_t = form.getvalue('hea_r_t') ######Application####### noa = form.getvalue('noa') mm_out = np.zeros(shape=(int(noa),1)) dd_out = np.zeros(shape=(int(noa),1)) ma_out = np.zeros(shape=(int(noa),1)) sr_out = np.zeros(shape=(int(noa),1)) for i in range(int(noa)): j=i+1 mm_temp = form.getvalue('mm'+str(j)) mm_out[i,] = int(mm_temp) dd_temp = form.getvalue('dd'+str(j)) dd_out[i,] = int(dd_temp) ma_temp = form.getvalue('ma'+str(j)) ma_out[i,] = ma_temp sr_temp = form.getvalue('sr'+str(j)) sr_out[i,] = sr_temp ######Location####### weather = form.getvalue('weather') wea_l = form.getvalue('wea_l') ######Floods####### nof = form.getvalue('nof') date_f1 = form.getvalue('date_f1') nod_out = np.zeros(shape=(int(nof),1)) fl_out = np.zeros(shape=(int(nof),1)) wl_out = np.zeros(shape=(int(nof),1)) ml_out = np.zeros(shape=(int(nof),1)) to_out = np.zeros(shape=(int(nof),1)) for k in range(int(nof)): jj=k+1 if (jj==1): nod_out[k,] = int(0) else: nod_temp = form.getvalue('nod'+str(jj)) nod_out[k,] = int(nod_temp) fl_temp = form.getvalue('fl'+str(jj)) fl_out[k,] = fl_temp wl_temp = form.getvalue('wl'+str(jj)) wl_out[k,] = wl_temp ml_temp = form.getvalue('ml'+str(jj)) ml_out[k,] = ml_temp to_temp = form.getvalue('to'+str(jj)) to_out[k,] = to_temp ######Crop####### zero_height_ref = form.getvalue('zero_height_ref') days_zero_full = form.getvalue('days_zero_full') days_zero_removal = form.getvalue('days_zero_removal') max_frac_cov = form.getvalue('max_frac_cov') ######Physical####### mas_tras_cof = form.getvalue('mas_tras_cof') leak = form.getvalue('leak') ref_d = form.getvalue('ref_d') ben_d = form.getvalue('ben_d') ben_por = form.getvalue('ben_por') dry_bkd = form.getvalue('dry_bkd') foc_wat = form.getvalue('foc_wat') foc_ben = form.getvalue('foc_ben') ss = form.getvalue('ss') wat_c_doc = form.getvalue('wat_c_doc') chl = form.getvalue('chl') dfac = form.getvalue('dfac') q10 = form.getvalue('q10') ######Output####### area_app = form.getvalue('area_app') pfam_obj=pfam_model.pfam(wat_hl,wat_t,ben_hl,ben_t,unf_hl,unf_t,aqu_hl,aqu_t,hyd_hl,mw,vp,sol,koc,hea_h,hea_r_t, noa,dd_out.tolist(),mm_out.tolist(),ma_out.tolist(),sr_out.tolist(),weather, wea_l, nof,date_f1,nod_out.tolist(),fl_out.tolist(),wl_out.tolist(),ml_out.tolist(),to_out.tolist(), zero_height_ref,days_zero_full,days_zero_removal,max_frac_cov,mas_tras_cof,leak,ref_d,ben_d, ben_por,dry_bkd,foc_wat,foc_ben,ss,wat_c_doc,chl,dfac,q10,area_app) x_date1=json.dumps(pfam_obj.final_res[1][1]) x_re_v_f = [float(i) for i in pfam_obj.final_res[1][2]] x_re_c_f = [float(i) for i in pfam_obj.final_res[1][3]] setattr(pfam_obj, "x_date1", x_date1) setattr(pfam_obj, "x_re_v_f", x_re_v_f) setattr(pfam_obj, "x_re_c_f", x_re_c_f) x_date2=json.dumps(pfam_obj.final_res[1][4]) x_water = [float(i) for i in pfam_obj.final_res[1][5]] x_water_level = [float(i) for i in pfam_obj.final_res[1][6]] x_ben_tot = [float(i) for i in pfam_obj.final_res[1][7]] x_ben_por = [float(i)*1000000 for i in pfam_obj.final_res[1][8]] setattr(pfam_obj, "x_date2", x_date2) setattr(pfam_obj, "x_water", x_water) setattr(pfam_obj, "x_water_level", x_water_level) setattr(pfam_obj, "x_ben_tot", x_ben_tot) setattr(pfam_obj, "x_ben_por", x_ben_por) templatepath = os.path.dirname(__file__) + '/../templates/' ChkCookie = self.request.cookies.get("ubercookie") html = uber_lib.SkinChk(ChkCookie, "PFAM Output") html = html + template.render(templatepath + '02uberintroblock_wmodellinks.html', {'model':'pfam','page':'output'}) html = html + template.render (templatepath + '03ubertext_links_left.html', {}) html = html + template.render(templatepath + '04uberoutput_start.html', { 'model':'pfam', 'model_attributes':'PFAM Output'}) html = html + pfam_tables.table_all(pfam_obj) html = html + template.render(templatepath + 'pfam-output.html', {}) html = html + template.render(templatepath + '04uberoutput_end.html', {}) html = html + template.render(templatepath + 'export.html', {}) html = html + template.render(templatepath + '06uberfooter.html', {'links': ''}) rest_funcs.save_dic(html, pfam_obj.__dict__, 'pfam', 'single') self.response.out.write(html)
def post(self): form = cgi.FieldStorage() chem_name = form.getvalue('chemical_name') use = form.getvalue('Use') formu_name = form.getvalue('Formulated_product_name') a_i = form.getvalue('percent_ai') a_i = float(a_i)/100 a_r = form.getvalue('application_rate') a_r = float(a_r) n_a = form.getvalue('number_of_applications') n_a = float(n_a) i_a = form.getvalue('interval_between_applications') i_a = float(i_a) h_l = form.getvalue('Foliar_dissipation_half_life') h_l = float(h_l) avian_ld50 = float(form.getvalue('avian_ld50')) avian_lc50 = float(form.getvalue('avian_lc50')) avian_NOAEC = float(form.getvalue('avian_NOAEC')) avian_NOAEL = float(form.getvalue('avian_NOAEL')) Species_of_the_tested_bird_avian_ld50 = form.getvalue('Species_of_the_tested_bird_avian_ld50') Species_of_the_tested_bird_avian_lc50 = form.getvalue('Species_of_the_tested_bird_avian_lc50') Species_of_the_tested_bird_avian_NOAEC = form.getvalue('Species_of_the_tested_bird_avian_NOAEC') Species_of_the_tested_bird_avian_NOAEL = form.getvalue('Species_of_the_tested_bird_avian_NOAEL') bw_avian_ld50 = float(form.getvalue('bw_avian_ld50')) bw_avian_lc50 = float(form.getvalue('bw_avian_lc50')) bw_avian_NOAEC = float(form.getvalue('bw_avian_NOAEC')) bw_avian_NOAEL = float(form.getvalue('bw_avian_NOAEL')) mineau_scaling_factor = form.getvalue('mineau_scaling_factor') mineau_scaling_factor = float(mineau_scaling_factor) c_mamm_a = form.getvalue('body_weight_of_the_consumed_mammal_a') c_mamm_a = float(c_mamm_a) c_herp_a = form.getvalue('body_weight_of_the_consumed_herp_a') c_herp_a = float(c_herp_a) bw_herp_a_sm = form.getvalue('BW_herptile_a_sm') bw_herp_a_sm = float(bw_herp_a_sm) bw_herp_a_md = form.getvalue('BW_herptile_a_md') bw_herp_a_md = float(bw_herp_a_md) bw_herp_a_lg = form.getvalue('BW_herptile_a_lg') bw_herp_a_lg = float(bw_herp_a_lg) wp_herp_a_sm = form.getvalue('W_p_a_sm') wp_herp_a_sm = float(wp_herp_a_sm)/100 wp_herp_a_md = form.getvalue('W_p_a_md') wp_herp_a_md = float(wp_herp_a_md)/100 wp_herp_a_lg = form.getvalue('W_p_a_lg') wp_herp_a_lg = float(wp_herp_a_lg)/100 text_file = open('therps/therps_description.txt','r') x1 = text_file.read() templatepath = os.path.dirname(__file__) + '/../templates/' ChkCookie = self.request.cookies.get("ubercookie") html = uber_lib.SkinChk(ChkCookie, "T-Herps Output") html = html + template.render(templatepath + '02uberintroblock_wmodellinks.html', {'model':'therps','page':'output'}) html = html + template.render (templatepath + '03ubertext_links_left.html', {}) html = html + template.render(templatepath + '04uberoutput_start.html', { 'model':'therps', 'model_attributes':'T-Herps Output'}) therps_obj = therps_model.therps('single',chem_name, use, formu_name, a_i, h_l, n_a, i_a, a_r, avian_ld50, avian_lc50, avian_NOAEC, avian_NOAEL, Species_of_the_tested_bird_avian_ld50, Species_of_the_tested_bird_avian_lc50, Species_of_the_tested_bird_avian_NOAEC, Species_of_the_tested_bird_avian_NOAEL, bw_avian_ld50, bw_avian_lc50, bw_avian_NOAEC, bw_avian_NOAEL, mineau_scaling_factor, bw_herp_a_sm, bw_herp_a_md, bw_herp_a_lg, wp_herp_a_sm, wp_herp_a_md, wp_herp_a_lg, c_mamm_a, c_herp_a) html = html + therps_tables.timestamp(therps_obj) html = html + therps_tables.table_all(therps_obj)[0] html = html + template.render(templatepath + 'export.html', {}) html = html + template.render(templatepath + '04uberoutput_end.html', {}) html = html + template.render(templatepath + '06uberfooter.html', {'links': ''}) rest_funcs.save_dic(html, therps_obj.__dict__, "therps", "single") self.response.out.write(html)
def get(self): text_file1 = open('terrplant/terrplant_description.txt','r') x = text_file1.read() templatepath = os.path.dirname(__file__) + '/../templates/' ChkCookie = self.request.cookies.get("ubercookie") html = uber_lib.SkinChk(ChkCookie, "TerrPlant QA/QC") html = html + template.render(templatepath + '02uberintroblock_wmodellinks.html', {'model':'terrplant','page':'qaqc'}) html = html + template.render (templatepath + '03ubertext_links_left.html', {}) html = html + template.render(templatepath + '04uberoutput_start.html', { 'model':'terrplant', 'model_attributes':'TerrPlant QAQC'}) terr = terrplant_model.terrplant(True,True,version_terrplant,"qaqc",A[0],I[0],R[0],D[0],nms[0],lms[0],nds[0],lds[0],chemical_name[0],pc_code[0],use[0],application_method[0],application_form[0],solubility[0]) terr.chemical_name_expected = chemical_name[0] terr.pc_code_expected = pc_code[0] terr.use_expected = use[0] terr.application_method_expected = application_method[0] terr.application_form_expected = application_form[0] terr.solubility_expected = solubility[0] # terr.rundry_results_expected = out_fun_rundry[0] # terr.runsemi_results_expected = out_fun_runsemi[0] # terr.spray_results_expected = out_fun_spray[0] # terr.totaldry_results_expected = out_fun_totaldry[0] # terr.totalsemi_results_expected = out_fun_totalsemi[0] terr.nms_expected = nms[0] terr.nds_expected = nds[0] terr.lms_expected = lms[0] terr.lds_expected = lds[0] terr.nmv_expected = nmv[0] terr.ndv_expected = ndv[0] terr.lmv_expected = lmv[0] terr.ldv_expected = ldv[0] terr.nmsRQdry_results_expected = nmsRQdry_results[0] terr.lmsRQdry_results_expected = lmsRQdry_results[0] terr.ndsRQdry_results_expected = ndsRQdry_results[0] terr.ldsRQdry_results_expected = ldsRQdry_results[0] terr.nmsRQsemi_results_expected = nmsRQsemi_results[0] terr.lmsRQsemi_results_expected = lmsRQsemi_results[0] terr.ndsRQsemi_results_expected = ndsRQsemi_results[0] terr.ldsRQsemi_results_expected = ldsRQsemi_results[0] terr.nmsRQspray_results_expected = nmsRQspray_results[0] terr.lmsRQspray_results_expected = lmsRQspray_results[0] terr.ndsRQspray_results_expected = ndsRQspray_results[0] terr.ldsRQspray_results_expected = ldsRQspray_results[0] # terr.nmsRQdry_results_expected = out_fun_nmsRQdry[0] # terr.nmsRQsemi_results_expected = out_fun_nmsRQsemi[0] # terr.nmsRQspray_results_expected = out_fun_nmsRQspray[0] # terr.lmsRQdry_results_expected = out_fun_lmsRQdry[0] # terr.lmsRQsemi_results_expected = out_fun_lmsRQsemi[0] # terr.lmsRQspray_results_expected = out_fun_lmsRQspray[0] # terr.ndsRQdry_results_expected = out_fun_ndsRQdry[0] # terr.ndsRQsemi_results_expected = out_fun_ndsRQsemi[0] # terr.ndsRQspray_results_expected = out_fun_ndsRQspray[0] # terr.ldsRQdry_results_expected = out_fun_ldsRQdry[0] # terr.ldsRQsemi_results_expected = out_fun_ldsRQsemi[0] # terr.ldsRQspray_results_expected = out_fun_ldsRQspray[0] html = html + terrplant_tables.timestamp(terr) html = html + terrplant_tables.table_all_qaqc(terrplant_tables.pvheadings, terrplant_tables.pvuheadings,terrplant_tables.deheadingsqaqc, terrplant_tables.plantec25noaecheadings,terrplant_tables.plantecdrysemisprayheadingsqaqc, terrplant_tables.tmpl, terr) html = html + template.render(templatepath + 'export.html', {}) html = html + template.render(templatepath + '04uberoutput_end.html', {'sub_title': ''}) html = html + template.render(templatepath + '06uberfooter.html', {'links': ''}) rest_funcs.save_dic(html, terr.__dict__, 'terrplant', 'qaqc') self.response.out.write(html)
def post(self): form = cgi.FieldStorage() scenarios =form.getvalue('Scenarios') chem_name = form.getvalue('chemical_name') noa = int(form.getvalue('NOA')) unit = form.getvalue('Unit') station = station_pool[scenarios] met_o = met_pool[scenarios] inp_o = inp_pool[scenarios] run_o = run_pool[scenarios] exam_o = exam_pool[scenarios] met_o=str(met_o) inp_o=str(inp_o) run_o=str(run_o) exam_o=str(exam_o) #################################################### ######inputs related to different applications##### #################################################### Apt = [] #Application timings (indicators) Apt_p = [] #Application timings (words) DayRe = [] #Days relevant to the application Ap_mp = [] #Application methods (words) Ar = [] #Application rates CAM_f_p = [] #Chemical application Methods (words) CAM_f = [] #Chemical application Methods (indicators) EFF_p = [] #EFF (words) EFF = [] #EFF (numbers) Drft_p = [] #Drft (words) Drft = [] #Drft (numbers) DEPI_p = [] #DEPI (numbers) Date_inp = [] #Date for i in range(noa): if i<1: Apt_temp = form.getvalue('Apt') Apt.append(Apt_temp) Date_inp_temp=form.getvalue('Date_apt') Date_inp.append(Date_inp_temp) DayRe_temp = form.getvalue('DayRe') DayRe.append(DayRe_temp) CAM_1 = form.getvalue('CAM_1') CAM_2 = form.getvalue('CAM_2') CAM_3 = form.getvalue('CAM_3') CAM_4 = form.getvalue('CAM_4') DEPI = form.getvalue('DEPI') Ap_m_temp = form.getvalue('Ap_m') Ap_mp.append(przm_exams_model.Ap_m_select(Ap_m_temp, CAM_1, CAM_2, CAM_3, CAM_4)[0]) Ar_temp = form.getvalue('Ar') Ar.append(float(Ar_temp)) CAM_f_p.append(przm_exams_model.CAM_select(przm_exams_model.Ap_m_select(Ap_m_temp, CAM_1, CAM_2, CAM_3, CAM_4)[1], DEPI)[0]) #CAM_f_p DEPI_p.append(przm_exams_model.CAM_select(przm_exams_model.Ap_m_select(Ap_m_temp, CAM_1, CAM_2, CAM_3, CAM_4)[1], DEPI)[1]) #DEPI CAM_f.append(przm_exams_model.CAM_select(przm_exams_model.Ap_m_select(Ap_m_temp, CAM_1, CAM_2, CAM_3, CAM_4)[1], DEPI)[2]) #CAM_f EFF_p.append(przm_exams_model.Ap_m_select(Ap_m_temp, CAM_1, CAM_2, CAM_3, CAM_4)[2]) Drft_p.append(przm_exams_model.Ap_m_select(Ap_m_temp, CAM_1, CAM_2, CAM_3, CAM_4)[3]) EFF.append(przm_exams_model.Ap_m_select(Ap_m_temp, CAM_1, CAM_2, CAM_3, CAM_4)[4]) Drft.append(przm_exams_model.Ap_m_select(Ap_m_temp, CAM_1, CAM_2, CAM_3, CAM_4)[5]) if Apt_temp=='1': Apt_p.append('Relative to planting') elif Apt_temp=='2': Apt_p.append('Relative to emergence') elif Apt_temp=='3': Apt_p.append('Relative to maturity') elif Apt_temp=='4': Apt_p.append('Relative to harvest') elif Apt_temp=='5': Apt_p.append('Enter your own dates') else: j=i+1 Apt_temp = form.getvalue('Apt'+str(j)) Apt.append(Apt_temp) Date_inp_temp=form.getvalue('Date_apt'+str(j)) Date_inp.append(Date_inp_temp) DayRe_temp = form.getvalue('DayRe'+str(j)) DayRe.append(DayRe_temp) CAM_1 = form.getvalue('CAM_1_'+str(j)) CAM_2 = form.getvalue('CAM_2_'+str(j)) CAM_3 = form.getvalue('CAM_3_'+str(j)) CAM_4 = form.getvalue('CAM_4_'+str(j)) DEPI = form.getvalue('DEPI_'+str(j)) Ap_m_temp = form.getvalue('Ap_m'+str(j)) Ap_mp.append(przm_exams_model.Ap_m_select(Ap_m_temp, CAM_1, CAM_2, CAM_3, CAM_4)[0]) Ar_temp = form.getvalue('Ar'+str(j)) Ar.append(float(Ar_temp)) CAM_f_p.append(przm_exams_model.CAM_select(przm_exams_model.Ap_m_select(Ap_m_temp, CAM_1, CAM_2, CAM_3, CAM_4)[1], DEPI)[0]) #CAM_f_p DEPI_p.append(przm_exams_model.CAM_select(przm_exams_model.Ap_m_select(Ap_m_temp, CAM_1, CAM_2, CAM_3, CAM_4)[1], DEPI)[1]) #DEPI CAM_f.append(przm_exams_model.CAM_select(przm_exams_model.Ap_m_select(Ap_m_temp, CAM_1, CAM_2, CAM_3, CAM_4)[1], DEPI)[2]) #CAM_f EFF_p.append(przm_exams_model.Ap_m_select(Ap_m_temp, CAM_1, CAM_2, CAM_3, CAM_4)[2]) Drft_p.append(przm_exams_model.Ap_m_select(Ap_m_temp, CAM_1, CAM_2, CAM_3, CAM_4)[3]) EFF.append(przm_exams_model.Ap_m_select(Ap_m_temp, CAM_1, CAM_2, CAM_3, CAM_4)[4]) Drft.append(przm_exams_model.Ap_m_select(Ap_m_temp, CAM_1, CAM_2, CAM_3, CAM_4)[5]) if Apt_temp=='1': Apt_p.append('Relative to planting') elif Apt_temp=='2': Apt_p.append('Relative to emergence') elif Apt_temp=='3': Apt_p.append('Relative to maturity') elif Apt_temp=='4': Apt_p.append('Relative to harvest') elif Apt_temp=='5': Apt_p.append('Enter your own dates') MM=przm_exams_model.es_date(noa, scenarios, Apt, DayRe, Date_inp)[0] DD=przm_exams_model.es_date(noa, scenarios, Apt, DayRe, Date_inp)[1] YY='61' if unit=='2': Ar=[1.12*kk for kk in Ar] else: Ar=Ar Ar_text=['%.4f' %i for i in Ar] CAM_f_f = [float(i) for i in CAM_f] CAM_text=['%.2f' %i for i in CAM_f_f] DEPI_f = [float(i) for i in DEPI_p] DEPI_text=['%.2f' %i for i in DEPI_f] ################################################### #################EXAMS Inputs###################### ################################################### farm =form.getvalue('farm_pond') mw = form.getvalue('molecular_weight') sol = form.getvalue('solubility') koc = form.getvalue('Koc') vp = form.getvalue('vapor_pressure') aem = form.getvalue('aerobic_aquatic_metabolism') anm = form.getvalue('anaerobic_aquatic_metabolism') aqp = form.getvalue('aquatic_direct_photolysis') tmper = form.getvalue('temperature') n_ph = float(form.getvalue('n_ph')) ph_out = [] hl_out = [] for i in range(int(n_ph)): j=i+1 ph_temp = form.getvalue('ph'+str(j)) ph_out.append(float(ph_temp)) hl_temp = float(form.getvalue('hl'+str(j))) hl_out.append(hl_temp) przm_exams_obj = przm_exams_model.przm_exams(chem_name, noa, scenarios, unit, met_o, inp_o, run_o, exam_o, MM, DD, YY, CAM_f, DEPI_text, Ar_text, EFF, Drft, Apt_p, DayRe, Ap_mp, Ar, CAM_f_p, EFF_p, Drft_p, DEPI_f, farm, mw, sol, koc, vp, aem, anm, aqp, tmper, n_ph, ph_out, hl_out) templatepath = os.path.dirname(__file__) + '/../templates/' ChkCookie = self.request.cookies.get("ubercookie") html = uber_lib.SkinChk(ChkCookie, "PRZM EXAMS Output") html = html + template.render(templatepath + '02uberintroblock_wmodellinks.html', {'model':'przm_exams','page':'output'}) html = html + template.render (templatepath + '03ubertext_links_left.html', {}) html = html + template.render(templatepath + '04uberoutput_start.html', { 'model':'express', 'model_attributes':'PRZM-EXAMS Output'}) html = html + przm_exams_tables.timestamp(przm_exams_obj) html = html + przm_exams_tables.table_all(przm_exams_obj) html = html + template.render(templatepath + 'export.html', {}) html = html + template.render(templatepath + '04uberoutput_end.html', {}) html = html + template.render(templatepath + '06uberfooter.html', {'links': ''}) rest_funcs.save_dic(html, przm_exams_obj.__dict__, 'przm_exams', 'single') self.response.out.write(html)
def post(self): form = cgi.FieldStorage() chem_name = form.getvalue('chemical_name') use = form.getvalue('Use') formu_name = form.getvalue('Formulated_product_name') a_i = form.getvalue('percent_ai') a_i = float(a_i)/100 Application_type = form.getvalue('Application_type') seed_crop = float(form.getvalue('seed_crop')) seed_crop_v = form.getvalue('seed_crop_v') p_i = form.getvalue('percent_incorporated') p_i = float(p_i)/100 seed_treatment_formulation_name = form.getvalue('seed_treatment_formulation_name') den = form.getvalue('density_of_product') den = float(den) m_s_r_p = form.getvalue('maximum_seedling_rate_per_use') m_s_r_p = float(m_s_r_p) r_s = form.getvalue('row_sp') r_s=float(r_s) b_w = form.getvalue('bandwidth') #convert to ft b_w = float(b_w)/12 if Application_type=='Seed Treatment': n_a = 1 else: n_a = float(form.getvalue('noa')) rate_out = [] day_out = [] for i in range(int(n_a)): j=i+1 rate_temp = form.getvalue('rate'+str(j)) rate_out.append(float(rate_temp)) day_temp = float(form.getvalue('day'+str(j))) day_out.append(day_temp) h_l = form.getvalue('Foliar_dissipation_half_life') ld50_bird = form.getvalue('avian_ld50') lc50_bird = form.getvalue('avian_lc50') NOAEC_bird = float(form.getvalue('avian_NOAEC')) try: NOAEL_bird = float(form.getvalue('avian_NOAEL')) except: NOAEL_bird = 'N/A' aw_bird_sm = form.getvalue('body_weight_of_the_assessed_bird_small') aw_bird_sm = float(aw_bird_sm) aw_bird_md = form.getvalue('body_weight_of_the_assessed_bird_medium') aw_bird_md = float(aw_bird_md) aw_bird_lg = form.getvalue('body_weight_of_the_assessed_bird_large') aw_bird_lg = float(aw_bird_lg) Species_of_the_tested_bird_avian_ld50 = form.getvalue('Species_of_the_tested_bird_avian_ld50') Species_of_the_tested_bird_avian_lc50 = form.getvalue('Species_of_the_tested_bird_avian_lc50') Species_of_the_tested_bird_avian_NOAEC = form.getvalue('Species_of_the_tested_bird_avian_NOAEC') Species_of_the_tested_bird_avian_NOAEL = form.getvalue('Species_of_the_tested_bird_avian_NOAEL') tw_bird_ld50 = float(form.getvalue('bw_avian_ld50')) tw_bird_lc50 = float(form.getvalue('bw_avian_lc50')) tw_bird_NOAEC = float(form.getvalue('bw_avian_NOAEC')) tw_bird_NOAEL = float(form.getvalue('bw_avian_NOAEL')) x = form.getvalue('mineau_scaling_factor') ld50_mamm = form.getvalue('mammalian_ld50') try: lc50_mamm = float(form.getvalue('mammalian_lc50')) except: lc50_mamm = 'N/A' NOAEC_mamm = form.getvalue('mammalian_NOAEC') NOAEC_mamm = float(NOAEC_mamm) NOAEL_mamm = form.getvalue('mammalian_NOAEL') aw_mamm_sm = form.getvalue('body_weight_of_the_assessed_mammal_small') aw_mamm_sm = float(aw_mamm_sm) aw_mamm_md = form.getvalue('body_weight_of_the_assessed_mammal_medium') aw_mamm_md = float(aw_mamm_md) aw_mamm_lg = form.getvalue('body_weight_of_the_assessed_mammal_large') aw_mamm_lg = float(aw_mamm_lg) tw_mamm = form.getvalue('body_weight_of_the_tested_mammal') tw_mamm = float(tw_mamm) text_file = open('trex2/trex2_description.txt','r') x1 = text_file.read() templatepath = os.path.dirname(__file__) + '/../templates/' ChkCookie = self.request.cookies.get("ubercookie") html = uber_lib.SkinChk(ChkCookie, "TREX 1.5.2 Output") html = html + template.render(templatepath + '02uberintroblock_wmodellinks.html', {'model':'trex2','page':'output'}) html = html + template.render (templatepath + '03ubertext_links_left.html', {}) html = html + template.render(templatepath + '04uberoutput_start.html', { 'model':'trex2', 'model_attributes':'T-Rex 1.5.2 Output'}) trex2_obj = trex2_model.trex2("single", chem_name, use, formu_name, a_i, Application_type, seed_treatment_formulation_name, seed_crop, seed_crop_v, r_s, b_w, p_i, den, h_l, n_a, rate_out, day_out, ld50_bird, lc50_bird, NOAEC_bird, NOAEL_bird, aw_bird_sm, aw_bird_md, aw_bird_lg, Species_of_the_tested_bird_avian_ld50, Species_of_the_tested_bird_avian_lc50, Species_of_the_tested_bird_avian_NOAEC, Species_of_the_tested_bird_avian_NOAEL, tw_bird_ld50, tw_bird_lc50, tw_bird_NOAEC, tw_bird_NOAEL, x, ld50_mamm, lc50_mamm, NOAEC_mamm, NOAEL_mamm, aw_mamm_sm, aw_mamm_md, aw_mamm_lg, tw_mamm, m_s_r_p) html = html + trex2_tables.timestamp(trex2_obj) html = html + trex2_tables.table_all(trex2_obj)[0] html = html + template.render(templatepath + 'export.html', {}) html = html + template.render(templatepath + '04uberoutput_end.html', {'sub_title': ''}) html = html + template.render(templatepath + '06uberfooter.html', {'links': ''}) # logger.info(trex2_obj.__dict__) rest_funcs.save_dic(html, trex2_obj.__dict__, "trex2", "single") self.response.out.write(html)
def post(self): form = cgi.FieldStorage() chemical_name = form.getvalue('name') l_kow = float(form.getvalue('lkow')) k_oc = float(form.getvalue('Koc')) c_wdp_2 = float(form.getvalue('beec')) c_wdp = float(form.getvalue('beec')) / 1000000 water_column_EEC = float(form.getvalue('weec')) c_wto = float(water_column_EEC) / 1000000 mineau_scaling_factor = float(form.getvalue('sf')) x_poc = float(form.getvalue('cpoc')) x_doc = float(form.getvalue('cdoc')) c_ox = float(form.getvalue('cox')) w_t = float(form.getvalue('wt')) c_ss = float(form.getvalue('css')) oc = float(form.getvalue('oc'))/100 k_ow = 10**(float(l_kow)) Species_of_the_tested_bird = form.getvalue('Species_of_the_tested_bird') bw_quail = form.getvalue('bw_quail') bw_duck = form.getvalue('bw_duck') bwb_other = form.getvalue('bwb_other') avian_ld50 = float(form.getvalue('ald50')) avian_lc50 = float(form.getvalue('alc50')) avian_noaec = float(form.getvalue('aNOAEC')) m_species = form.getvalue('m_species') bw_rat=form.getvalue('bw_rat') bwm_other=form.getvalue('bwm_other') # print 'weight=', body_weight_of_the_tested_mamm_other mammalian_ld50 = float(form.getvalue('mld50')) mammalian_lc50 = float(form.getvalue('mlc50')) mammalian_chronic_endpoint = float(form.getvalue('m_chronic')) # body_weight_of_the_assessed_mamm = float(form.getvalue('bw_assess_m')) #diet_for_large_fish = form.getvalue('Diet_lfish') lf_p_sediment = float(form.getvalue('lfish_p_sediment'))/100 lf_p_phytoplankton = float(form.getvalue('lfish_p_phyto'))/100 lf_p_zooplankton = float(form.getvalue('lfish_p_zoo'))/100 lf_p_benthic_invertebrates = float(form.getvalue('lfish_p_beninv'))/100 lf_p_filter_feeders = float(form.getvalue('lfish_p_ff'))/100 lf_p_small_fish = float(form.getvalue('lfish_p_sfish'))/100 lf_p_medium_fish = float(form.getvalue('lfish_p_mfish'))/100 #diet_for_medium_fish = form.getvalue('Diet_mfish') mf_p_sediment = float(form.getvalue('mfish_p_sediment')) #print type(mf_p_sediment) mf_p_sediment = float(mf_p_sediment) mf_p_phytoplankton = float(form.getvalue('mfish_p_phyto')) mf_p_zooplankton = float(form.getvalue('mfish_p_zoo')) mf_p_benthic_invertebrates = float(form.getvalue('mfish_p_beninv'))/100 mf_p_filter_feeders = float(form.getvalue('mfish_p_ff')) mf_p_small_fish = float(form.getvalue('mfish_p_sfish'))/100 #diet_for_small_fish = form.getvalue('Diet_sfish') sf_p_sediment = float(form.getvalue('sfish_p_sediment')) sf_p_phytoplankton = float(form.getvalue('sfish_p_phyto')) sf_p_zooplankton = float(form.getvalue('sfish_p_zoo'))/100 sf_p_benthic_invertebrates = float(form.getvalue('sfish_p_beninv'))/100 sf_p_filter_feeders = float(form.getvalue('sfish_p_ff')) #diet_for_filter_feeder = form.getvalue('Diet_ff') ff_p_sediment = float(form.getvalue('ff_p_sediment'))/100 ff_p_phytoplankton = float(form.getvalue('ff_p_phyto'))/100 ff_p_zooplankton = float(form.getvalue('ff_p_zoo'))/100 ff_p_benthic_invertebrates = float(form.getvalue('ff_p_beninv')) #diet_for_invertebrates = form.getvalue('Diet_invert') beninv_p_sediment = float(form.getvalue('beninv_p_sediment'))/100 beninv_p_phytoplankton = float(form.getvalue('beninv_p_phyto'))/100 beninv_p_zooplankton = float(form.getvalue('beninv_p_zoo'))/100 #diet_for_zooplankton = form.getvalue('Diet_zoo') zoo_p_sediment = float(form.getvalue('zoo_p_sediment')) zoo_p_phyto = float(form.getvalue('zoo_p_phyto'))/100 #characteristics_sediment = form.getvalue('char_s') s_lipid = float(form.getvalue('s_lipid'))/100 s_NLOM = float(form.getvalue('s_NLOM'))/100 s_water = float(form.getvalue('s_water'))/100 s_respire = form.getvalue('s_respire') #characteristics_phytoplankton = form.getvalue('char_phyto') v_lb_phytoplankton = float(form.getvalue('phyto_lipid'))/100 v_nb_phytoplankton = float(form.getvalue('phyto_NLOM'))/100 v_wb_phytoplankton = float(form.getvalue('phyto_water'))/100 phyto_respire = form.getvalue('phyto_respire') #characteristics_zooplankton = form.getvalue('char_zoo') wb_zoo = float(form.getvalue('zoo_ww')) v_lb_zoo = float(form.getvalue('zoo_lipid'))/100 v_nb_zoo = float(form.getvalue('zoo_NLOM'))/100 v_wb_zoo = float(form.getvalue('zoo_water'))/100 zoo_respire = form.getvalue('zoo_respire') #characteristics_benthic_invertebrates = form.getvalue('char_beninv') wb_beninv = float(form.getvalue('beninv_ww')) v_lb_beninv = float(form.getvalue('beninv_lipid'))/100 v_nb_beninv = float(form.getvalue('beninv_NLOM'))/100 v_wb_beninv = float(form.getvalue('beninv_water'))/100 beninv_respire = form.getvalue('beninv_respire') #characteristics_ff = form.getvalue('char_ff') wb_ff = float(form.getvalue('ff_ww')) v_lb_ff = float(form.getvalue('ff_lipid'))/100 v_nb_ff = float(form.getvalue('ff_NLOM'))/100 v_wb_ff = float(form.getvalue('ff_water'))/100 ff_respire = form.getvalue('ff_respire') #characteristics_smfish = form.getvalue('char_sfish') wb_sf = float(form.getvalue('sfish_ww')) v_lb_sf = float(form.getvalue('sfish_lipid'))/100 v_nb_sf = float(form.getvalue('sfish_NLOM'))/100 v_wb_sf = float(form.getvalue('sfish_water'))/100 sfish_respire = form.getvalue('sfish_respire') #characteristics_medfish = form.getvalue('char_mfish') wb_mf = float(form.getvalue('mfish_ww')) v_lb_mf = float(form.getvalue('mfish_lipid'))/100 v_nb_mf = float(form.getvalue('mfish_NLOM'))/100 v_wb_mf = float(form.getvalue('mfish_water'))/100 mfish_respire = form.getvalue('mfish_respire') #characteristics_larfish = form.getvalue('char_lfish') wb_lf = float(form.getvalue('lfish_ww')) v_lb_lf = float(form.getvalue('lfish_lipid'))/100 v_nb_lf = float(form.getvalue('lfish_NLOM'))/100 v_wb_lf = float(form.getvalue('lfish_water'))/100 lfish_respire = form.getvalue('lfish_respire') rate_constants = form.getvalue('rate_c') # phytoplankton growth rate constant kg_phytoplankton = 0.1 # phytoplankton diet uptake rate constant kd_phytoplankton = 0 #phytoplankton fecal elimination rate constant ke_phytoplankton = 0 # fraction of respiratory ventilation involving overlying water mo_phytoplankton = 1 # fraction of respiratory ventilation involving pore water mp_phytoplankton = 0 # rate constant for pesticide metabolic transformation km_phytoplankton = 0 # rate constant for pesticide metabolic transformation km_zoo = 0 # k_bw_phytoplankton = 0 # k_bw_zoo = 0 # k_bw_beninv = 0 # k_bw_ff = 0 # k_bw_sf = 0 # k_bw_mf = 0 # k_bw_lf = 0 # cb_phytoplankton_v = 0 # cb_zoo_v = 0 # cb_beninv_v = 0 # cb_ff_v = 0 # cb_sf_v = 0 # cb_mf_v = 0 # cb_lf_v = 0 k1_phytoplankton = float(form.getvalue('phyto_k1')) k2_phytoplankton = float(form.getvalue('phyto_k2')) kd_phytoplankton = float(form.getvalue('phyto_kd')) ke_phytoplankton = float(form.getvalue('phyto_ke')) km_phytoplankton = float(form.getvalue('phyto_km')) k1_zoo = float(form.getvalue('zoo_k1')) k2_zoo = float(form.getvalue('zoo_k2')) kd_zoo = float(form.getvalue('zoo_kd')) ke_zoo = float(form.getvalue('zoo_ke')) km_zoo = float(form.getvalue('zoo_km')) k1_beninv = float(form.getvalue('beninv_k1')) k2_beninv = float(form.getvalue('beninv_k2')) kd_beninv = float(form.getvalue('beninv_kd')) ke_beninv = float(form.getvalue('beninv_ke')) km_beninv = float(form.getvalue('beninv_km')) k1_ff = float(form.getvalue('ff_k1')) k2_ff = float(form.getvalue('ff_k2')) kd_ff = float(form.getvalue('ff_kd')) ke_ff = float(form.getvalue('ff_ke')) km_ff = float(form.getvalue('ff_km')) k1_sf = float(form.getvalue('sfish_k1')) k2_sf = float(form.getvalue('sfish_k2')) kd_sf = float(form.getvalue('sfish_kd')) ke_sf = float(form.getvalue('sfish_ke')) km_sf = float(form.getvalue('sfish_km')) k1_mf = float(form.getvalue('mfish_k1')) k2_mf = float(form.getvalue('mfish_k2')) kd_mf = float(form.getvalue('mfish_kd')) ke_mf = float(form.getvalue('mfish_ke')) km_mf = float(form.getvalue('mfish_km')) k1_lf = float(form.getvalue('lfish_k1')) k2_lf = float(form.getvalue('lfish_k2')) kd_lf = float(form.getvalue('lfish_kd')) ke_lf = float(form.getvalue('lfish_ke')) km_lf = float(form.getvalue('lfish_km')) # else: # calculate values for rate constants # k_bw_phytoplankton = kabam_model.k_bw_phytoplankton_f(v_lb_phytoplankton, v_nb_phytoplankton, k_ow, v_wb_phytoplankton) # k1_phytoplankton = k1_phytoplankton_f(k_ow) # k2_phytoplankton = k2_phytoplankton_f(k_ow, k1_phytoplankton, k_bw_phytoplankton) # k_bw_zoo = k_bw_zoo_f(v_lb_zoo, k_ow, v_nb_zoo, v_wb_zoo) # k1_zoo = k1_zoo_f(k_ow, wb_zoo, c_ox) # k2_zoo = k2_zoo_f(k_bw_zoo, k1_zoo) # kd_zoo = kd_zoo_f(k_ow, wb_zoo, w_t) # ke_zoo = ke_zoo_f(k_ow, wb_zoo, v_lb_zoo, v_nb_zoo, zoo_p_sediment, s_lipid, s_NLOM, zoo_p_phyto, v_lb_phytoplankton, v_nb_phytoplankton, s_water, v_wb_phytoplankton, w_t, v_wb_zoo) # k_bw_beninv = k_bw_beninv_f(v_lb_beninv, k_ow, v_nb_beninv, v_wb_beninv) # k1_beninv = k1_beninv_f(k_ow, wb_beninv, c_ox) # k2_beninv = k2_beninv_f(k1_beninv, k_bw_beninv) # kd_beninv = kd_beninv_f(k_ow, wb_beninv, w_t) # ke_beninv = ke_beninv_f(k_ow, beninv_p_sediment, s_lipid, beninv_p_phytoplankton, v_lb_phytoplankton, beninv_p_zooplankton, v_lb_zoo, s_NLOM, v_nb_phytoplankton, v_nb_zoo, s_water, v_wb_phytoplankton, v_wb_zoo, wb_beninv, w_t, v_lb_beninv, v_nb_beninv, v_wb_beninv) # k_bw_ff = k_bw_ff_f(v_lb_ff, k_ow, v_nb_ff, v_wb_ff) # k1_ff = k1_ff_f(k_ow, wb_ff, c_ox) # k2_ff = k2_ff_f(k1_ff, k_bw_ff) # kd_ff = kd_ff_f(k_ow, wb_ff, w_t, c_ss, c_ox) # ke_ff = ke_ff_f(k_ow, ff_p_sediment, v_lb_ff, v_nb_ff, v_wb_ff, ff_p_phytoplankton, c_ss, c_ox, s_lipid, v_lb_phytoplankton, ff_p_zooplankton, v_lb_zoo, s_NLOM, v_nb_phytoplankton, v_nb_zoo, s_water, v_wb_phytoplankton, v_wb_zoo, wb_ff, w_t) # k_bw_sf = k_bw_sf_f(v_lb_sf, k_ow, v_nb_sf, v_wb_sf) # k1_sf = k1_sf_f(k_ow, wb_sf, c_ox) # k2_sf = k2_sf_f(k1_sf, k_bw_sf) # kd_sf = kd_sf_f(k_ow, wb_sf, w_t, c_ss, c_ox) # ke_sf = ke_sf_f(k_ow, v_lb_sf, v_nb_sf, v_wb_sf, c_ox, ff_p_sediment, s_lipid, ff_p_phytoplankton, ff_p_zooplankton, s_NLOM, v_nb_phytoplankton, v_nb_zoo, s_water, v_wb_phytoplankton, v_wb_zoo, c_ss, wb_ff, wb_sf, w_t, v_nb_beninv, v_nb_ff, sf_p_sediment, sf_p_phytoplankton, v_lb_phytoplankton, sf_p_benthic_invertebrates, v_lb_beninv, sf_p_zooplankton, v_lb_zoo, v_wb_beninv, v_wb_ff, sf_p_filter_feeders, v_lb_ff) # k_bw_mf = k_bw_mf_f(v_lb_mf, k_ow, v_nb_mf, v_wb_mf) # k1_mf = k1_mf_f(k_ow, wb_mf, c_ox) # k2_mf = k2_mf_f(k1_mf, k_bw_mf) # kd_mf = kd_mf_f(k_ow, wb_mf, w_t, c_ss, c_ox) # ke_mf = ke_mf_f(k_ow, v_lb_mf, v_nb_mf, v_wb_mf, wb_mf, w_t, s_lipid, v_lb_phytoplankton, v_lb_beninv, v_lb_zoo, v_lb_ff, v_lb_sf, s_NLOM, v_nb_phytoplankton, v_nb_beninv, v_nb_zoo, v_nb_ff, v_nb_sf, mf_p_sediment, s_water, mf_p_phytoplankton, v_wb_phytoplankton, mf_p_benthic_invertebrates, v_wb_beninv, mf_p_zooplankton, v_wb_zoo, mf_p_filter_feeders, v_wb_ff, mf_p_small_fish, v_wb_sf) # k_bw_lf = k_bw_lf_f(v_lb_lf, k_ow, v_nb_lf, v_wb_lf) # k1_lf = k1_lf_f(k_ow, wb_lf, c_ox) # k2_lf = k2_lf_f(k1_lf, k_bw_lf) # kd_lf = kd_lf_f(k_ow, wb_lf, w_t, c_ss, c_ox) # ke_lf = ke_lf_f(k_ow, v_lb_lf, v_nb_lf, v_wb_lf, wb_lf, s_lipid, lf_p_sediment, v_lb_phytoplankton, lf_p_phytoplankton, v_lb_beninv, v_lb_zoo, lf_p_benthic_invertebrates, lf_p_zooplankton, lf_p_filter_feeders, v_lb_ff, v_lb_sf, lf_p_small_fish, s_water, lf_p_medium_fish, v_nb_mf, v_wb_phytoplankton, v_wb_beninv, v_wb_zoo, v_wb_ff, v_wb_sf, wb_mf, w_t, mf_p_sediment, s_NLOM, mf_p_phytoplankton, v_nb_phytoplankton, v_lb_mf, v_wb_mf, mf_p_benthic_invertebrates, v_nb_beninv, mf_p_zooplankton, v_nb_zoo, mf_p_filter_feeders, v_nb_ff, mf_p_small_fish, v_nb_sf) # cb_phytoplankton_v = cb_phytoplankton_f(k1_phytoplankton, c_wdp, c_wto, k2_phytoplankton, ke_phytoplankton, kg_phytoplankton, km_phytoplankton, mo_phytoplankton, mp_phytoplankton, k_ow, x_doc, x_poc) # cb_zoo_v = cb_zoo_f(k_ow, wb_zoo, w_t, k1_phytoplankton, k1_zoo, k2_zoo, kd_zoo, ke_zoo, c_wdp, c_wto, k2_phytoplankton, kd_phytoplankton, ke_phytoplankton, kg_phytoplankton, km_phytoplankton, mo_phytoplankton, mp_phytoplankton, k_oc, oc, x_poc, x_doc, v_lb_phytoplankton, v_nb_phytoplankton, v_wb_phytoplankton, k_bw_phytoplankton, zoo_p_phyto, zoo_p_sediment) # cb_beninv_v = cb_beninv_f(x_poc, x_doc, k_ow, k1_beninv, k2_beninv, kd_beninv, ke_beninv, wb_beninv, c_ox, w_t, k1_phytoplankton, c_wdp, k1_zoo, k2_zoo, kd_zoo, ke_zoo, c_wto, k2_phytoplankton, kd_phytoplankton, ke_phytoplankton, kg_phytoplankton, km_phytoplankton, mo_phytoplankton, mp_phytoplankton, k_oc, v_wb_beninv, oc, k_bw_phytoplankton, zoo_p_sediment, zoo_p_phyto, wb_zoo, beninv_p_sediment, s_lipid, beninv_p_phytoplankton, v_lb_phytoplankton, beninv_p_zooplankton, v_lb_zoo, s_NLOM, v_nb_phytoplankton, v_nb_zoo, s_water, v_wb_phytoplankton, v_wb_zoo, v_lb_beninv, v_nb_beninv) # cb_ff_v = cb_ff_f(k1_ff, k2_ff, kd_ff, ke_ff, wb_ff, w_t, ff_p_phytoplankton, ff_p_sediment, ff_p_zooplankton, x_poc, x_doc, k_ow, k1_beninv, k2_beninv, kd_beninv, ke_beninv, wb_beninv, c_ox, k1_phytoplankton, c_wdp, k1_zoo, k2_zoo, kd_zoo, ke_zoo, c_wto, k2_phytoplankton, kd_phytoplankton, ke_phytoplankton, kg_phytoplankton, km_phytoplankton, mo_phytoplankton, mp_phytoplankton, k_oc, v_wb_beninv, oc, k_bw_phytoplankton, zoo_p_sediment, zoo_p_phyto, wb_zoo, beninv_p_sediment, s_lipid, beninv_p_phytoplankton, v_lb_phytoplankton, beninv_p_zooplankton, v_lb_zoo, s_NLOM, v_nb_phytoplankton, v_nb_zoo, s_water, v_wb_phytoplankton, v_wb_zoo, v_lb_beninv, v_nb_beninv, ff_p_benthic_invertebrates) # cb_sf_v = cb_sf_f(wb_sf, k1_sf, k2_sf, kd_sf, ke_sf, sf_p_benthic_invertebrates, ff_p_phytoplankton, ff_p_sediment, ff_p_zooplankton, k1_ff, k2_ff, kd_ff, ke_ff, wb_ff, sf_p_phytoplankton, sf_p_sediment, sf_p_zooplankton, x_poc, x_doc, k_ow, k1_beninv, k2_beninv, kd_beninv, ke_beninv, wb_beninv, c_ox, w_t, k1_phytoplankton, c_wdp, k1_zoo, k2_zoo, kd_zoo, ke_zoo, c_wto, k2_phytoplankton, kd_phytoplankton, ke_phytoplankton, kg_phytoplankton, km_phytoplankton, mo_phytoplankton, mp_phytoplankton, k_oc, v_wb_beninv, oc, k_bw_phytoplankton, zoo_p_sediment, zoo_p_phyto, wb_zoo, beninv_p_sediment, s_lipid, beninv_p_phytoplankton, v_lb_phytoplankton, beninv_p_zooplankton, v_lb_zoo, s_NLOM, v_nb_phytoplankton, v_nb_zoo, s_water, v_wb_phytoplankton, v_wb_zoo, v_lb_beninv, v_nb_beninv, ff_p_benthic_invertebrates, sf_p_filter_feeders) # cb_mf_v = cb_mf_f(k1_mf, k2_mf, kd_mf, ke_mf, wb_mf, mf_p_sediment, mf_p_phytoplankton, mf_p_zooplankton, mf_p_benthic_invertebrates, mf_p_filter_feeders, mf_p_small_fish, wb_sf, k1_sf, k2_sf, kd_sf, ke_sf, sf_p_benthic_invertebrates, ff_p_phytoplankton, ff_p_sediment, ff_p_zooplankton, k1_ff, k2_ff, kd_ff, ke_ff, wb_ff, sf_p_phytoplankton, sf_p_sediment, sf_p_zooplankton, x_poc, x_doc, k_ow, k1_beninv, k2_beninv, kd_beninv, ke_beninv, wb_beninv, c_ox, w_t, k1_phytoplankton, c_wdp, k1_zoo, k2_zoo, kd_zoo, ke_zoo, c_wto, k2_phytoplankton, kd_phytoplankton, ke_phytoplankton, kg_phytoplankton, km_phytoplankton, mo_phytoplankton, mp_phytoplankton, k_oc, v_wb_beninv, oc, k_bw_phytoplankton, zoo_p_sediment, zoo_p_phyto, wb_zoo, beninv_p_sediment, s_lipid, beninv_p_phytoplankton, v_lb_phytoplankton, beninv_p_zooplankton, v_lb_zoo, s_NLOM, v_nb_phytoplankton, v_nb_zoo, s_water, v_wb_phytoplankton, v_wb_zoo, v_lb_beninv, v_nb_beninv, ff_p_benthic_invertebrates, sf_p_filter_feeders) # cb_lf_v = cb_lf_f(kd_lf, k2_lf, ke_lf, k1_lf, wb_lf, wb_mf, lf_p_sediment, lf_p_phytoplankton, lf_p_zooplankton, lf_p_benthic_invertebrates, k1_mf, k2_mf, kd_mf, ke_mf, mf_p_sediment, mf_p_phytoplankton, mf_p_zooplankton, lf_p_filter_feeders, lf_p_small_fish, lf_p_medium_fish, mf_p_benthic_invertebrates, mf_p_filter_feeders, mf_p_small_fish, wb_sf, k1_sf, k2_sf, kd_sf, ke_sf, sf_p_benthic_invertebrates, ff_p_phytoplankton, ff_p_sediment, ff_p_zooplankton, k1_ff, k2_ff, kd_ff, ke_ff, wb_ff, sf_p_phytoplankton, sf_p_sediment, sf_p_zooplankton, x_poc, x_doc, k_ow, k1_beninv, k2_beninv, kd_beninv, ke_beninv, wb_beninv, c_ox, w_t, k1_phytoplankton, c_wdp, k1_zoo, k2_zoo, kd_zoo, ke_zoo, c_wto, k2_phytoplankton, kd_phytoplankton, ke_phytoplankton, kg_phytoplankton, km_phytoplankton, mo_phytoplankton, mp_phytoplankton, k_oc, v_wb_beninv, oc, k_bw_phytoplankton, zoo_p_sediment, zoo_p_phyto, wb_zoo, beninv_p_sediment, s_lipid, beninv_p_phytoplankton, v_lb_phytoplankton, beninv_p_zooplankton, v_lb_zoo, s_NLOM, v_nb_phytoplankton, v_nb_zoo, s_water, v_wb_phytoplankton, v_wb_zoo, v_lb_beninv, v_nb_beninv, ff_p_benthic_invertebrates, sf_p_filter_feeders) # k_bw_phytoplankton = k_bw_phytoplankton_f(v_lb_phytoplankton, v_nb_phytoplankton, k_ow, v_wb_phytoplankton) # k1_phytoplankton = k1_phytoplankton_f(k_ow) # k2_phytoplankton = k2_phytoplankton_f(k_ow, k1_phytoplankton, k_bw_phytoplankton) # k_bw_zoo = k_bw_zoo_f(v_lb_zoo, k_ow, v_nb_zoo, v_wb_zoo) # k1_zoo = k1_zoo_f(k_ow, wb_zoo, c_ox) # k2_zoo = k2_zoo_f(k_bw_zoo, k1_zoo) # kd_zoo = kd_zoo_f(k_ow, wb_zoo, w_t) # ke_zoo = ke_zoo_f(k_ow, wb_zoo, v_lb_zoo, v_nb_zoo, zoo_p_sediment, s_lipid, s_NLOM, zoo_p_phyto, v_lb_phytoplankton, v_nb_phytoplankton, s_water, v_wb_phytoplankton, w_t, v_wb_zoo) # k_bw_beninv = k_bw_beninv_f(v_lb_beninv, k_ow, v_nb_beninv, v_wb_beninv) # k1_beninv = k1_beninv_f(k_ow, wb_beninv, c_ox) # k2_beninv = k2_beninv_f(k1_beninv, k_bw_beninv) # kd_beninv = kd_beninv_f(k_ow, wb_beninv, w_t) # ke_beninv = ke_beninv_f(k_ow, beninv_p_sediment, s_lipid, beninv_p_phytoplankton, v_lb_phytoplankton, beninv_p_zooplankton, v_lb_zoo, s_NLOM, v_nb_phytoplankton, v_nb_zoo, s_water, v_wb_phytoplankton, v_wb_zoo, wb_beninv, w_t, v_lb_beninv, v_nb_beninv, v_wb_beninv) # k_bw_ff = k_bw_ff_f(v_lb_ff, k_ow, v_nb_ff, v_wb_ff) # k1_ff = k1_ff_f(k_ow, wb_ff, c_ox) # k2_ff = k2_ff_f(k1_ff, k_bw_ff) # kd_ff = kd_ff_f(k_ow, wb_ff, w_t, c_ss, c_ox) # ke_ff = ke_ff_f(k_ow, ff_p_sediment, v_lb_ff, v_nb_ff, v_wb_ff, ff_p_phytoplankton, c_ss, c_ox, s_lipid, v_lb_phytoplankton, ff_p_zooplankton, v_lb_zoo, s_NLOM, v_nb_phytoplankton, v_nb_zoo, s_water, v_wb_phytoplankton, v_wb_zoo, wb_ff, w_t) # k_bw_sf = k_bw_sf_f(v_lb_sf, k_ow, v_nb_sf, v_wb_sf) # k1_sf = k1_sf_f(k_ow, wb_sf, c_ox) # k2_sf = k2_sf_f(k1_sf, k_bw_sf) # kd_sf = kd_sf_f(k_ow, wb_sf, w_t, c_ss, c_ox) # ke_sf = ke_sf_f(k_ow, v_lb_sf, v_nb_sf, v_wb_sf, c_ox, ff_p_sediment, s_lipid, ff_p_phytoplankton, ff_p_zooplankton, s_NLOM, v_nb_phytoplankton, v_nb_zoo, s_water, v_wb_phytoplankton, v_wb_zoo, c_ss, wb_ff, wb_sf, w_t, v_nb_beninv, v_nb_ff, sf_p_sediment, sf_p_phytoplankton, v_lb_phytoplankton, sf_p_benthic_invertebrates, v_lb_beninv, sf_p_zooplankton, v_lb_zoo, v_wb_beninv, v_wb_ff, sf_p_filter_feeders, v_lb_ff) # k_bw_mf = k_bw_mf_f(v_lb_mf, k_ow, v_nb_mf, v_wb_mf) # k1_mf = k1_mf_f(k_ow, wb_mf, c_ox) # k2_mf = k2_mf_f(k1_mf, k_bw_mf) # kd_mf = kd_mf_f(k_ow, wb_mf, w_t, c_ss, c_ox) # ke_mf = ke_mf_f(k_ow, v_lb_mf, v_nb_mf, v_wb_mf, wb_mf, w_t, s_lipid, v_lb_phytoplankton, v_lb_beninv, v_lb_zoo, v_lb_ff, v_lb_sf, s_NLOM, v_nb_phytoplankton, v_nb_beninv, v_nb_zoo, v_nb_ff, v_nb_sf, mf_p_sediment, s_water, mf_p_phytoplankton, v_wb_phytoplankton, mf_p_benthic_invertebrates, v_wb_beninv, mf_p_zooplankton, v_wb_zoo, mf_p_filter_feeders, v_wb_ff, mf_p_small_fish, v_wb_sf) # k_bw_lf = k_bw_lf_f(v_lb_lf, k_ow, v_nb_lf, v_wb_lf) # k1_lf = k1_lf_f(k_ow, wb_lf, c_ox) # k2_lf = k2_lf_f(k1_lf, k_bw_lf) # kd_lf = kd_lf_f(k_ow, wb_lf, w_t, c_ss, c_ox) # ke_lf = ke_lf_f(k_ow, v_lb_lf, v_nb_lf, v_wb_lf, wb_lf, s_lipid, lf_p_sediment, v_lb_phytoplankton, lf_p_phytoplankton, v_lb_beninv, v_lb_zoo, lf_p_benthic_invertebrates, lf_p_zooplankton, lf_p_filter_feeders, v_lb_ff, v_lb_sf, lf_p_small_fish, s_water, lf_p_medium_fish, v_nb_mf, v_wb_phytoplankton, v_wb_beninv, v_wb_zoo, v_wb_ff, v_wb_sf, wb_mf, w_t, mf_p_sediment, s_NLOM, mf_p_phytoplankton, v_nb_phytoplankton, v_lb_mf, v_wb_mf, mf_p_benthic_invertebrates, v_nb_beninv, mf_p_zooplankton, v_nb_zoo, mf_p_filter_feeders, v_nb_ff, mf_p_small_fish, v_nb_sf) # cb_phytoplankton_v = cb_phytoplankton_f(k1_phytoplankton, c_wdp, c_wto, k2_phytoplankton, ke_phytoplankton, kg_phytoplankton, km_phytoplankton, mo_phytoplankton, mp_phytoplankton, k_ow, x_doc, x_poc) # cb_zoo_v = cb_zoo_f(k_ow, wb_zoo, w_t, k1_phytoplankton, k1_zoo, k2_zoo, kd_zoo, ke_zoo, c_wdp, c_wto, k2_phytoplankton, kd_phytoplankton, ke_phytoplankton, kg_phytoplankton, km_phytoplankton, mo_phytoplankton, mp_phytoplankton, k_oc, oc, x_poc, x_doc, v_lb_phytoplankton, v_nb_phytoplankton, v_wb_phytoplankton, k_bw_phytoplankton, zoo_p_phyto, zoo_p_sediment) # cb_beninv_v = cb_beninv_f(x_poc, x_doc, k_ow, k1_beninv, k2_beninv, kd_beninv, ke_beninv, wb_beninv, c_ox, w_t, k1_phytoplankton, c_wdp, k1_zoo, k2_zoo, kd_zoo, ke_zoo, c_wto, k2_phytoplankton, kd_phytoplankton, ke_phytoplankton, kg_phytoplankton, km_phytoplankton, mo_phytoplankton, mp_phytoplankton, k_oc, v_wb_beninv, oc, k_bw_phytoplankton, zoo_p_sediment, zoo_p_phyto, wb_zoo, beninv_p_sediment, s_lipid, beninv_p_phytoplankton, v_lb_phytoplankton, beninv_p_zooplankton, v_lb_zoo, s_NLOM, v_nb_phytoplankton, v_nb_zoo, s_water, v_wb_phytoplankton, v_wb_zoo, v_lb_beninv, v_nb_beninv) # cb_ff_v = cb_ff_f(k1_ff, k2_ff, kd_ff, ke_ff, wb_ff, w_t, ff_p_phytoplankton, ff_p_sediment, ff_p_zooplankton, x_poc, x_doc, k_ow, k1_beninv, k2_beninv, kd_beninv, ke_beninv, wb_beninv, c_ox, k1_phytoplankton, c_wdp, k1_zoo, k2_zoo, kd_zoo, ke_zoo, c_wto, k2_phytoplankton, kd_phytoplankton, ke_phytoplankton, kg_phytoplankton, km_phytoplankton, mo_phytoplankton, mp_phytoplankton, k_oc, v_wb_beninv, oc, k_bw_phytoplankton, zoo_p_sediment, zoo_p_phyto, wb_zoo, beninv_p_sediment, s_lipid, beninv_p_phytoplankton, v_lb_phytoplankton, beninv_p_zooplankton, v_lb_zoo, s_NLOM, v_nb_phytoplankton, v_nb_zoo, s_water, v_wb_phytoplankton, v_wb_zoo, v_lb_beninv, v_nb_beninv, ff_p_benthic_invertebrates) # cb_sf_v = cb_sf_f(wb_sf, k1_sf, k2_sf, kd_sf, ke_sf, sf_p_benthic_invertebrates, ff_p_phytoplankton, ff_p_sediment, ff_p_zooplankton, k1_ff, k2_ff, kd_ff, ke_ff, wb_ff, sf_p_phytoplankton, sf_p_sediment, sf_p_zooplankton, x_poc, x_doc, k_ow, k1_beninv, k2_beninv, kd_beninv, ke_beninv, wb_beninv, c_ox, w_t, k1_phytoplankton, c_wdp, k1_zoo, k2_zoo, kd_zoo, ke_zoo, c_wto, k2_phytoplankton, kd_phytoplankton, ke_phytoplankton, kg_phytoplankton, km_phytoplankton, mo_phytoplankton, mp_phytoplankton, k_oc, v_wb_beninv, oc, k_bw_phytoplankton, zoo_p_sediment, zoo_p_phyto, wb_zoo, beninv_p_sediment, s_lipid, beninv_p_phytoplankton, v_lb_phytoplankton, beninv_p_zooplankton, v_lb_zoo, s_NLOM, v_nb_phytoplankton, v_nb_zoo, s_water, v_wb_phytoplankton, v_wb_zoo, v_lb_beninv, v_nb_beninv, ff_p_benthic_invertebrates, sf_p_filter_feeders) # cb_mf_v = cb_mf_f(k1_mf, k2_mf, kd_mf, ke_mf, wb_mf, mf_p_sediment, mf_p_phytoplankton, mf_p_zooplankton, mf_p_benthic_invertebrates, mf_p_filter_feeders, mf_p_small_fish, wb_sf, k1_sf, k2_sf, kd_sf, ke_sf, sf_p_benthic_invertebrates, ff_p_phytoplankton, ff_p_sediment, ff_p_zooplankton, k1_ff, k2_ff, kd_ff, ke_ff, wb_ff, sf_p_phytoplankton, sf_p_sediment, sf_p_zooplankton, x_poc, x_doc, k_ow, k1_beninv, k2_beninv, kd_beninv, ke_beninv, wb_beninv, c_ox, w_t, k1_phytoplankton, c_wdp, k1_zoo, k2_zoo, kd_zoo, ke_zoo, c_wto, k2_phytoplankton, kd_phytoplankton, ke_phytoplankton, kg_phytoplankton, km_phytoplankton, mo_phytoplankton, mp_phytoplankton, k_oc, v_wb_beninv, oc, k_bw_phytoplankton, zoo_p_sediment, zoo_p_phyto, wb_zoo, beninv_p_sediment, s_lipid, beninv_p_phytoplankton, v_lb_phytoplankton, beninv_p_zooplankton, v_lb_zoo, s_NLOM, v_nb_phytoplankton, v_nb_zoo, s_water, v_wb_phytoplankton, v_wb_zoo, v_lb_beninv, v_nb_beninv, ff_p_benthic_invertebrates, sf_p_filter_feeders) # cb_lf_v = cb_lf_f(kd_lf, k2_lf, ke_lf, k1_lf, wb_lf, wb_mf, lf_p_sediment, lf_p_phytoplankton, lf_p_zooplankton, lf_p_benthic_invertebrates, k1_mf, k2_mf, kd_mf, ke_mf, mf_p_sediment, mf_p_phytoplankton, mf_p_zooplankton, lf_p_filter_feeders, lf_p_small_fish, lf_p_medium_fish, mf_p_benthic_invertebrates, mf_p_filter_feeders, mf_p_small_fish, wb_sf, k1_sf, k2_sf, kd_sf, ke_sf, sf_p_benthic_invertebrates, ff_p_phytoplankton, ff_p_sediment, ff_p_zooplankton, k1_ff, k2_ff, kd_ff, ke_ff, wb_ff, sf_p_phytoplankton, sf_p_sediment, sf_p_zooplankton, x_poc, x_doc, k_ow, k1_beninv, k2_beninv, kd_beninv, ke_beninv, wb_beninv, c_ox, w_t, k1_phytoplankton, c_wdp, k1_zoo, k2_zoo, kd_zoo, ke_zoo, c_wto, k2_phytoplankton, kd_phytoplankton, ke_phytoplankton, kg_phytoplankton, km_phytoplankton, mo_phytoplankton, mp_phytoplankton, k_oc, v_wb_beninv, oc, k_bw_phytoplankton, zoo_p_sediment, zoo_p_phyto, wb_zoo, beninv_p_sediment, s_lipid, beninv_p_phytoplankton, v_lb_phytoplankton, beninv_p_zooplankton, v_lb_zoo, s_NLOM, v_nb_phytoplankton, v_nb_zoo, s_water, v_wb_phytoplankton, v_wb_zoo, v_lb_beninv, v_nb_beninv, ff_p_benthic_invertebrates, sf_p_filter_feeders) kabam_obj = kabam_model.kabam( True,True,'single',chemical_name,l_kow,k_oc,c_wdp,water_column_EEC,c_wto,mineau_scaling_factor,x_poc,x_doc,c_ox,w_t,c_ss,oc,k_ow, Species_of_the_tested_bird,bw_quail,bw_duck,bwb_other,avian_ld50,avian_lc50,avian_noaec,m_species,bw_rat,bwm_other,mammalian_ld50,mammalian_lc50,mammalian_chronic_endpoint, lf_p_sediment,lf_p_phytoplankton,lf_p_zooplankton,lf_p_benthic_invertebrates,lf_p_filter_feeders,lf_p_small_fish,lf_p_medium_fish, mf_p_sediment,mf_p_phytoplankton,mf_p_zooplankton,mf_p_benthic_invertebrates,mf_p_filter_feeders,mf_p_small_fish, sf_p_sediment,sf_p_phytoplankton,sf_p_zooplankton,sf_p_benthic_invertebrates,sf_p_filter_feeders, ff_p_sediment,ff_p_phytoplankton,ff_p_zooplankton,ff_p_benthic_invertebrates, beninv_p_sediment,beninv_p_phytoplankton,beninv_p_zooplankton, zoo_p_sediment,zoo_p_phyto, s_lipid,s_NLOM,s_water, v_lb_phytoplankton,v_nb_phytoplankton,v_wb_phytoplankton,wb_zoo,v_lb_zoo,v_nb_zoo,v_wb_zoo,wb_beninv,v_lb_beninv,v_nb_beninv,v_wb_beninv,wb_ff,v_lb_ff,v_nb_ff,v_wb_ff,wb_sf,v_lb_sf,v_nb_sf,v_wb_sf,wb_mf,v_lb_mf,v_nb_mf,v_wb_mf,wb_lf,v_lb_lf,v_nb_lf,v_wb_lf, kg_phytoplankton,kd_phytoplankton,ke_phytoplankton,mo_phytoplankton,mp_phytoplankton,km_phytoplankton,km_zoo, k1_phytoplankton,k2_phytoplankton, k1_zoo,k2_zoo,kd_zoo,ke_zoo,k1_beninv,k2_beninv,kd_beninv,ke_beninv,km_beninv, k1_ff,k2_ff,kd_ff,ke_ff,km_ff,k1_sf,k2_sf,kd_sf,ke_sf,km_sf,k1_mf,k2_mf,kd_mf,ke_mf,km_mf,k1_lf,k2_lf,kd_lf,ke_lf,km_lf, rate_constants,s_respire,phyto_respire,zoo_respire,beninv_respire,ff_respire,sfish_respire,mfish_respire,lfish_respire, None ) # cb_phytoplankton_v,cb_zoo_v,cb_beninv_v,cb_ff_v,cb_sf_v,cb_mf_v,cb_lf_v ***Removed from kabam_obj above*** templatepath = os.path.dirname(__file__) + '/../templates/' ChkCookie = self.request.cookies.get("ubercookie") html = uber_lib.SkinChk(ChkCookie, "Kabam Output") html = html + template.render(templatepath + '02uberintroblock_wmodellinks.html', {'model':'kabam','page':'output'}) html = html + template.render (templatepath + '03ubertext_links_left.html', {}) html = html + template.render(templatepath + '04uberoutput_start.html', { 'model':'kabam', 'model_attributes':'Kabam Output'}) html = html + kabam_tables.timestamp(kabam_obj,"") html = html + kabam_tables.table_all(kabam_obj) html = html + kabam_tables.bar_f(kabam_obj) html = html + template.render(templatepath + 'kabam_output_jqplot.html', {}) html = html + template.render(templatepath + 'export.html', {}) html = html + template.render(templatepath + '04uberoutput_end.html', {}) html = html + template.render(templatepath + '06uberfooter.html', {'links': ''}) rest_funcs.save_dic(html, kabam_obj.__dict__, "kabam", "single") self.response.out.write(html)