hscmap.catalogs module¶
- class hscmap.catalogs.CatalogManager(_w: hscmap.window.Window)[source]¶
Bases:
object
- Parameters:
_w (Window) –
- from_pandas(df, *, name=None, coord_column=None, color_column=None, type_column=None, base_color=None, default_marker_type='circle', open_catalog_table=False)[source]¶
- Parameters:
df (None) –
name (str | None) –
coord_column (Tuple[str, str] | None) –
color_column (str | None) –
type_column (str | None) –
base_color (List[float] | None) –
default_marker_type (Literal['asterisk', 'circle', 'circledHollowAsterisk', 'circledHollowPlus', 'circledHollowX', 'diamond', 'dot', 'hollowAsterisk', 'hollowPlus', 'hollowX', 'pentagon', 'plus', 'square', 'triangle', 'x']) –
- Return type:
- new(ra, dec, *, name=None, color=None, type=None, base_color=None, default_marker_type='circle', open_catalog_table=False)[source]¶
- Parameters:
ra (List[float]) –
dec (List[float]) –
name (str | None) –
color (List[List[float] | None] | None) –
type (List[Literal['asterisk', 'circle', 'circledHollowAsterisk', 'circledHollowPlus', 'circledHollowX', 'diamond', 'dot', 'hollowAsterisk', 'hollowPlus', 'hollowX', 'pentagon', 'plus', 'square', 'triangle', 'x']] | None) –
base_color (List[float] | None) –
default_marker_type (Literal['asterisk', 'circle', 'circledHollowAsterisk', 'circledHollowPlus', 'circledHollowX', 'diamond', 'dot', 'hollowAsterisk', 'hollowPlus', 'hollowX', 'pentagon', 'plus', 'square', 'triangle', 'x']) –
- Return type:
- class hscmap.catalogs.Catalog(id: str, _w: hscmap.window.Window)[source]¶
Bases:
object
- Parameters:
id (str) –
_w (Window) –
- id: str¶
- property name: str¶
- property color: List[float]¶
- property marker: Literal['asterisk', 'circle', 'circledHollowAsterisk', 'circledHollowPlus', 'circledHollowX', 'diamond', 'dot', 'hollowAsterisk', 'hollowPlus', 'hollowX', 'pentagon', 'plus', 'square', 'triangle', 'x']¶
- property column_names: List[str]¶
- property visible: bool¶
- property selected_indices: List[int]¶