fitroom.noneq_tool module

Created on Sun Sep 17 14:46:31 2017

@author: erwan

Non-equilibrium tool to define overpopulations


class DraggablePoint(point, action=None)[source]

Bases: object

A draggable point. Modified to allow vertical movement only

from Idealist @https://stackoverflow.com/questions/21654008/matplotlib-drag-overlapping-points-interactively

connect()[source]

connect to all the events we need

disconnect()[source]

disconnect all the stored connection ids

lock = None[source]
on_motion(event)[source]
on_press(event)[source]
on_release(event)[source]

on release we reset the press data

class Overpopulator(slab, levels='all', nfig=None)[source]

Bases: object

Parameters

slab – slab to connect to. Must be a slab calculated with from_band source mode

Examples

action()[source]
connect(fitroom)[source]

Triggered on connection to FitRoom

get()[source]
update_overpopulation()[source]