Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
Usgscsm
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
Usgscsm
Commits
e00d6aea
Unverified
Commit
e00d6aea
authored
6 years ago
by
jlaura
Committed by
GitHub
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Adds __version__ attribute (#35)
* Refactors out bad class attribute * Adds dynamic versioning
parent
761e1431
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
setup.py
+1
-1
1 addition, 1 deletion
setup.py
tests/test_generic_frame.py
+0
-1
0 additions, 1 deletion
tests/test_generic_frame.py
usgscam/__init__.py
+18
-3
18 additions, 3 deletions
usgscam/__init__.py
with
19 additions
and
5 deletions
setup.py
+
1
−
1
View file @
e00d6aea
...
...
@@ -46,7 +46,7 @@ extensions = [generate_extension('usgscam.genericframe', ['usgscam/genericframe.
setup
(
name
=
'
usgscam
'
,
version
=
'
0.1.
0
'
,
version
=
'
0.1.
1
'
,
ext_modules
=
cythonize
(
extensions
),
description
=
'
Cython wrapper to the USGS MDIS Camera Model
'
,
author
=
'
Jay Laura
'
,
...
...
This diff is collapsed.
Click to expand it.
tests/test_generic_frame.py
+
0
−
1
View file @
e00d6aea
...
...
@@ -35,7 +35,6 @@ class TestCassiniNAC:
class
TestMdisWac
:
@pytest.mark.parametrize
(
'
image, ground
'
,[
((
512
,
512
,
0
),
(
-
73589.5516508502
,
562548.342040933
,
2372508.44060771
)),
...
...
This diff is collapsed.
Click to expand it.
usgscam/__init__.py
+
18
−
3
View file @
e00d6aea
from
pkg_resources
import
get_distribution
,
DistributionNotFound
import
os.path
try
:
_dist
=
get_distribution
(
'
autocnet
'
)
# Normalize case for Windows systems
dist_loc
=
os
.
path
.
normcase
(
_dist
.
location
)
here
=
os
.
path
.
normcase
(
__file__
)
if
not
here
.
startswith
(
os
.
path
.
join
(
dist_loc
,
'
autocnet
'
)):
# not installed, but there is another version that *is*
raise
DistributionNotFound
except
DistributionNotFound
:
__version__
=
'
Please install this project with setup.py
'
else
:
__version__
=
_dist
.
version
import
usgscam.genericframe
import
usgscam.orex
import
usgscam.genericls
#from usgscam import mdis
#from usgscam import orex
import
usgscam.orex
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