apply# SemiGrandCanonicalEventGenerator.apply( occ_event: OccEvent, )[source]# Update the occupation of the current state Parameters: occ_event (mcevents.OccEvent) – The event which is applied to update the occupation of the current state