5.3.7.1. gemini_application.reportgenerator.reportgenerator
PDF report generation for well performance analysis and monitoring data.
Classes
Class for generating reports. |
- class gemini_application.reportgenerator.reportgenerator.ReportGenerator[source]
Bases:
ApplicationAbstractClass for generating reports.
The class retrieves data from the database and generates a report in pdf format.
Initialize report generator.
- add_cross_plot_with_skin_lines(units, tagnames, inputs)[source]
Add cross plot with skin lines to PDF.
- add_nlog_data(LicenseHolder, NlogPeriod, df_prod, df_inj, table3_df)[source]
Load the NLOG EXCEL template and writes the data.
- add_nlog_report(LicenseHolder, NlogPeriod, inj_wells, prod_wells, esps, hexs, prod_table_tagnames, inj_table_tagnames, esp_tagnames, hex_tagnames)[source]
Prepare NLOG report data and return Excel file as BytesIO.
- add_text_section_page(user_text, section_title='User Input Section')[source]
Include the text section as a page.
- add_timeseries_plot_to_pdf(data, timestamps, xlabel, ylabel, title)[source]
Add timeseries plot to PDF.
- calculate_esp_operational_hours_and_kwh(esp_data)[source]
Calculate the total number of operational hours and the total power consumption.
- calculate_total_heat_extracted_MJ(hex_data)[source]
Calculate the total heat extracted from heat exchanger measured data.
- calculate_total_volume(timestamps, flow_rates)[source]
Calculate total volume from timestamps and flow rates.
- get_unit_data(units, table_tagnames, use_plant_units_fallback=False)[source]
Retrieve data for given units and tagnames from database.