Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SpiceQL
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
SpiceQL
Commits
c5270de2
Unverified
Commit
c5270de2
authored
10 months ago
by
Christine Kim
Committed by
GitHub
10 months ago
Browse files
Options
Downloads
Patches
Plain Diff
Set ets to accept string (#34)
parent
783b9133
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
fastapi/app/main.py
+4
-4
4 additions, 4 deletions
fastapi/app/main.py
with
4 additions
and
4 deletions
fastapi/app/main.py
+
4
−
4
View file @
c5270de2
"""
Module providing SpiceQL endpoints
"""
from
ast
import
literal_eval
from
typing
import
Annotated
,
Any
from
fastapi
import
FastAPI
,
Query
from
typing
import
Any
from
fastapi
import
FastAPI
from
pydantic
import
BaseModel
,
Field
from
starlette.responses
import
RedirectResponse
import
numpy
as
np
...
...
@@ -56,7 +56,7 @@ async def getTargetStates(
frame
:
str
,
abcorr
:
str
,
mission
:
str
,
ets
:
Annotated
[
list
[
float
],
Query
()]
|
str
|
None
=
None
,
ets
:
str
=
None
,
startEts
:
float
|
None
=
None
,
exposureDuration
:
float
|
None
=
None
,
numOfExposures
:
int
|
None
=
None
,
...
...
@@ -85,7 +85,7 @@ async def getTargetOrientations(
toFrame
:
int
,
refFrame
:
int
,
mission
:
str
,
ets
:
Annotated
[
list
[
float
],
Query
()]
|
str
|
None
=
None
,
ets
:
str
|
None
=
None
,
startEts
:
float
|
None
=
None
,
exposureDuration
:
float
|
None
=
None
,
numOfExposures
:
int
|
None
=
None
,
...
...
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