def __init__(self, parent, *args, **kwargs): wx.Panel.__init__(self, parent, style=wx.WS_EX_VALIDATE_RECURSIVELY, *args, **kwargs) self.parent = self.GetTopLevelParent() self.tree = self.parent.document self.item = self.tree.GetSelection() self.xml = self.tree.GetItemPyData(self.item) self.information = information(self) self.contentType = contentType(self) self.status = wx.StaticText(self, -1, "", name="dimPosStatus") self.status.SetForegroundColour(wx.Colour(255, 0, 0, 0)) self.dimension = dimension(self) self.position = position(self) self.__doProperties() self.__doLayout() self.InitDialog() Safety(self)
def createAlgsList(self): # First we populate the list of algorithms with those created # extending GeoAlgorithm directly (those that execute GDAL # using the console) self.preloadedAlgs = [nearblack(), information(), warp(), translate(), rgb2pct(), pct2rgb(), merge(), buildvrt(), polygonize(), gdaladdo(), ClipByExtent(), ClipByMask(), contour(), rasterize(), proximity(), sieve(), fillnodata(), ExtractProjection(), gdal2xyz(), hillshade(), slope(), aspect(), tri(), tpi(), roughness(), ColorRelief(), GridInvDist(), GridAverage(), GridNearest(), GridDataMetrics(), gdaltindex(), gdalcalc(), rasterize_over(), # ----- OGR tools ----- OgrInfo(), Ogr2Ogr(), Ogr2OgrClip(), Ogr2OgrClipExtent(), Ogr2OgrToPostGis(), Ogr2OgrToPostGisList(), Ogr2OgrPointsOnLines(), Ogr2OgrBuffer(), Ogr2OgrDissolve(), Ogr2OgrOneSideBuffer(), Ogr2OgrTableToPostGisList(), OgrSql(), ] # And then we add those that are created as python scripts folder = self.scriptsFolder() if os.path.exists(folder): for descriptionFile in os.listdir(folder): if descriptionFile.endswith('py'): try: fullpath = os.path.join(self.scriptsFolder(), descriptionFile) alg = GdalScriptAlgorithm(fullpath) self.preloadedAlgs.append(alg) except WrongScriptException as e: ProcessingLog.addToLog(ProcessingLog.LOG_ERROR, e.msg)
def createAlgsList(self): # First we populate the list of algorithms with those created # extending GeoAlgorithm directly (those that execute GDAL # using the console) self.preloadedAlgs = [nearblack(), information(), warp(), translate(), rgb2pct(), pct2rgb(), merge(), polygonize(), gdaladdo(), ClipByExtent(), ClipByMask(), contour(), rasterize(), proximity(), sieve(), fillnodata(), ExtractProjection(), gdal2xyz(), hillshade(), slope(), aspect(), tri(), tpi(), roughness(), ColorRelief(), GridInvDist(), GridAverage(), GridNearest(), GridDataMetrics(), # ----- OGR tools ----- OgrInfo(), Ogr2Ogr(), OgrSql(), ] # And then we add those that are created as python scripts folder = self.scriptsFolder() if os.path.exists(folder): for descriptionFile in os.listdir(folder): if descriptionFile.endswith('py'): try: fullpath = os.path.join(self.scriptsFolder(), descriptionFile) alg = GdalScriptAlgorithm(fullpath) self.preloadedAlgs.append(alg) except WrongScriptException, e: ProcessingLog.addToLog(ProcessingLog.LOG_ERROR, e.msg)
def createAlgsList(self): # First we populate the list of algorithms with those created # extending GeoAlgorithm directly (those that execute GDAL # using the console) self.preloadedAlgs = [ nearblack(), information(), warp(), translate(), rgb2pct(), pct2rgb(), merge(), buildvrt(), polygonize(), gdaladdo(), ClipByExtent(), ClipByMask(), contour(), rasterize(), proximity(), sieve(), fillnodata(), ExtractProjection(), gdal2xyz(), hillshade(), slope(), aspect(), tri(), tpi(), roughness(), ColorRelief(), GridInvDist(), GridAverage(), GridNearest(), GridDataMetrics(), gdaltindex(), gdalcalc(), rasterize_over(), retile(), gdal2tiles(), # ----- OGR tools ----- OgrInfo(), Ogr2Ogr(), Ogr2OgrClip(), Ogr2OgrClipExtent(), Ogr2OgrToPostGis(), Ogr2OgrToPostGisList(), Ogr2OgrPointsOnLines(), Ogr2OgrBuffer(), Ogr2OgrDissolve(), Ogr2OgrOneSideBuffer(), Ogr2OgrTableToPostGisList(), OgrSql(), ]
def fonction_5(self): s = self.lineedite_7.text() article = Research_step2("Metricoscience", s) print(article) for i in article: print(i[5]) self.liste.addItem("Title : " + i[5]) self.liste.addItem("Date : " + str(i[4])) self.liste.addItem("ISSN : " + str(i[3])) self.liste.addItem("Authors : " + information(i[5])) self.liste.addItem("\n")
def fonction_7(self): s_1 = self.lineedite_7.text() s_2 = self.lineedite_9.text() s_3 = self.lineedite_10.text() article = Research_step3("Metricoscience", s_1, s_2, s_3) self.liste.addItem("Title : " + article[0][5]) self.liste.addItem("Date : " + article[0][4]) self.liste.addItem("ISSN : " + article[0][3]) self.liste.addItem("Authors : " + information(article[0][5]))
def __init__(self, parent, *args, **kwargs): wx.Panel.__init__(self, parent, *args, **kwargs) self.parent = self.GetTopLevelParent() self.tree = self.parent.document self.item = self.tree.GetSelection() self.xml = self.tree.GetItemPyData(self.item) self.information = information(self) self.settings = settingsTemplate(self) self.__doProperties() self.__doLayout() Safety(self)
def main(): st.title('자율주행 자동차 개발 프로젝트') menu = ['Home','About SDC','Corporations','Growth value','SDC'] choice = st.sidebar.selectbox('Menu',menu) if choice == 'Home': st.header('본 프로젝트는 자율주행자동차(SDC)개발 프로젝트 입니다.') st.subheader('[섹션 설명]') st.write('About SDC : 자율주행 기술에 대한 정보를 볼 수 있습니다') st.write('Corporations : 자율주행 기술을 개발하는 국내기업을 소개합니다') st.write('Growth value : 국내 기업에 대한 성장가능성 예측데이터를 볼 수 있습니다') st.write('SDC : SDC에 탑재되는 다양한 컴퓨터비전 기술을 볼 수 있습니다.') if choice == 'About SDC' : information() if choice == 'Corporations' : corporation() if choice == 'Growth value': gv() if choice == 'SDC': sdc()
def __init__(self, parent, *args, **kwargs): wx.Panel.__init__(self, parent, style=wx.WS_EX_VALIDATE_RECURSIVELY, *args, **kwargs) self.parent = self.GetTopLevelParent() self.tree = self.parent.document self.item = self.tree.GetSelection() self.xml = self.tree.GetItemPyData(self.item) self.information = information(self) self.contentType = contentType(self) self.status = wx.StaticText(self, -1, "", name="dimPosStatus") self.status.SetForegroundColour(wx.Colour(255,0,0,0)) self.dimension = dimension(self) self.position = position(self) self.__doProperties() self.__doLayout() self.InitDialog() Safety(self)
parser.add_argument('-i', '--information', action='store_true') parser.add_argument('-c', '--gen-config', action='store_true') parser.add_argument('-v', '--validate', action='store_true') args = parser.parse_args() if args.gen_config: from generate_config import generate_config generate_config() try: from settings import * except ImportError: print( "Having trouble importing your settings. This is usually caused by a recent config file generation. In most cases, this can be resolved by running yamit normally." ) sys.exit(1) if args.information: from information import information information() if args.delete_users: from delete_users import delete_users delete_users() if args.no_import and not args.delete_users and not args.information and not args.reset_passwords and not args.gen_config and not args.validate: from import_users import import_users import_users() if args.reset_passwords: from passwords import reset_passwords reset_passwords() if args.validate: validate_users()
def __init__(self): self.window = gui() self.user_in = user_input() self.window.setup_buttons(self) self.comms = communications() self.robot_info = information()