当前位置: 首页>>代码示例>>Python>>正文


Python verbose.ge函数代码示例

本文整理汇总了Python中matplotlib.verbose.ge函数的典型用法代码示例。如果您正苦于以下问题:Python ge函数的具体用法?Python ge怎么用?Python ge使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了ge函数的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: _run

 def _run(self):
     # Uses subprocess to call the program for assembling frames into a
     # movie file.  *args* returns the sequence of command line arguments
     # from a few configuration options.
     command = self._args()
     if verbose.ge("debug"):
         output = sys.stdout
     else:
         output = subprocess.PIPE
     verbose.report("MovieWriter.run: running command: %s" % " ".join(command))
     self._proc = subprocess.Popen(command, shell=False, stdout=output, stderr=output, stdin=subprocess.PIPE)
开发者ID:Nuevalgo,项目名称:Feedbot,代码行数:11,代码来源:animation.py

示例2: _args

 def _args(self):
     # Returns the command line parameters for subprocess to use
     # ffmpeg to create a movie using a pipe.
     args = [self.bin_path(), '-f', 'rawvideo', '-vcodec', 'rawvideo',
             '-s', '%dx%d' % self.frame_size, '-pix_fmt', self.frame_format,
             '-r', str(self.fps)]
     # Logging is quieted because subprocess.PIPE has limited buffer size.
     if not verbose.ge('debug'):
         args += ['-loglevel', 'quiet']
     args += ['-i', 'pipe:'] + self.output_args
     return args
开发者ID:Allen-smith,项目名称:ctf-tools,代码行数:11,代码来源:animation.py

示例3: _args

 def _args(self):
     # Returns the command line parameters for subprocess to use
     # ffmpeg to create a movie using a pipe.
     args = [
         self.bin_path(),
         "-f",
         "rawvideo",
         "-vcodec",
         "rawvideo",
         "-s",
         "%dx%d" % self.frame_size,
         "-pix_fmt",
         self.frame_format,
         "-r",
         str(self.fps),
     ]
     # Logging is quieted because subprocess.PIPE has limited buffer size.
     if not verbose.ge("debug"):
         args += ["-loglevel", "quiet"]
     args += ["-i", "pipe:"] + self.output_args
     return args
开发者ID:Nuevalgo,项目名称:Feedbot,代码行数:21,代码来源:animation.py


注:本文中的matplotlib.verbose.ge函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。