Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
geomag-algorithms
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
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
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
ghsc
National Geomagnetism Program
geomag-algorithms
Commits
35f28a32
Commit
35f28a32
authored
8 years ago
by
Yash Shah
Browse files
Options
Downloads
Patches
Plain Diff
Resolve Python 2 str/unicode discrepancy
parent
4429afd4
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
geomagio/Controller.py
+2
-1
2 additions, 1 deletion
geomagio/Controller.py
with
2 additions
and
1 deletion
geomagio/Controller.py
+
2
−
1
View file @
35f28a32
"""
Controller class for geomag algorithms
"""
"""
Controller class for geomag algorithms
"""
from
__future__
import
absolute_import
,
print_function
from
__future__
import
absolute_import
,
print_function
from
builtins
import
str
as
unicode
import
argparse
import
argparse
import
sys
import
sys
...
@@ -475,7 +476,7 @@ def main(args):
...
@@ -475,7 +476,7 @@ def main(args):
# TODO check for unused arguments.
# TODO check for unused arguments.
# make sure observatory is a tuple
# make sure observatory is a tuple
if
isinstance
(
args
.
observatory
,
(
str
,
str
)):
if
isinstance
(
args
.
observatory
,
(
str
,
unicode
)):
args
.
observatory
=
(
args
.
observatory
,)
args
.
observatory
=
(
args
.
observatory
,)
if
args
.
observatory_foreach
:
if
args
.
observatory_foreach
:
...
...
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