Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Ale
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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
aflab
astrogeology
Ale
Commits
ff47560e
Commit
ff47560e
authored
6 years ago
by
jay
Browse files
Options
Downloads
Patches
Plain Diff
refactors focal length episoln out of base
parent
44c9d84b
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
ale/drivers/base.py
+1
-4
1 addition, 4 deletions
ale/drivers/base.py
ale/drivers/mdis_driver.py
+4
-0
4 additions, 0 deletions
ale/drivers/mdis_driver.py
with
5 additions
and
4 deletions
ale/drivers/base.py
+
1
−
4
View file @
ff47560e
...
@@ -520,10 +520,6 @@ class PDS3():
...
@@ -520,10 +520,6 @@ class PDS3():
def
_target_id
(
self
):
def
_target_id
(
self
):
return
spice
.
bodn2c
(
self
.
label
[
'
TARGET_NAME
'
])
return
spice
.
bodn2c
(
self
.
label
[
'
TARGET_NAME
'
])
@property
def
focal_epsilon
(
self
):
return
float
(
spice
.
gdpool
(
'
INS{}_FL_UNCERTAINTY
'
.
format
(
self
.
ikid
),
0
,
1
)[
0
])
@property
@property
def
starting_ephemeris_time
(
self
):
def
starting_ephemeris_time
(
self
):
if
not
hasattr
(
self
,
'
_starting_ephemeris_time
'
):
if
not
hasattr
(
self
,
'
_starting_ephemeris_time
'
):
...
@@ -582,6 +578,7 @@ class Spice():
...
@@ -582,6 +578,7 @@ class Spice():
Called when the context is created. This is used
Called when the context is created. This is used
to get the kernels furnished.
to get the kernels furnished.
"""
"""
print
(
self
.
metakernel
)
if
self
.
metakernel
:
if
self
.
metakernel
:
spice
.
furnsh
(
self
.
metakernel
)
spice
.
furnsh
(
self
.
metakernel
)
return
self
return
self
...
...
This diff is collapsed.
Click to expand it.
ale/drivers/mdis_driver.py
+
4
−
0
View file @
ff47560e
...
@@ -65,6 +65,10 @@ class MdisSpice(Driver, Spice, Framer):
...
@@ -65,6 +65,10 @@ class MdisSpice(Driver, Spice, Framer):
# eval at the focal_plane_tempature
# eval at the focal_plane_tempature
return
f_t
(
self
.
_focal_plane_tempature
)
return
f_t
(
self
.
_focal_plane_tempature
)
@property
def
focal_epsilon
(
self
):
return
float
(
spice
.
gdpool
(
'
INS{}_FL_UNCERTAINTY
'
.
format
(
self
.
ikid
),
0
,
1
)[
0
])
@property
@property
def
starting_detector_sample
(
self
):
def
starting_detector_sample
(
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