Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
mantid
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mantidproject
mantid
Commits
a990a955
Commit
a990a955
authored
9 years ago
by
Alex Buts
Browse files
Options
Downloads
Patches
Plain Diff
Re #13217 More pylint
parent
697a0211
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Code/Mantid/scripts/Inelastic/Direct/ISISDirecInelasticConfig.py
+3
-2
3 additions, 2 deletions
...ntid/scripts/Inelastic/Direct/ISISDirecInelasticConfig.py
with
3 additions
and
2 deletions
Code/Mantid/scripts/Inelastic/Direct/ISISDirecInelasticConfig.py
+
3
−
2
View file @
a990a955
...
...
@@ -463,7 +463,7 @@ class MantidConfigDirectInelastic(object):
self
.
_user
=
theUser
# pylint: disable=W0201
# its init method so the change is reasonable
# its init method so the change is reasonable
self
.
_fedid
=
str
(
fedid
)
user_folder
=
os
.
path
.
join
(
self
.
_home_path
,
self
.
_fedid
)
if
not
os
.
path
.
exists
(
user_folder
):
...
...
@@ -527,6 +527,7 @@ class MantidConfigDirectInelastic(object):
# define and append user scripts search path
user_path_part
=
copy
.
deepcopy
(
self
.
_python_user_scripts
)
# pylint: disable=W0212
for
instr
in
self
.
_user
.
_instrument
.
values
():
user_path_part
.
add
(
os
.
path
.
join
(
'
direct_inelastic
'
,
instr
.
upper
()))
for
part
in
user_path_part
:
...
...
@@ -616,7 +617,7 @@ class MantidConfigDirectInelastic(object):
"""
Write existing dynamic configuration from memory to
user defined configuration file
"""
# pylint: disable=C010
1
# pylint: disable=C010
3
# What is wrong with fp variable name here?
fp
=
open
(
config_file_name
,
'
w
'
)
fp
.
write
(
self
.
_header
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment