Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Scientific Software
MDANSE
Commits
fdb9294c
Commit
fdb9294c
authored
Jul 24, 2018
by
eric pellegrini
Browse files
Removed print
parent
3ee376a6
Pipeline
#4228
passed with stages
in 17 minutes and 53 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
MDANSE/Core/Platform.py
View file @
fdb9294c
...
...
@@ -150,7 +150,6 @@ class Platform(object):
raise
PlatformError
(
'Invalid query object type.'
)
basepath
=
os
.
path
.
join
(
os
.
path
.
dirname
(
self
.
package_directory
()),
''
)
print
basepath
,
len
(
basepath
),
path
.
split
(
basepath
),
path
s
=
path
.
split
(
basepath
)
if
len
(
s
)
!=
2
:
...
...
MDANSE/Externals/magnitude/magnitude.py
View file @
fdb9294c
...
...
@@ -1170,12 +1170,4 @@ def _init_mags():
if
not
MAGS
:
_init_mags
()
if
__name__
==
"__main__"
:
print
mg
(
1.0
,
'h THz'
,
'meV'
)
print
mg
(
1.0
,
'meV/h'
,
'THz'
)
print
mg
(
1.0
,
'hbar rad/ps'
,
'meV'
)
print
mg
(
1.0
,
'cyc THz'
,
'rad/ps'
)
print
mg
(
1.0
,
'rad/ps'
,
' cyc THz'
)
print
mg
(
1.0
,
'rad/ps'
,
' cyc meV(freq)'
)
MDANSE/Framework/AtomSelectionParser.py
View file @
fdb9294c
...
...
@@ -122,36 +122,26 @@ if __name__ == "__main__":
from
MDANSE.Externals.pyparsing.pyparsing
import
*
def
parse_keyword
(
token
):
print
"parse_keyword"
return
'"%s"(universe).select'
%
token
[
0
]
def
parse_arguments
(
token
):
print
"parse_arguments"
return
"(%s)"
%
str
(
token
)
def
operator_and
(
token
):
print
"operator_and"
token
[
0
][
1
]
=
"&"
return
" "
.
join
(
token
[
0
])
def
operator_or
(
token
):
print
"operator_or"
token
[
0
][
1
]
=
"|"
return
" "
.
join
(
token
[
0
])
def
parse_expression
(
self
,
token
):
print
"parse_expression"
return
""
.
join
([
str
(
t
)
for
t
in
token
])
...
...
@@ -173,5 +163,4 @@ if __name__ == "__main__":
rpar
=
")"
)
parsedExpression
=
expr
.
transformString
(
expression
)
print
parsedExpression
MDANSE/Framework/Jobs/CoordinationNumber.py
View file @
fdb9294c
...
...
@@ -121,7 +121,7 @@ class CoordinationNumber(DistanceHistogram):
cBeta
=
self
.
_concentrations
[
pair
[
1
]]
invPair
=
pair
[::
-
1
]
print
pair
,
cnIntra
self
.
_outputData
[
"cn_intra_%s%s"
%
pair
][:]
=
self
.
averageDensity
*
cBeta
*
cnIntra
self
.
_outputData
[
"cn_inter_%s%s"
%
pair
][:]
=
self
.
averageDensity
*
cBeta
*
cnInter
self
.
_outputData
[
"cn_total_%s%s"
%
pair
][:]
=
self
.
averageDensity
*
cBeta
*
cnTotal
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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