def createInputArray(): # create empty array's for each appliance, sum of water use and number of actors input_array = MI.initialiseTimeseries( 24) # get the initialised array created in the MainInterface # change the key name: input_array["R"] = input_array.pop( "RESIDENTIAL") #change key name from 'residential' to 'R' input_array["C"] = input_array.pop( "COMMERCIAL") # change key name from 'commercial' to 'C' # add in an array for the total volume demand of a unit: input_array["C"]["unit_sum"] = [] input_array["R"]["unit_sum"] = [] unit_types = ["R", "C"] # append it with an array of 24 zero's (24hrs in a day) for i in unit_types: input_array[i]["unit_sum"] = [] for j in range(24): input_array[i]["unit_sum"].append(0) return input_array
def translate_execute(): str_input = input_sequence.get("1.0", "end-1c") str_input = str_input.replace("\n", "") str_input = str_input.replace(" ", "") seq_array = MainInterface.quad_array(str_input) output_sequence.configure(state="normal") output_sequence.insert("end", DataTranslate.q2b_translation(seq_array)) output_sequence.configure(state="disabled")
def createInputArray(): # create empty array's for each appliance, sum of water use and number of actors input_array = MI.initialiseTimeseries(24) # get the initialised array created in the MainInterface # change the key name: input_array["R"] = input_array.pop("RESIDENTIAL") #change key name from 'residential' to 'R' input_array["C"] = input_array.pop("COMMERCIAL") # change key name from 'commercial' to 'C' # add in an array for the total volume demand of a unit: input_array["C"]["unit_sum"] = [] input_array["R"]["unit_sum"] = [] unit_types = ["R","C"] # append it with an array of 24 zero's (24hrs in a day) for i in unit_types: input_array[i]["unit_sum"]=[] for j in range(24): input_array[i]["unit_sum"].append(0) return input_array
__author__ = 'jbreman' import MainInterface as MI import C_UnitType as Unit import C_ApplianceType as Appliance demand_data = MI.run(1,1) def createInputArray(): # create empty array's for each appliance, sum of water use and number of actors input_array = MI.initialiseTimeseries(24) # get the initialised array created in the MainInterface # change the key name: input_array["R"] = input_array.pop("RESIDENTIAL") #change key name from 'residential' to 'R' input_array["C"] = input_array.pop("COMMERCIAL") # change key name from 'commercial' to 'C' # add in an array for the total volume demand of a unit: input_array["C"]["unit_sum"] = [] input_array["R"]["unit_sum"] = [] unit_types = ["R","C"] # append it with an array of 24 zero's (24hrs in a day) for i in unit_types: input_array[i]["unit_sum"]=[] for j in range(24):
def on_pushButton_clicked(self): dialog = MainInterface.MainInterface(self) self.hide() dialog.show()
def returnFirstInterface(self): dialog = MainInterface.MainInterface(self) self.hide() dialog.show()
__author__ = 'jbreman' import MainInterface as MI import C_UnitType as Unit import C_ApplianceType as Appliance demand_data = MI.run(1, 1) def createInputArray(): # create empty array's for each appliance, sum of water use and number of actors input_array = MI.initialiseTimeseries( 24) # get the initialised array created in the MainInterface # change the key name: input_array["R"] = input_array.pop( "RESIDENTIAL") #change key name from 'residential' to 'R' input_array["C"] = input_array.pop( "COMMERCIAL") # change key name from 'commercial' to 'C' # add in an array for the total volume demand of a unit: input_array["C"]["unit_sum"] = [] input_array["R"]["unit_sum"] = [] unit_types = ["R", "C"] # append it with an array of 24 zero's (24hrs in a day) for i in unit_types: input_array[i]["unit_sum"] = []
#!/usr/bin/env python import MainInterface from MainInterface import MainInterface """ launch wrapper for c3dec (Civil3D Export Corrector) @author: Sean Johnson, maiome development <*****@*****.**> @license: This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. """ if __name__ == "__main__": m_i = MainInterface() m_i.mainloop()