-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
65 lines (46 loc) · 2.87 KB
/
makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# runs stage 1, stage 2, and stage 3 cleaning -> updating files in order after code changes
run-cleaning-1-3:
python src/first_cleaning_stage_code/run_stage_1_cleaning.py && python src/second_cleaning_stage_code/run_stage_2_cleaning.py && python src/third_cleaning_stage_code/run_third_stage_cleaning.py
# runs collecting_fandoms.py -> updating any of the 3 full_[...].json files in reference data
collect-fandoms:
python src/fourth_stage_fixing_values_code/collecting_fandoms.py
# updates fourth stage fandom files
update-fandoms:
python src/fourth_stage_fixing_values_code/unify_fandoms.py && python src/fourth_stage_fixing_values_code/updating_fandom_characters.py
# updates fourth stage character name files
update-names:
python src/fourth_stage_fixing_values_code/separate_names_into_parts.py && python src/fourth_stage_fixing_values_code/categorise_character_names.py && python src/fourth_stage_fixing_values_code/complete_character_names.py && python src/fourth_stage_fixing_values_code/extracting_clean_abbr_name_lists.py
# updates stage four main files
run-cleaning-4:
python src/fourth_stage_fixing_values_code/run_stage_4_cleaning.py
# updates demographic info (gender & race tags) -> updates all files in data/reference_and_test_files/assigning_demographic_info/
update-demographics:
python src/fifth_cleaning_stage_code/collect_gender_tags_per_character.py && python src/fifth_cleaning_stage_code/assign_gender_per_character.py && python src/fifth_cleaning_stage_code/collect_race_tags_per_character.py && python src/fifth_cleaning_stage_code/assign_race_tag_per_character.py
#need to double check notes abt vv these two's syntax
# runs all stage 4 & 5 character updates (names & demo)
update-characters:
make update-names run-cleaning-4 update-demographics
# runs all fandom & character updates
update-fandoms-and-characters:
make update-fandoms update-characters
# runs stage 5 cleaning file
run-cleaning-5:
python src/fifth_cleaning_stage_code/run_stage_5_cleaning.py
# runs "ao3_all_data_2013_2023" vis file to (re)make diagrams
make-ao3-all-data-charts:
python visualisation/ao3_all_data_2013_2023/vis_total_data_run_code.py
# runs "ao3_femslash_rankings_2014_2023"'s vis file to (re)make diagrams
make-ao3-femslash-charts:
python visualisation/ao3_femslash_rankings_2014_2023/run_ao3_femslash_code.py
# runs "ao3_overall_rankings_2013_2023"'s vis file to (re)make diagrams
make-ao3-overall-charts:
python visualisation/ao3_overall_rankings_2013_2023/run_ao3_overall_code.py
# runs "ao3_annual_rankings_2016_2023"'s vis file to (re)make diagrams
make-ao3-annual-charts:
python visualisation/ao3_annual_rankings_2016_2023/run_ao3_annual_code.py
# runs ao3 vis for femslash, overall and annual rankings
make-ao3-charts:
python visualisation/run_visualisation.py
# make fandoms table with additional fandom data
run-fandoms-table:
python src/additional_data_fandoms/make_fandoms_table.py