code
stringlengths
3
6.57k
if(self.status == self.STATUS_CHOICES[1][0])
Notification(meeting=self.meeting, profile=self.profile, notification = Notification.NOTIFICATION_APPLY_APPROVED)
notification.save()
print("Notify")
elif(self.status == self.STATUS_CHOICES[2][0])
Notification(meeting = self.meeting, profile = self.profile, notification = Notification.NOTIFICATION_APPLY_REJECTED)
notification.save()
super()
save(*args, **kwargs)
FREQ2 (not implemented)
FREQ5 (not implemented)
DELAY(BaseCard)
__init__(self, sid, nodes, components, delays, comment='')
entry. (Integer > 0)
number. (Integer > 0)
delay (tau)
Ci. (Real)
add_card(cls, card, comment='')
BDF.add_card(...)
BDFCard()
integer(card, 1, 'sid')
integer(card, 2, 'node')
integer(card, 3, 'components')
double_or_blank(card, 4, 'delay')
card.field(5)
nodes.append(integer(card, 5, 'node')
components.append(integer(card, 6, 'components')
delays.append(double_or_blank(card, 7, 'delay')
DELAY(sid, nodes, components, delays, comment=comment)
add(self, delay)
hasattr('_comment')
get_delay_at_freq(self, freq)
cross_reference(self, model: BDF)
BDF()
model.Node(self.node_ids, msg=msg)
node_id1(self)
isinstance(self.nodes[0], integer_types)
node_id2(self)
isinstance(self.nodes[1], integer_types)
node_ids(self)
len(self.components)
node_ids.append(self.node_id2)
raw_fields(self)
zip(self.node_ids, self.components, self.delays)
isinstance(nid, integer_types)
write_card(self, size: int=8, is_double: bool=False)
zip(node_ids, self.components, self.delays)
print_card_8(['DELAY', self.sid, nid, comp, delay])
zip(node_ids, self.components, self.delays)
print_card_16(['DELAY', self.sid, nid, comp, delay])
DPHASE(BaseCard)
__init__(self, sid, nodes, components, phase_leads, comment='')
add_card(cls, card, comment='')
BDF.add_card(...)
BDFCard()
integer(card, 1, 'sid')
integer(card, 2, 'node')
integer(card, 3, 'components')
double_or_blank(card, 4, 'phase_lead')
card.field(5)
nodes.append(integer(card, 5, 'node')
components.append(integer(card, 6, 'components')
phase_leads.append(double_or_blank(card, 7, 'phase_lead')
DPHASE(sid, nodes, components, phase_leads, comment=comment)
add(self, dphase)
hasattr('_comment')
cross_reference(self, model: BDF)
BDF()
model.Nodes(self.node_ids, msg=msg)
node_id1(self)
isinstance(self.nodes[0], integer_types)
node_id2(self)
isinstance(self.nodes[1], integer_types)
node_ids(self)
len(self.components)
node_ids.append(self.node_id2)
raw_fields(self)
zip(self.nodes, self.components, self.phase_leads)
isinstance(nid, integer_types)
write_card(self, size: int=8, is_double: bool=False)
zip(node_ids, self.components, self.phase_leads)
print_card_8(['DPHASE', self.sid, nid, comp, delay])
zip(node_ids, self.components, self.phase_leads)
print_card_16(['DPHASE', self.sid, nid, comp, delay])
FREQ(BaseCard)
__init__(self, sid, freqs, comment='')
np.unique(freqs)
add_card(cls, card, comment='')
BDF.add_card(...)
BDFCard()
integer(card, 1, 'sid')
fields(double, card, 'freq', i=2, j=len(card)
FREQ(sid, freqs, comment=comment)
get_freqs(self)
add_frequencies(self, freqs)
print("self.freqs = ",self.freqs)
print("freqs = ",freqs)
unique(hstack([self.freqs, freqs])
add_frequency_object(self, freq)
self.add_frequencies(freq.freqs)