B
    =]	                 @   s"  d dl Zd dlZd dlmZmZmZ d dl Zd dlZd dl	Z
d dlmZ d dlmZ e Ze Zed ed gZeed ed  ed    ed	d
dgddddgiddddZed ed gZeed ed  ed   edddgddddgiddddZeeje
ejdegdddiddid d!d"d"d#gd$d%d&ge
ejd'egd(ddiddid d)d"d"d#gd$d%d&ge
ejd*ed+ ed, ed ed  gd-d.d/gddd"d0gd1ddiddid d2d"d"d#gd$d%d&ggd3d4d5id6e
jd7ed8 ed9 gd:d:d;d<d=gZdS )>    N)InputOutputState)app)	datastoretotal_knots_with_offsetstotal_knots_without_offsetstotal_resolved_xray_knots   zKnots with offsetszKnots without offsetsz Knots without radio counterpartscolorszrgb(31, 119, 180)zrgb(255, 127, 14)zrgb(44, 160, 44)piezlabel+percentg?)valueslabelsmarkertype	hoverinfoholetotal_HS_with_offsetstotal_HS_without_offsetstotal_resolved_xray_HSzHS with offsetszHS without offsetsz HS with ambiguous radio featureszknots-summary-piezX-ray Knotsorientationhsize   FZKnotsg      ?)font	showarrowtextxy)titlelegendannotations)datalayout)idfigurezhotspots-summary-piezX-ray HotspotsZHSzoffset-type-piexray_first_offsetsradio_first_offsetszX-ray upstream offsetzX-ray downstream offsetz	No offset)r   r   r   r   r   zAll featureszknots+HSzflex-boxclearboth)	classNamestylez~There are {0}/{1} sources where the X-ray emission from the jet terminates abruptly whenever there is a bend in the radio jet.#total_xray_jet_terminates_at_a_bend
total_jetsZ50pxcenter)heightzline-heightz
text-align)r+   )dash_core_componentsdccjsondash.dependenciesr   r   r   dash_html_componentshtmlsd_material_uismuir   r   dsget_summary_dataZsummary_dataZknots_summary_valuesappendZknots_summary_dataZhs_summary_valuesZhs_summary_dataDivPaperGraphformatr#    r?   r?   4/home/batman/XJETS/offsets/dashboard/tabs/summary.py<module>   s   


	

