hscmap.catalogs module

class hscmap.catalogs.CatalogManager(_w: hscmap.window.Window)[source]

Bases: object

Parameters:

_w (Window) –

property members: List[Catalog]
clear()[source]
Return type:

None

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:

Catalog

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:

Catalog

class hscmap.catalogs.Catalog(id: str, _w: hscmap.window.Window)[source]

Bases: object

Parameters:
  • id (str) –

  • _w (Window) –

id: str
delete()[source]
Return type:

None

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]
as_pandas_dataframe()[source]
Return type:

None

hscmap.catalogs.sample_pandas_data(n_rows=500)[source]
Parameters:

n_rows (int) –