Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
STITCH
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
Pascal Engeler
STITCH
Commits
bf92cd62
Commit
bf92cd62
authored
7 months ago
by
Pascal Engeler
Browse files
Options
Downloads
Patches
Plain Diff
Added stitchtility and playground
parent
c6212ef9
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
stitch_project/api/Playground.ipynb
+5004
-0
5004 additions, 0 deletions
stitch_project/api/Playground.ipynb
stitch_project/api/Stitch/Stitchtility.py
+26
-0
26 additions, 0 deletions
stitch_project/api/Stitch/Stitchtility.py
with
5030 additions
and
0 deletions
stitch_project/api/Playground.ipynb
0 → 100644
+
5004
−
0
View file @
bf92cd62
This diff is collapsed.
Click to expand it.
stitch_project/api/Stitch/Stitchtility.py
0 → 100644
+
26
−
0
View file @
bf92cd62
def
frequencyHzToDphi
(
frequency
):
dphi
=
int
(
frequency
/
0.18626451492
)
if
dphi
<=
1
:
return
1
if
dphi
>=
2
**
22
:
return
2
**
22
-
1
else
:
return
dphi
def
rampHzSqToDdphi
(
rampHzSq
):
ddphi
=
int
(
rampHzSq
/
2.22044604921
)
if
ddphi
<=
1
:
return
1
if
ddphi
>=
2
**
22
:
return
2
**
22
-
1
else
:
return
ddphi
def
DeltaDphiAndDdphiToNsweep
(
DeltaDphi
,
Ddphi
):
return
int
(
DeltaDphi
/
(
Ddphi
*
2
**-
23
))
def
numPeriodsToNringup
(
numPeriods
,
frequencyHz
):
return
int
(
numPeriods
*
100.0e6
/
frequencyHz
)
def
numPeriodsToNmeas
(
numPeriods
,
frequencyHz
):
return
int
(
numPeriods
*
100.0e6
/
frequencyHz
)
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