Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
compendium-v2
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
geant-swd
compendium-v2
Commits
d1fe126b
Commit
d1fe126b
authored
1 year ago
by
Remco Tukker
Browse files
Options
Downloads
Patches
Plain Diff
fix tox issues
parent
ba3d45f7
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
compendium_v2/publishers/excel_parser.py
+11
-9
11 additions, 9 deletions
compendium_v2/publishers/excel_parser.py
compendium_v2/publishers/survey_publisher_legacy_excel.py
+12
-13
12 additions, 13 deletions
compendium_v2/publishers/survey_publisher_legacy_excel.py
with
23 additions
and
22 deletions
compendium_v2/publishers/excel_parser.py
+
11
−
9
View file @
d1fe126b
...
...
@@ -495,6 +495,7 @@ def fetch_remit_excel_data():
logger
.
warning
(
f
'
unknown remit:
{
excel_remit
}
'
)
result
=
{}
def
create_points_for_year
(
year
,
start_column
):
for
i
in
range
(
8
,
51
):
nren_name
=
rows
[
i
][
start_column
].
value
...
...
@@ -522,8 +523,8 @@ def fetch_nr_connected_excel_data():
sheet_name
=
"
Connected Institutions
"
ws
=
wb
[
sheet_name
]
rows
=
list
(
ws
.
rows
)
result
=
{}
def
create_points_for_year
(
year
,
start_column
):
for
i
in
range
(
5
,
48
):
nren_name
=
rows
[
i
][
start_column
].
value
...
...
@@ -548,8 +549,8 @@ def fetch_market_share_excel_data():
sheet_name
=
"
Table Market Share
"
ws
=
wb
[
sheet_name
]
rows
=
list
(
ws
.
rows
)
result
=
{}
def
create_points_for_year
(
year
,
start_column
):
for
i
in
range
(
8
,
51
):
nren_name
=
rows
[
i
][
start_column
].
value
...
...
@@ -576,8 +577,8 @@ def fetch_users_served_excel_data():
sheet_name
=
"
Users
"
ws
=
wb
[
sheet_name
]
rows
=
list
(
ws
.
rows
)
result
=
{}
def
create_points_for_year
(
year
,
start_column
):
for
i
in
range
(
4
,
47
):
nren_name
=
rows
[
i
][
start_column
].
value
...
...
@@ -602,8 +603,8 @@ def fetch_typical_speed_excel_data():
sheet_name
=
"
Table _Typical IP Link capacity
"
ws
=
wb
[
sheet_name
]
rows
=
list
(
ws
.
rows
)
result
=
{}
def
create_points_for_year
(
year
,
start_column
):
for
i
in
range
(
33
,
76
):
nren_name
=
rows
[
i
][
start_column
].
value
...
...
@@ -630,8 +631,8 @@ def fetch_highest_speed_excel_data():
sheet_name
=
"
Table _Highest IP Link capacity
"
ws
=
wb
[
sheet_name
]
rows
=
list
(
ws
.
rows
)
result
=
{}
def
create_points_for_year
(
year
,
start_column
):
for
i
in
range
(
33
,
76
):
nren_name
=
rows
[
i
][
start_column
].
value
...
...
@@ -658,8 +659,8 @@ def fetch_highest_speed_proportion_excel_data():
sheet_name
=
"
Aver High cap conn Share
"
ws
=
wb
[
sheet_name
]
rows
=
list
(
ws
.
rows
)
result
=
{}
def
create_points_for_year
(
year
,
start_column
):
for
i
in
range
(
5
,
48
):
nren_name
=
rows
[
i
][
start_column
].
value
...
...
@@ -700,6 +701,7 @@ def fetch_carriers_excel_data():
logger
.
warning
(
f
'
unknown carrier:
{
excel_carrier
}
'
)
result
=
{}
def
create_points_for_year
(
year
,
start_column
):
for
i
in
range
(
3
,
46
):
nren_name
=
rows
[
i
][
start_column
].
value
...
...
@@ -724,8 +726,8 @@ def fetch_growth_excel_data():
sheet_name
=
"
Table Traffic Growth %
"
ws
=
wb
[
sheet_name
]
rows
=
list
(
ws
.
rows
)
result
=
{}
def
create_points_for_year
(
year
,
start_column
):
for
i
in
range
(
5
,
46
):
nren_name
=
rows
[
i
][
start_column
].
value
...
...
@@ -750,8 +752,8 @@ def fetch_average_traffic_excel_data():
sheet_name
=
"
Average Traffic
"
ws
=
wb
[
sheet_name
]
rows
=
list
(
ws
.
rows
)
result
=
{}
def
create_points_for_year
(
year
,
start_column
):
for
i
in
range
(
5
,
48
):
nren_name
=
rows
[
i
][
start_column
].
value
...
...
@@ -777,8 +779,8 @@ def fetch_peak_traffic_excel_data():
sheet_name
=
"
Peak traffic
"
ws
=
wb
[
sheet_name
]
rows
=
list
(
ws
.
rows
)
result
=
{}
def
create_points_for_year
(
year
,
start_column
):
for
i
in
range
(
6
,
49
):
nren_name
=
rows
[
i
][
start_column
].
value
...
...
This diff is collapsed.
Click to expand it.
compendium_v2/publishers/survey_publisher_legacy_excel.py
+
12
−
13
View file @
d1fe126b
...
...
@@ -433,19 +433,18 @@ def db_remote_campuses_migration(nren_dict):
def
_cli
(
app
):
with
app
.
app_context
():
nren_dict
=
helpers
.
get_uppercase_nren_dict
()
# db_budget_migration(nren_dict)
# db_funding_migration(nren_dict)
# db_charging_structure_migration(nren_dict)
# db_staffing_migration(nren_dict)
# db_ecprojects_migration(nren_dict)
# db_organizations_migration(nren_dict)
# db_traffic_volume_migration(nren_dict)
# db_services_migration()
# db_nren_services_migration(nren_dict)
# db_connected_proportion_migration(nren_dict)
# db_connectivity_level_migration(nren_dict)
db_budget_migration
(
nren_dict
)
db_funding_migration
(
nren_dict
)
db_charging_structure_migration
(
nren_dict
)
db_staffing_migration
(
nren_dict
)
db_ecprojects_migration
(
nren_dict
)
db_organizations_migration
(
nren_dict
)
db_traffic_volume_migration
(
nren_dict
)
db_services_migration
()
db_nren_services_migration
(
nren_dict
)
db_connected_proportion_migration
(
nren_dict
)
db_connectivity_level_migration
(
nren_dict
)
db_connection_carrier_migration
(
nren_dict
)
db_connectivity_growth_migration
(
nren_dict
)
db_connectivity_load_migration
(
nren_dict
)
...
...
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