Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
d5d9f8c1
提交
d5d9f8c1
authored
2月 26, 2008
作者:
bergstrj@iro.umontreal.ca
浏览文件
操作
浏览文件
下载
差异文件
merged
上级
583bc43d
d6e8bd1a
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
180 行增加
和
0 行删除
+180
-0
core.py
core.py
+8
-0
epydoc-fast
epydoc-fast
+152
-0
epydoc-fast.sh
epydoc-fast.sh
+3
-0
lib.py
gof/lib.py
+1
-0
python25.py
gof/python25.py
+14
-0
result.py
gof/result.py
+2
-0
没有找到文件。
core.py
浏览文件 @
d5d9f8c1
...
@@ -71,6 +71,8 @@ def _compile_dir():
...
@@ -71,6 +71,8 @@ def _compile_dir():
else
:
else
:
# use (and possibly create) a default code cache location
# use (and possibly create) a default code cache location
platform_id
=
platform
.
platform
()
+
'-'
+
platform
.
processor
()
platform_id
=
platform
.
platform
()
+
'-'
+
platform
.
processor
()
import
re
platform_id
=
re
.
sub
(
"[
\
(
\
)
\
s]+"
,
"_"
,
platform_id
)
cachedir
=
os
.
path
.
join
(
os
.
getenv
(
'HOME'
),
'.omega'
,
'compiledir_'
+
platform_id
)
cachedir
=
os
.
path
.
join
(
os
.
getenv
(
'HOME'
),
'.omega'
,
'compiledir_'
+
platform_id
)
if
not
os
.
access
(
cachedir
,
os
.
R_OK
|
os
.
W_OK
):
if
not
os
.
access
(
cachedir
,
os
.
R_OK
|
os
.
W_OK
):
#this may raise a number of problems, I think all of which are serious.
#this may raise a number of problems, I think all of which are serious.
...
@@ -530,6 +532,12 @@ class omega_op(Numpy2Op):
...
@@ -530,6 +532,12 @@ class omega_op(Numpy2Op):
instantiate
.
customize
.
add_header
(
header
)
instantiate
.
customize
.
add_header
(
header
)
for
lib
in
self
.
c_libs
():
for
lib
in
self
.
c_libs
():
instantiate
.
customize
.
add_library
(
lib
)
instantiate
.
customize
.
add_library
(
lib
)
#add_library_dir
#print dir(instantiate.customize)
#print instantiate.customize._library_dirs
if
os
.
getenv
(
'OMEGA_BLAS_LD_LIBRARY_PATH'
):
instantiate
.
customize
.
add_library_dir
(
os
.
getenv
(
'OMEGA_BLAS_LD_LIBRARY_PATH'
))
mod
.
add_function
(
instantiate
)
mod
.
add_function
(
instantiate
)
mod
.
compile
(
location
=
_compile_dir
())
mod
.
compile
(
location
=
_compile_dir
())
...
...
epydoc-fast
0 → 100644
浏览文件 @
d5d9f8c1
# TODO:
# Get all graphs to work!
[epydoc] # Epydoc section marker (required by ConfigParser)
# The list of objects to document. Objects can be named using
# dotted names, module filenames, or package directory names.
# Alases for this option include "objects" and "values".
modules: *.py, gof/*.py
# The type of output that should be generated. Should be one
# of: html, text, latex, dvi, ps, pdf.
output: html
# The path to the output directory. May be relative or absolute.
target: html/
# An integer indicating how verbose epydoc should be. The default
# value is 0; negative values will supress warnings and errors;
# positive values will give more verbose output.
verbosity: 1
# A boolean value indicating that Epydoc should show a tracaback
# in case of unexpected error. By default don't show tracebacks
debug: 0
# If True, don't try to use colors or cursor control when doing
# textual output. The default False assumes a rich text prompt
simple-term: 0
### Generation options
# The default markup language for docstrings, for modules that do
# not define __docformat__. Defaults to epytext.
docformat: epytext
# Whether or not parsing should be used to examine objects.
parse: yes
# Whether or not introspection should be used to examine objects.
introspect: yes
# Don't examine in any way the modules whose dotted name match this
# regular expression pattern.
#exclude
# Don't perform introspection on the modules whose dotted name match this
# regular expression pattern.
#exclude-introspect
# Don't perform parsing on the modules whose dotted name match this
# regular expression pattern.
#exclude-parse
# The format for showing inheritance objects.
# It should be one of: 'grouped', 'listed', 'included'.
inheritance: grouped
# Whether or not to inclue private variables. (Even if included,
# private variables will be hidden by default.)
private: yes
# Whether or not to list each module's imports.
imports: yes
# Whether or not to include syntax highlighted source code in
# the output (HTML only).
sourcecode: yes
# Whether or not to includea a page with Epydoc log, containing
# effective option at the time of generation and the reported logs.
include-log: yes
### Output options
# The documented project's name.
name: Theano
# The CSS stylesheet for HTML output. Can be the name of a builtin
# stylesheet, or the name of a file.
css: white
# The documented project's URL.
url: http://lgcm:8000/testenv/
# HTML code for the project link in the navigation bar. If left
# unspecified, the project link will be generated based on the
# project's name and URL.
#link: <a href="somewhere">My Cool Project</a>
# The "top" page for the documentation. Can be a URL, the name
# of a module or class, or one of the special names "trees.html",
# "indices.html", or "help.html"
#top: os.path
# An alternative help file. The named file should contain the
# body of an HTML file; navigation bars will be added to it.
#help: my_helpfile.html
# Whether or not to include a frames-based table of contents.
frames: yes
# Whether each class should be listed in its own section when
# generating LaTeX or PDF output.
separate-classes: no
### API linking options
# Define a new API document. A new interpreted text role
# will be created
#external-api: epydoc
# Use the records in this file to resolve objects in the API named NAME.
#external-api-file: epydoc:api-objects.txt
# Use this URL prefix to configure the string returned for external API.
#external-api-root: epydoc:http://epydoc.sourceforge.net/api
### Graph options
# The list of graph types that should be automatically included
# in the output. Graphs are generated using the Graphviz "dot"
# executable. Graph types include: "classtree", "callgraph",
# "umlclass". Use "all" to include all graph types
graph: all
# The path to the Graphviz "dot" executable, used to generate
# graphs.
dotpath: /usr/bin/dot
# The name of one or more pstat files (generated by the profile
# or hotshot module). These are used to generate call graphs.
#pstat: sparse.pstat
# Specify the font used to generate Graphviz graphs.
# (e.g., helvetica or times).
graph-font: Helvetica
# Specify the font size used to generate Graphviz graphs.
graph-font-size: 10
### Return value options
# The condition upon which Epydoc should exit with a non-zero
# exit status. Possible values are error, warning, docstring_warning
#fail-on: error
epydoc-fast.sh
0 → 100755
浏览文件 @
d5d9f8c1
#!/bin/sh
epydoc
--config
epydoc-fast
gof/lib.py
浏览文件 @
d5d9f8c1
...
@@ -8,6 +8,7 @@ import env
...
@@ -8,6 +8,7 @@ import env
import
features
import
features
import
ext
import
ext
from
python25
import
all
__all__
=
[
'UNDEFINED'
,
__all__
=
[
'UNDEFINED'
,
'current_mode'
,
'current_mode'
,
...
...
gof/python25.py
0 → 100644
浏览文件 @
d5d9f8c1
import
sys
if
sys
.
version_info
[:
2
]
<
(
2
,
5
):
def
all
(
iterable
):
for
element
in
iterable
:
if
not
element
:
return
False
return
True
else
:
# Only bother with this else clause and the __all__ line if you are putting
# this in a separate file.
import
__builtin__
all
=
__builtin__
.
all
__all__
=
[
'all'
]
gof/result.py
浏览文件 @
d5d9f8c1
...
@@ -10,6 +10,8 @@ import unittest
...
@@ -10,6 +10,8 @@ import unittest
from
err
import
GofError
from
err
import
GofError
from
utils
import
AbstractFunctionError
from
utils
import
AbstractFunctionError
from
python25
import
all
__all__
=
[
'is_result'
,
'ResultBase'
,
'BrokenLink'
,
'BrokenLinkError'
]
__all__
=
[
'is_result'
,
'ResultBase'
,
'BrokenLink'
,
'BrokenLinkError'
]
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论