Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kirill Smelkov
slapos
Commits
c7dd1b51
Commit
c7dd1b51
authored
Sep 26, 2023
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
f9ad4a19
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
0 deletions
+32
-0
software/ors-amarisoft/k/ssb_nr_arfcn_test.py
software/ors-amarisoft/k/ssb_nr_arfcn_test.py
+32
-0
No files found.
software/ors-amarisoft/k/ssb_nr_arfcn_test.py
0 → 100755
View file @
c7dd1b51
#!/usr/bin/env python
# test dl_nr_arfcn -> ssb_nr_arfcn calculation
import
nrarfcn
as
nr
def
default_ssb_nr_arfcn
(
dl_nr_arfcn
):
f
=
nr
.
get_frequency
(
nrarfcn
=
dl_nr_arfcn
)
gscn
=
nr
.
get_gscn_by_frequency
(
f
)
if
nr
.
get_frequency_by_gscn
(
gscn
)
>
f
:
gscn
-=
1
fg
=
nr
.
get_frequency_by_gscn
(
gscn
)
fg_arfcn
=
nr
.
get_nrarfcn
(
fg
)
return
fg_arfcn
def
_
(
dl_nr_arfcn
):
ssb_nr_arfcn
=
default_ssb_nr_arfcn
(
dl_nr_arfcn
)
f
=
nr
.
get_frequency
(
dl_nr_arfcn
)
fssb
=
nr
.
get_frequency
(
ssb_nr_arfcn
)
print
(
'%d -> %d
\
t
; %g MHz
\
t
-> %g Mhz'
%
(
dl_nr_arfcn
,
ssb_nr_arfcn
,
f
,
fssb
))
print
(
'# dl_nr_arfcn -> ssb_nr_arfcn'
)
_
(
633300
)
_
(
632628
)
_
(
630336
)
_
(
627300
)
_
(
624288
)
_
(
532000
)
_
(
530890
)
_
(
526000
)
_
(
524650
)
_
(
437000
)
_
(
176300
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment