Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions glidertest/summary_sheet.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import numpy as np
from rstcloth import RstCloth
from glidertest import tools, plots, utilities
from glidertest import tools, plots, utilities, __version__
from ioos_qc import qartod
from datetime import datetime
import pypandoc
Expand Down Expand Up @@ -330,6 +330,7 @@ def create_docfile(ds, path):
doc.newline()
dur = phrase_duration_check(ds)
doc.content(f"Issues with profile number: {profnum} ")
doc.newline()
doc.content(f"Issues with profile duration: {dur}", )
gr_strb = ['Global range', '✓', '✓', '✓', '✓']
st_strb = ['Spike test', '✓', '✓', '✓', '✓']
Expand All @@ -354,7 +355,7 @@ def create_docfile(ds, path):
dr_strb,
])
todays_date = datetime.today().strftime('%Y-%m-%d')
doc.content(f'Created with glidertest on {todays_date}')
doc.content(f'Created with glidertest version {__version__} on {todays_date}')

return doc

Expand Down Expand Up @@ -547,7 +548,7 @@ def create_drift_plots(ds, path):
"""
available_sensor, available_optics, vars_optics = optics_avaialble_data(ds)
for var in vars_optics:
fig, ax = plots.process_optics_assess(ds, var='CHLA')
fig, ax = plots.process_optics_assess(ds, var=var)
fig_name = f'{var}_drift.png'
fig.savefig(f'{path}/{fig_name}')

Expand Down Expand Up @@ -614,15 +615,19 @@ def create_optics_doc(ds, path):
('alt', ''),
('width', '600px')
])
doc.newline()

doc.h2('Drift')
for var in vars_optics:
fig_name = f'{var}_drift.png'
doc.directive('image', f'./{fig_name}', fields=[
('alt', ''),
('width', '600px')
])
doc.newline()

todays_date = datetime.today().strftime('%Y-%m-%d')
doc.content(f'Created with glidertest on {todays_date}')
doc.content(f'Created with glidertest {__version__} on {todays_date}')

return doc

Expand Down
Loading