Closed aswanipranjal closed 6 years ago
@jgbarah please review?
I am working on bin/manuscripts2 and will update the README.md again with instructions on creating the PDF reports
I'll just create another PR with the updated README.md once I am finished with creating the bin/manuscripts2 (it needs to take input params when run from the command line)
@jgbarah ping.
Sorry for being late to the review. Thanks for merging!
This PR adds the necessary functions to generate a PDF report using the CSV and EPS files created.
Update the
create_csv_fig_from_df
function in manuscripts2/report.py so that the diagrams created are of size (8X10) so that they can be used in the PDF generated.Add
create_data_figs
function which calls the functionsget_sec_overview
,get_sec_project_activity
,get_sec_project_process
andget_sec_project_community
. These functions in turn generate the data for each of the metrics under those sections of the reports. This data (CSV and EPS files) are added to the foldersactivity
,process
,community
andoverview
.Add latex template files which were being used in the old manuscripts code. Thse files have been modified and the paths of the files have been changed. These latex templates also have the same folders:
activity
,process
,community
andoverview
, so the CSV and EPS files generated in the previous steps is directly added to these folders for easier accessibility.Add.tex files to the latex template files (linking the data that is to be displayed in the PDF). Finally, this function generates the final PDF from the main
create_pdf
function. This function replaces the strings which are outdated (Copyright information, time periods and such) and addsreport.tex
file.Update bin/manuscripts2 to create the report
Remove underscores from headers and titles so that latex can work with the data.