Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Plio
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
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
aflab
astrogeology
Plio
Commits
1cc030dd
Commit
1cc030dd
authored
8 years ago
by
jlaura
Committed by
Jason R Laura
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Removing a few extra print statements.
parent
d1b82e3b
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
plio/io_controlnetwork.py
+0
-2
0 additions, 2 deletions
plio/io_controlnetwork.py
plio/tests/test_io_controlnetwork.py
+0
-2
0 additions, 2 deletions
plio/tests/test_io_controlnetwork.py
with
0 additions
and
4 deletions
plio/io_controlnetwork.py
+
0
−
2
View file @
1cc030dd
...
@@ -109,7 +109,6 @@ def to_isis(path, obj, mode='w', version=VERSION,
...
@@ -109,7 +109,6 @@ def to_isis(path, obj, mode='w', version=VERSION,
for
i
,
point
in
enumerate
(
point_messages
):
for
i
,
point
in
enumerate
(
point_messages
):
store
.
write
(
point
,
point_start_offset
)
store
.
write
(
point
,
point_start_offset
)
point_start_offset
+=
point_sizes
[
i
]
point_start_offset
+=
point_sizes
[
i
]
print
(
point_start_offset
)
header
=
store
.
create_pvl_header
(
version
,
headerstartbyte
,
networkid
,
header
=
store
.
create_pvl_header
(
version
,
headerstartbyte
,
networkid
,
targetname
,
description
,
username
,
targetname
,
description
,
username
,
buffer_header_size
,
points_bytes
,
buffer_header_size
,
points_bytes
,
...
@@ -270,7 +269,6 @@ class IsisStore(object):
...
@@ -270,7 +269,6 @@ class IsisStore(object):
header_message_size : int
header_message_size : int
The size of the serialized header, in bytes
The size of the serialized header, in bytes
"""
"""
print
(
'
NID
'
,
networkid
)
raw_header_message
=
cnf
.
ControlNetFileHeaderV0002
()
raw_header_message
=
cnf
.
ControlNetFileHeaderV0002
()
raw_header_message
.
created
=
creation_date
raw_header_message
.
created
=
creation_date
raw_header_message
.
lastModified
=
modified_date
raw_header_message
.
lastModified
=
modified_date
...
...
This diff is collapsed.
Click to expand it.
plio/tests/test_io_controlnetwork.py
+
0
−
2
View file @
1cc030dd
...
@@ -63,7 +63,6 @@ class TestWriteIsisControlNetwork(unittest.TestCase):
...
@@ -63,7 +63,6 @@ class TestWriteIsisControlNetwork(unittest.TestCase):
raw_header_message
=
f
.
read
(
self
.
header_message_size
)
raw_header_message
=
f
.
read
(
self
.
header_message_size
)
header_protocol
=
cnf
.
ControlNetFileHeaderV0002
()
header_protocol
=
cnf
.
ControlNetFileHeaderV0002
()
header_protocol
.
ParseFromString
(
raw_header_message
)
header_protocol
.
ParseFromString
(
raw_header_message
)
print
(
header_protocol
)
#Non-repeating
#Non-repeating
#self.assertEqual('None', header_protocol.networkId)
#self.assertEqual('None', header_protocol.networkId)
self
.
assertEqual
(
'
Moon
'
,
header_protocol
.
targetName
)
self
.
assertEqual
(
'
Moon
'
,
header_protocol
.
targetName
)
...
@@ -87,7 +86,6 @@ class TestWriteIsisControlNetwork(unittest.TestCase):
...
@@ -87,7 +86,6 @@ class TestWriteIsisControlNetwork(unittest.TestCase):
self
.
assertEqual
(
str
(
i
),
point_protocol
.
id
)
self
.
assertEqual
(
str
(
i
),
point_protocol
.
id
)
self
.
assertEqual
(
2
,
point_protocol
.
type
)
self
.
assertEqual
(
2
,
point_protocol
.
type
)
for
m
in
point_protocol
.
measures
:
for
m
in
point_protocol
.
measures
:
print
(
m
.
serialnumber
)
self
.
assertTrue
(
m
.
serialnumber
in
self
.
serials
)
self
.
assertTrue
(
m
.
serialnumber
in
self
.
serials
)
self
.
assertEqual
(
2
,
m
.
type
)
self
.
assertEqual
(
2
,
m
.
type
)
...
...
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