Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
EdosL0Util
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
SIPS
EdosL0Util
Commits
7c2b0243
Commit
7c2b0243
authored
9 years ago
by
Bruce Flynn
Browse files
Options
Downloads
Patches
Plain Diff
Fix a couple syntax errors that snuck in.
parent
8e03877b
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
edosl0util/stream.py
+2
-2
2 additions, 2 deletions
edosl0util/stream.py
setup.py
+1
-1
1 addition, 1 deletion
setup.py
with
3 additions
and
3 deletions
edosl0util/stream.py
+
2
−
2
View file @
7c2b0243
...
@@ -208,10 +208,10 @@ class PacketStream(object):
...
@@ -208,10 +208,10 @@ class PacketStream(object):
return
self
.
_seek_cache
.
popleft
()
return
self
.
_seek_cache
.
popleft
()
try
:
try
:
h1
,
h2
,
data_size
,
offset
,
data
=
self
.
_stream
.
next
()
h1
,
h2
,
data_size
,
offset
,
data
=
self
.
_stream
.
next
()
except
Pa
k
cetTooShort
as
err
:
except
Pac
k
etTooShort
as
err
:
if
self
.
_fail_on_tooshort
:
if
self
.
_fail_on_tooshort
:
raise
raise
LOG
.
error
(
'
Packet too short, aborting stream:
{:s}
'
,
err
)
LOG
.
error
(
'
Packet too short, aborting stream:
%s
'
,
err
)
# The result of this is essentially a file truncation
# The result of this is essentially a file truncation
raise
StopIteration
()
raise
StopIteration
()
packet
=
Packet
(
h1
,
h2
,
data
,
data_size
=
data_size
,
offset
=
offset
)
packet
=
Packet
(
h1
,
h2
,
data
,
data_size
=
data_size
,
offset
=
offset
)
...
...
This diff is collapsed.
Click to expand it.
setup.py
+
1
−
1
View file @
7c2b0243
...
@@ -5,7 +5,7 @@ setup(
...
@@ -5,7 +5,7 @@ setup(
author
=
'
Bruce Flynn
'
,
author
=
'
Bruce Flynn
'
,
author_email
=
'
brucef@ssec.wisc.edu
'
,
author_email
=
'
brucef@ssec.wisc.edu
'
,
description
=
'
Utilities for working with EDOS L0 PDS files
'
,
description
=
'
Utilities for working with EDOS L0 PDS files
'
,
version
=
'
0.6.
3
'
,
version
=
'
0.6.
4
'
,
zip_safe
=
False
,
zip_safe
=
False
,
packages
=
find_packages
(),
packages
=
find_packages
(),
pyver
=
True
,
pyver
=
True
,
...
...
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