code stringlengths 3 6.57k |
|---|
self._cleanup_cg_in_volume(volume) |
execute(self, context, volume, volume_spec) |
dict(volume_spec) |
volume_spec.pop('volume_id', None) |
exception.DriverNotInitialized() |
NOTE(xyang) |
consistencygroup.ConsistencyGroup() |
cg.from_group(volume.group) |
volume_spec.pop('type', None) |
LOG.info("Volume %(volume_id) |
volume_spec.update({'need_update_volume': need_update_volume}) |
exception.VolumeTypeNotFound(volume_type_id=create_type) |
volume.obj_as_admin() |
volume.update(model_update) |
volume.save() |
LOG.exception("Failed updating model of volume %(volume_id) |
_cleanup_cg_in_volume(self, volume) |
NOTE(xyang) |
if (('group_id' in volume and volume.group_id) |
CreateVolumeOnFinishTask(NotifyVolumeActionTask) |
__init__(self, db, event_suffix) |
super(CreateVolumeOnFinishTask, self) |
__init__(db, event_suffix) |
execute(self, context, volume, volume_spec) |
volume_spec.pop('need_update_volume', True) |
super(CreateVolumeOnFinishTask, self) |
execute(context, volume) |
self.status_translation.get(volume_spec.get('status') |
timeutils.utcnow() |
TODO(harlowja) |
volume.update(update) |
volume.save() |
super(CreateVolumeOnFinishTask, self) |
execute(context, volume) |
LOG.exception("Failed updating volume %(volume_id) |
LOG.info("Volume %(volume_name) |
s (%(volume_id) |
enabled (ahead of time) |
ACTION.replace(":", "_") |
linear_flow.Flow(flow_name) |
volume_flow.add(ExtractVolumeRefTask(db, host, set_error=False) |
filter_properties.get('retry', None) |
LOG.debug("Volume reschedule parameters: %(allow) |
volume_flow.add(ExtractVolumeSpecTask(db) |
NotifyVolumeActionTask(db, "create.start") |
CreateVolumeOnFinishTask(db, "create.end") |
load (but do not run) |
taskflow.engines.load(volume_flow, store=create_what) |
print("//////////Univariate Gaussian///////") |
np.random.rand(100) |
edda.Gaussian(100, 20) |
print("gaussian.getMean() |
gaussian.getMean() |
print("gaussian.getVar() |
gaussian.getVar() |
print("gaussian.getPdf(105) |
gaussian.getPdf(105) |
print("gaussian.getSample() |
gaussian.getSample() |
print("gaussian.getCdf(105) |
gaussian.getCdf(105) |
print("gaussian.getCdfPrecise() |
gaussian.getCdfPrecise(105) |
print("Output gaussian:") |
gaussian.output() |
print() |
ContactModelMutation(SerializerMutation) |
ContactNode(DjangoObjectType) |
ContactType(DjangoObjectType) |
Query(graphene.ObjectType) |
Node.Field(ContactNode) |
DjangoFilterConnectionField(ContactNode) |
graphene.Field(ContactType, id=graphene.Int() |
graphene.List(ContactType) |
resolve_contacts(self, info, **kwargs) |
Contact.objects.all() |
resolve_contact(self, info, id) |
get_object_or_404(Contact, pk=id) |
DeleteMutation(graphene.Mutation) |
graphene.Int(required=True) |
graphene.ID() |
graphene.String() |
mutate(cls, root, info, id) |
get_object_or_404(Contact, pk=id) |
contact.delete() |
cls(id=id, message='deleted') |
Mutation(graphene.ObjectType) |
ContactModelMutation.Field() |
ContactModelMutation.Field() |
DeleteMutation.Field() |
graphene.Schema(query=Query, mutation=Mutation) |
Ping (MicroPing) |
copyright (c) |
copyright (c) |
checksum(data) |
len(data) |
range(0, len(data) |
stddev(data) |
len(data) |
sum(data) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.