Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
km3io
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository 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
km3py
km3io
Commits
91331a36
Commit
91331a36
authored
5 years ago
by
Zineb Aly
Browse files
Options
Downloads
Patches
Plain Diff
adapted Aanet to pep8
parent
7349b36c
No related branches found
Branches containing commit
Tags
v0.5.0
Tags containing commit
No related merge requests found
Pipeline
#6945
passed with warnings
5 years ago
Stage: test
Stage: coverage
Stage: doc
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
km3io/aanet.py
+2
-1
2 additions, 1 deletion
km3io/aanet.py
with
2 additions
and
1 deletion
km3io/aanet.py
+
2
−
1
View file @
91331a36
...
@@ -45,7 +45,8 @@ class AanetReader:
...
@@ -45,7 +45,8 @@ class AanetReader:
branches are not read.
branches are not read.
"""
"""
if
key
not
in
self
.
keys
()
and
not
isinstance
(
key
,
int
):
if
key
not
in
self
.
keys
()
and
not
isinstance
(
key
,
int
):
raise
KeyError
(
"'
{}
'
is not a valid key or is a fake branch.
"
.
format
(
key
))
raise
KeyError
(
"'
{}
'
is not a valid key or is a fake branch.
"
.
format
(
key
))
return
self
.
lazy_data
[
key
]
return
self
.
lazy_data
[
key
]
def
__len__
(
self
):
def
__len__
(
self
):
...
...
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