
 Ûra	  ã               @   sx  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 j ƒ  Z e d e d g Z e j e d e d e d  ƒ d	 e d
 d d d g d d d d d g i d d d d d d i Z e d e d g Z e j e d e d e d ƒ d	 e d
 d d d g d d d d d g i d d d d d d i Z e j e j e
 j e j d d  d! d" e g d# d$ d% d& d' d( i d) d* d+ d, i d- d. d/ d0 d1 d2 d3 d2 i g i i ƒ g ƒ e
 j e j d d4 d! d" e g d# d$ d5 d& d' d( i d) d* d+ d, i d- d. d/ d6 d1 d2 d3 d2 i g i i ƒ g ƒ e
 j e j d d7 d! d" d	 e d8 e d9 e d e d g d
 d: d; d< g d d d d d d2 i g d# d$ d= d& d' d( i d) d* d+ d, i d- d. d/ d> d1 d2 d3 d2 i g i i ƒ g ƒ g d? d@ dA dB dC i ƒe
 j dD j e dE e dF ƒ g dA dG dH dI dH dJ dK i ƒg ƒ Z d S)Lé    N)ÚInputÚOutputÚState)Úapp)Ú	datastoreÚtotal_knots_with_offsetsÚtotal_knots_without_offsetsÚtotal_resolved_xray_knotsé   ÚvaluesÚlabelszKnots with offsetszKnots without offsetsz Knots without radio counterpartsÚmarkerÚcolorszrgb(31, 119, 180)zrgb(255, 127, 14)zrgb(44, 160, 44)ÚtypeÚpieÚ	hoverinfozlabel+percentÚholegš™™™™™Ù?Útotal_HS_with_offsetsÚtotal_HS_without_offsetsÚtotal_resolved_xray_HSzHS with offsetszHS without offsetsz HS with ambiguous radio featuresÚidzknots-summary-pieÚfigureÚdataÚlayoutÚtitlezX-ray KnotsÚlegendÚorientationÚhÚannotationsÚfontÚsizeé   Ú	showarrowFÚtextZKnotsÚxg      à?Úyz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 offsetzAll featureszknots+HSÚ	classNamezflex-boxÚstyleÚclearÚbothz~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_jetsÚheightZ50pxzline-heightz
text-alignÚcenter)Ú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?   ú*/var/www/atlasX/components/tabs/summary.pyÚ<module>   sÎ   												!	