Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
pyhst2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
3
Issues
3
List
Boards
Labels
Service Desk
Milestones
Jira
Jira
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
myron
pyhst2
Commits
de58bda6
Commit
de58bda6
authored
Sep 04, 2019
by
mirone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
aggiustamenti docs
parent
ff225be4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
12 deletions
+20
-12
PyHST/Parameters_module.py
PyHST/Parameters_module.py
+11
-6
PyHST/PyHST.py
PyHST/PyHST.py
+8
-5
doc/conf.py
doc/conf.py
+1
-1
No files found.
PyHST/Parameters_module.py
View file @
de58bda6
...
...
@@ -34,8 +34,13 @@ from __future__ import print_function
import
string
import
sys
# raise Exception(sys.argv[0][-12:]=="sphinx-build" )
from
.
import
string_six
if
(
sys
.
argv
[
0
][
-
12
:]
!=
"sphinx-build"
):
from
.
import
string_six
from
.
import
EdfFile
from
.
import
LTSparsePrep
from
.
import
setCpuSet
import
traceback
import
sys
...
...
@@ -43,7 +48,6 @@ import numpy
Numeric
=
numpy
import
math
import
copy
from
.
import
EdfFile
import
h5py
import
time
from
os.path
import
basename
...
...
@@ -56,7 +60,6 @@ import h5py
import
os
import
errno
from
.
import
LTSparsePrep
def
make_sure_path_exists
(
path
):
try
:
...
...
@@ -71,9 +74,11 @@ mypname = MPI.Get_processor_name()
comm
=
MPI
.
COMM_WORLD
from
.
import
setCpuSet
mygpus
,
MemPerProc
,
coresperproc
,
cpusperproc
=
setCpuSet
.
setCpuSet
()
ncpus
=
coresperproc
if
(
sys
.
argv
[
0
][
-
12
:]
!=
"sphinx-build"
):
mygpus
,
MemPerProc
,
coresperproc
,
cpusperproc
=
setCpuSet
.
setCpuSet
()
ncpus
=
coresperproc
else
:
mygpus
,
MemPerProc
,
coresperproc
,
cpusperproc
=
[],
20
,
1
,
1
def
genReduce
(
token
,
tipo
=
MPI
.
INT
,
ope
=
MPI
.
MIN
):
if
tipo
==
MPI
.
INT
:
...
...
PyHST/PyHST.py
View file @
de58bda6
...
...
@@ -111,14 +111,20 @@
"""
from
__future__
import
absolute_import
from
__future__
import
division
from
__future__
import
print_function
import
string
from
.
import
string_six
import
sys
if
(
sys
.
argv
[
0
][
-
12
:]
!=
"sphinx-build"
):
from
.
import
string_six
from
.
import
__init__
from
.__init__
import
version
as
myversion
...
...
@@ -455,9 +461,6 @@ def get_setted_multipag_option(optname,files_to_cancel, tmpdir ):
return
setted_res
,
val_res
from
.
import
__init__
from
.__init__
import
version
as
myversion
def
callpyhst
(
inputfile
):
...
...
doc/conf.py
View file @
de58bda6
...
...
@@ -17,7 +17,7 @@ import sys, os
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
#sys.path.insert(0, os.path.abspath('.'))
sys
.
path
.
insert
(
0
,
"../PyHST/"
)
sys
.
path
.
insert
(
0
,
"../PyHST/"
)
# -- General configuration -----------------------------------------------------
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment