Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Swigcsm
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
Swigcsm
Commits
5175b4ec
Unverified
Commit
5175b4ec
authored
6 years ago
by
jlaura
Committed by
GitHub
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
removes custom json parsing (#11)
parent
2c7acad3
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
isd.i
+1
-26
1 addition, 26 deletions
isd.i
usgs.i
+0
-6
0 additions, 6 deletions
usgs.i
with
1 addition
and
32 deletions
isd.i
+
1
−
26
View file @
5175b4ec
...
...
@@ -11,29 +11,4 @@
%
include
<
std_string
.
i
>
%
pythoncode
%
{
import json
%}
%
include
"
Isd.h
"
%
extend
csm
::
Isd
{
%pythoncode %{
import json
import numpy as np
@classmethod
def loads(cls, stream):
isd = cls()
if not isinstance(stream, dict):
stream = json.loads(stream)
for k, v in stream.items():
if isinstance(v, list):
for i in v:
isd.addParam(k, str(i))
isd.addParam(k, str(v))
return isd
@classmethod
def load(cls, fp):
return cls.loads(fp.read())
%}
}
\ No newline at end of file
%
include
"
Isd.h
"
\ No newline at end of file
This diff is collapsed.
Click to expand it.
usgs.i
deleted
100644 → 0
+
0
−
6
View file @
2c7acad3
%
module
(
package
=
"
csmapi
"
)
usgs
%
{
#include "UsgsAstroLsPlugin.h"
%}
%
import
"
UsgsAstroLsPlugin.h
"
\ No newline at end of file
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