Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
adega
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
Model registry
Operate
Environments
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
Odair M.
adega
Commits
4c9d342d
Commit
4c9d342d
authored
7 years ago
by
João Denis Rodrigues
Browse files
Options
Downloads
Patches
Plain Diff
Template do scrpit
parent
9c117451
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/script.py
+30
-2
30 additions, 2 deletions
src/script.py
with
30 additions
and
2 deletions
src/script.py
+
30
−
2
View file @
4c9d342d
...
...
@@ -59,14 +59,16 @@ def generate_data():
generate_student_data
(
degree
,
path
)
generate_student_list_data
(
degree
,
path
)
generate_admission_data
(
degree
,
path
)
generate_
list_
admission_data
(
degree
,
path
)
generate_admission_
list_
data
(
degree
,
path
)
generate_course_data
(
degree
,
path
)
generate_course_general_data
(
degree
,
path
)
generate_cepe9615
(
degree
,
path
)
generate_cepe9615
_data
(
degree
,
path
)
def
generate_degree_data
(
degree
,
path
):
print
(
"
Fazendo analises do Curso - {}
"
.
format
(
degree
.
name
))
average_graduation
=
average_graduation
(
degree
)
# media_formandos
dic
=
merge_dicts
(
graph_average_ira
(
degree
),
graph_average_ira_evasion_semester
(
degree
),
graph_average_ira_graduation
(
degree
),
[
'
average_ira
'
,
'
semester_evasion
'
,
'
graduation
'
])
degree_data
=
{
'
time_graduation
'
:
average_time_graduation_degree
(
degree
),
'
graduation_rate
'
:
average_graduation
[
0
],
...
...
@@ -89,5 +91,31 @@ def generate_degree_data(degree, path):
str_
=
json
.
dumps
(
degree_data
,
indent
=
4
,
sort_keys
=
True
,
separators
=
(
'
,
'
,
'
:
'
),
ensure_ascii
=
False
)
output
.
write
(
to_unicode
(
str_
))
def
generate_student_data
(
degree
,
path
):
print
(
"
\t
- Fazendo analises dos alunos
"
)
pass
def
generate_student_list_data
(
degree
,
path
):
print
(
"
\t
- Criando lista de alunos
"
pass
def
generate_admission_data
(
degree
,
path
):
pass
def
generate_admission_list_data
(
degree
,
path
):
pass
def
generate_course_data
(
degree
,
path
):
print
(
"
\t
- Fazendo analises das disciplinas
"
)
pass
def
generate_course_general_data
(
degree
,
path
):
print
(
"
\t
- Fazendo analise geral das disciplinas
"
)
pass
def
generate_cp9615_data
(
degree
,
path
):
pass
if
__name__
==
'
__main__
'
:
main
()
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