py_eddy_tracker.observations.network.Network

class py_eddy_tracker.observations.network.Network(input_regex, window=5, intern=False, memory=False)[source]

Bases: object

Class to group observations by network

Methods

build_dataset

from_eddiesobservations

get_group_array

With a loop on all pair of index, we will label each obs with a group number

group_observations

group_translator

Create a translator with all duos

Attributes

NOGROUP

buffer

filenames

memory

nb_input

window

NOGROUP = 0
buffer
build_dataset(group, raw_data=True)[source]
filenames
classmethod from_eddiesobservations(observations, *args, **kwargs)[source]
get_group_array(results, nb_obs)[source]

With a loop on all pair of index, we will label each obs with a group number

group_observations(**kwargs)[source]
static group_translator(nb, duos)[source]

Create a translator with all duos

Parameters
  • nb (int) – size of translator

  • int)) duos (set((int,) – set of all groups that must be joined

Example

>>> NetworkObservations.group_translator(5, ((0, 1), (0, 2), (1, 3)))
[3, 3, 3, 3, 5]
memory
nb_input
window