body_hash stringlengths 64 64 | body stringlengths 23 109k | docstring stringlengths 1 57k | path stringlengths 4 198 | name stringlengths 1 115 | repository_name stringlengths 7 111 | repository_stars float64 0 191k | lang stringclasses 1
value | body_without_docstring stringlengths 14 108k | unified stringlengths 45 133k |
|---|---|---|---|---|---|---|---|---|---|
b66c91b279ba45d88dab10ece949747c9e2797d8fa821722d05b13007ef1e9fa | def write_adjoint_traces(self, path, syn, obs, channel, att=''):
' Writes "adjoint traces" required for gradient computation\n (overwrites synthetic data in the process)\n\n INPUT\n PATH - location "adjoint traces" will be written\n SYN - obspy Stream object containing synthet... | Writes "adjoint traces" required for gradient computation
(overwrites synthetic data in the process)
INPUT
PATH - location "adjoint traces" will be written
SYN - obspy Stream object containing synthetic data
OBS - obspy Stream object containing observed data
CHANNEL - channel or component code used by wri... | seisflows/preprocess/ortho.py | write_adjoint_traces | fanwu8/sf | 1 | python | def write_adjoint_traces(self, path, syn, obs, channel, att=):
' Writes "adjoint traces" required for gradient computation\n (overwrites synthetic data in the process)\n\n INPUT\n PATH - location "adjoint traces" will be written\n SYN - obspy Stream object containing synthetic... | def write_adjoint_traces(self, path, syn, obs, channel, att=):
' Writes "adjoint traces" required for gradient computation\n (overwrites synthetic data in the process)\n\n INPUT\n PATH - location "adjoint traces" will be written\n SYN - obspy Stream object containing synthetic... |
750bad1c322aec579a60aaa7ac68b4b92a14c2ca561c048044b4e46f068b3f83 | def kineticsSimple(t, y):
'Pass k into function as global variable'
return ((((k[0] * y[0]) * np.array([(- 1.0), 1.0, 0.0])) + (((k[1] * y[1]) * y[2]) * np.array([1.0, (- 1.0), 0.0]))) + ((k[2] * y[1]) * np.array([0.0, (- 1.0), 1.0]))) | Pass k into function as global variable | 01_reactionKinetics/reactionKinetics.py | kineticsSimple | JulianBauerCode/ODExamples | 0 | python | def kineticsSimple(t, y):
return ((((k[0] * y[0]) * np.array([(- 1.0), 1.0, 0.0])) + (((k[1] * y[1]) * y[2]) * np.array([1.0, (- 1.0), 0.0]))) + ((k[2] * y[1]) * np.array([0.0, (- 1.0), 1.0]))) | def kineticsSimple(t, y):
return ((((k[0] * y[0]) * np.array([(- 1.0), 1.0, 0.0])) + (((k[1] * y[1]) * y[2]) * np.array([1.0, (- 1.0), 0.0]))) + ((k[2] * y[1]) * np.array([0.0, (- 1.0), 1.0])))<|docstring|>Pass k into function as global variable<|endoftext|> |
08dd6f0a3e6c73aa97f83b594482e0c52db54e7b7ebcc20e26efa5ba8139ca7e | def kinetics(t, y, k):
'Pass k into funtcion as additional parameter'
return ((((k[0] * y[0]) * np.array([(- 1.0), 1.0, 0.0])) + (((k[1] * y[1]) * y[2]) * np.array([1.0, (- 1.0), 0.0]))) + ((k[2] * y[1]) * np.array([0.0, (- 1.0), 1.0]))) | Pass k into funtcion as additional parameter | 01_reactionKinetics/reactionKinetics.py | kinetics | JulianBauerCode/ODExamples | 0 | python | def kinetics(t, y, k):
return ((((k[0] * y[0]) * np.array([(- 1.0), 1.0, 0.0])) + (((k[1] * y[1]) * y[2]) * np.array([1.0, (- 1.0), 0.0]))) + ((k[2] * y[1]) * np.array([0.0, (- 1.0), 1.0]))) | def kinetics(t, y, k):
return ((((k[0] * y[0]) * np.array([(- 1.0), 1.0, 0.0])) + (((k[1] * y[1]) * y[2]) * np.array([1.0, (- 1.0), 0.0]))) + ((k[2] * y[1]) * np.array([0.0, (- 1.0), 1.0])))<|docstring|>Pass k into funtcion as additional parameter<|endoftext|> |
98d2c0217ae98ef272fef12ebf8dccc6dbc7a07d2383780a1da13cef3bd63e24 | def marketPrice(self):
'\n Return the first available one of\n \n * last price\n * average of bid and ask\n * close price\n '
price = self.last
if isNan(price):
price = ((self.bid + self.ask) / 2)
if isNan(price):
price = self.close
return pr... | Return the first available one of
* last price
* average of bid and ask
* close price | ib_insync/ticker.py | marketPrice | stnatter/ib_insync | 2 | python | def marketPrice(self):
'\n Return the first available one of\n \n * last price\n * average of bid and ask\n * close price\n '
price = self.last
if isNan(price):
price = ((self.bid + self.ask) / 2)
if isNan(price):
price = self.close
return pr... | def marketPrice(self):
'\n Return the first available one of\n \n * last price\n * average of bid and ask\n * close price\n '
price = self.last
if isNan(price):
price = ((self.bid + self.ask) / 2)
if isNan(price):
price = self.close
return pr... |
8239f0f2d4e03b417b76f8a9dfbbeac1f783706508a13bf344caceeae356b5d4 | def generate_N_random_date(N, start, end):
'\n This function will return N random datetime objects between two datetime \n objects.\n '
delta = (end - start)
int_delta = ((((delta.days * 24) * 60) * 60) + delta.seconds)
result = []
for i in range(N):
random_second = random.randrange... | This function will return N random datetime objects between two datetime
objects. | input_data/data_generation.py | generate_N_random_date | MandyKwok/Helper | 0 | python | def generate_N_random_date(N, start, end):
'\n This function will return N random datetime objects between two datetime \n objects.\n '
delta = (end - start)
int_delta = ((((delta.days * 24) * 60) * 60) + delta.seconds)
result = []
for i in range(N):
random_second = random.randrange... | def generate_N_random_date(N, start, end):
'\n This function will return N random datetime objects between two datetime \n objects.\n '
delta = (end - start)
int_delta = ((((delta.days * 24) * 60) * 60) + delta.seconds)
result = []
for i in range(N):
random_second = random.randrange... |
5498497e44db14cf42fc618d742ed338104aa65adf462390440c49a34977de9d | @docstring_util.expand_docstring(args=doc_args)
def __init__(self, units, activation=None, activity_regularizer=None, kernel_posterior_fn=tfp_layers_util.default_mean_field_normal_fn(), kernel_posterior_tensor_fn=(lambda d: d.sample()), kernel_prior_fn=tfp_layers_util.default_multivariate_normal_fn, kernel_divergence_f... | Construct layer.
Args:
@{args} | tensorflow_probability/python/layers/dense_variational.py | __init__ | jakobnicolaus/probability | 1 | python | @docstring_util.expand_docstring(args=doc_args)
def __init__(self, units, activation=None, activity_regularizer=None, kernel_posterior_fn=tfp_layers_util.default_mean_field_normal_fn(), kernel_posterior_tensor_fn=(lambda d: d.sample()), kernel_prior_fn=tfp_layers_util.default_multivariate_normal_fn, kernel_divergence_f... | @docstring_util.expand_docstring(args=doc_args)
def __init__(self, units, activation=None, activity_regularizer=None, kernel_posterior_fn=tfp_layers_util.default_mean_field_normal_fn(), kernel_posterior_tensor_fn=(lambda d: d.sample()), kernel_prior_fn=tfp_layers_util.default_multivariate_normal_fn, kernel_divergence_f... |
4384c21db7bd4397eb9dd62bc64aed32baaefa532d6bc97ca51ec37b479581ad | def compute_output_shape(self, input_shape):
'Computes the output shape of the layer.\n\n Args:\n input_shape: Shape tuple (tuple of integers) or list of shape tuples\n (one per output tensor of the layer). Shape tuples can include None for\n free dimensions, instead of an integer.\n\n Retu... | Computes the output shape of the layer.
Args:
input_shape: Shape tuple (tuple of integers) or list of shape tuples
(one per output tensor of the layer). Shape tuples can include None for
free dimensions, instead of an integer.
Returns:
output_shape: A tuple representing the output shape.
Raises:
ValueE... | tensorflow_probability/python/layers/dense_variational.py | compute_output_shape | jakobnicolaus/probability | 1 | python | def compute_output_shape(self, input_shape):
'Computes the output shape of the layer.\n\n Args:\n input_shape: Shape tuple (tuple of integers) or list of shape tuples\n (one per output tensor of the layer). Shape tuples can include None for\n free dimensions, instead of an integer.\n\n Retu... | def compute_output_shape(self, input_shape):
'Computes the output shape of the layer.\n\n Args:\n input_shape: Shape tuple (tuple of integers) or list of shape tuples\n (one per output tensor of the layer). Shape tuples can include None for\n free dimensions, instead of an integer.\n\n Retu... |
03e54f3df128f3fa1e7b34ea84f8622f4e57963263ad0921a47ffdb5f4c3029f | def get_config(self):
'Returns the config of the layer.\n\n A layer config is a Python dictionary (serializable) containing the\n configuration of a layer. The same layer can be reinstantiated later\n (without its trained weights) from this configuration.\n\n Returns:\n config: A Python dictionary ... | Returns the config of the layer.
A layer config is a Python dictionary (serializable) containing the
configuration of a layer. The same layer can be reinstantiated later
(without its trained weights) from this configuration.
Returns:
config: A Python dictionary of class keyword arguments and their
serialized va... | tensorflow_probability/python/layers/dense_variational.py | get_config | jakobnicolaus/probability | 1 | python | def get_config(self):
'Returns the config of the layer.\n\n A layer config is a Python dictionary (serializable) containing the\n configuration of a layer. The same layer can be reinstantiated later\n (without its trained weights) from this configuration.\n\n Returns:\n config: A Python dictionary ... | def get_config(self):
'Returns the config of the layer.\n\n A layer config is a Python dictionary (serializable) containing the\n configuration of a layer. The same layer can be reinstantiated later\n (without its trained weights) from this configuration.\n\n Returns:\n config: A Python dictionary ... |
75e46ed502e9910abb035dfcb612765301ce91ee32fbd1341da13fd972839a12 | @classmethod
def from_config(cls, config):
'Creates a layer from its config.\n\n This method is the reverse of `get_config`, capable of instantiating the\n same layer from the config dictionary.\n\n Args:\n config: A Python dictionary, typically the output of `get_config`.\n\n Returns:\n layer... | Creates a layer from its config.
This method is the reverse of `get_config`, capable of instantiating the
same layer from the config dictionary.
Args:
config: A Python dictionary, typically the output of `get_config`.
Returns:
layer: A layer instance. | tensorflow_probability/python/layers/dense_variational.py | from_config | jakobnicolaus/probability | 1 | python | @classmethod
def from_config(cls, config):
'Creates a layer from its config.\n\n This method is the reverse of `get_config`, capable of instantiating the\n same layer from the config dictionary.\n\n Args:\n config: A Python dictionary, typically the output of `get_config`.\n\n Returns:\n layer... | @classmethod
def from_config(cls, config):
'Creates a layer from its config.\n\n This method is the reverse of `get_config`, capable of instantiating the\n same layer from the config dictionary.\n\n Args:\n config: A Python dictionary, typically the output of `get_config`.\n\n Returns:\n layer... |
c44bf82af56d33693d5c0e483317b8ab10c3e595ed0d6757261bee2d1edb4f71 | @docstring_util.expand_docstring(args=doc_args)
def __init__(self, units, activation=None, activity_regularizer=None, trainable=True, kernel_posterior_fn=tfp_layers_util.default_mean_field_normal_fn(), kernel_posterior_tensor_fn=(lambda d: d.sample()), kernel_prior_fn=tfp_layers_util.default_multivariate_normal_fn, ker... | Construct layer.
Args:
@{args} | tensorflow_probability/python/layers/dense_variational.py | __init__ | jakobnicolaus/probability | 1 | python | @docstring_util.expand_docstring(args=doc_args)
def __init__(self, units, activation=None, activity_regularizer=None, trainable=True, kernel_posterior_fn=tfp_layers_util.default_mean_field_normal_fn(), kernel_posterior_tensor_fn=(lambda d: d.sample()), kernel_prior_fn=tfp_layers_util.default_multivariate_normal_fn, ker... | @docstring_util.expand_docstring(args=doc_args)
def __init__(self, units, activation=None, activity_regularizer=None, trainable=True, kernel_posterior_fn=tfp_layers_util.default_mean_field_normal_fn(), kernel_posterior_tensor_fn=(lambda d: d.sample()), kernel_prior_fn=tfp_layers_util.default_multivariate_normal_fn, ker... |
24b07bbf7531846e4bc922222f4ec2849a96d94460b9b169598abcfaedec576b | @docstring_util.expand_docstring(args=doc_args)
def __init__(self, units, activation=None, activity_regularizer=None, trainable=True, kernel_posterior_fn=tfp_layers_util.default_mean_field_normal_fn(), kernel_posterior_tensor_fn=(lambda d: d.sample()), kernel_prior_fn=tfp_layers_util.default_multivariate_normal_fn, ker... | Construct layer.
Args:
@{args} | tensorflow_probability/python/layers/dense_variational.py | __init__ | jakobnicolaus/probability | 1 | python | @docstring_util.expand_docstring(args=doc_args)
def __init__(self, units, activation=None, activity_regularizer=None, trainable=True, kernel_posterior_fn=tfp_layers_util.default_mean_field_normal_fn(), kernel_posterior_tensor_fn=(lambda d: d.sample()), kernel_prior_fn=tfp_layers_util.default_multivariate_normal_fn, ker... | @docstring_util.expand_docstring(args=doc_args)
def __init__(self, units, activation=None, activity_regularizer=None, trainable=True, kernel_posterior_fn=tfp_layers_util.default_mean_field_normal_fn(), kernel_posterior_tensor_fn=(lambda d: d.sample()), kernel_prior_fn=tfp_layers_util.default_multivariate_normal_fn, ker... |
7b9b979e33f82487a5c3bb732b4efeb82c2cdc34bb5076172ecbf9feff801065 | @docstring_util.expand_docstring(args=doc_args)
def __init__(self, units, activation=None, activity_regularizer=None, trainable=True, kernel_posterior_fn=tfp_layers_util.default_mean_field_normal_fn(), kernel_posterior_tensor_fn=(lambda d: d.sample()), kernel_prior_fn=tfp_layers_util.default_multivariate_normal_fn, ker... | Construct layer.
Args:
@{args}
seed: Python scalar `int` which initializes the random number
generator. Default value: `None` (i.e., use global seed). | tensorflow_probability/python/layers/dense_variational.py | __init__ | jakobnicolaus/probability | 1 | python | @docstring_util.expand_docstring(args=doc_args)
def __init__(self, units, activation=None, activity_regularizer=None, trainable=True, kernel_posterior_fn=tfp_layers_util.default_mean_field_normal_fn(), kernel_posterior_tensor_fn=(lambda d: d.sample()), kernel_prior_fn=tfp_layers_util.default_multivariate_normal_fn, ker... | @docstring_util.expand_docstring(args=doc_args)
def __init__(self, units, activation=None, activity_regularizer=None, trainable=True, kernel_posterior_fn=tfp_layers_util.default_mean_field_normal_fn(), kernel_posterior_tensor_fn=(lambda d: d.sample()), kernel_prior_fn=tfp_layers_util.default_multivariate_normal_fn, ker... |
294a3ae29bfe56348d9379fb656d760f776dbbcf96f9fdda24d1d160310936a4 | def get_config(self):
'Returns the config of the layer.\n\n A layer config is a Python dictionary (serializable) containing the\n configuration of a layer. The same layer can be reinstantiated later\n (without its trained weights) from this configuration.\n\n Returns:\n config: A Python dictionary ... | Returns the config of the layer.
A layer config is a Python dictionary (serializable) containing the
configuration of a layer. The same layer can be reinstantiated later
(without its trained weights) from this configuration.
Returns:
config: A Python dictionary of class keyword arguments and their
serialized va... | tensorflow_probability/python/layers/dense_variational.py | get_config | jakobnicolaus/probability | 1 | python | def get_config(self):
'Returns the config of the layer.\n\n A layer config is a Python dictionary (serializable) containing the\n configuration of a layer. The same layer can be reinstantiated later\n (without its trained weights) from this configuration.\n\n Returns:\n config: A Python dictionary ... | def get_config(self):
'Returns the config of the layer.\n\n A layer config is a Python dictionary (serializable) containing the\n configuration of a layer. The same layer can be reinstantiated later\n (without its trained weights) from this configuration.\n\n Returns:\n config: A Python dictionary ... |
b1635fb26856cff4ecd76d212e880b4672e7f75a6a5222d204b7a975cad90284 | def get_instance(self):
'\n return the redis connection for reuse\n '
return self._redis | return the redis connection for reuse | ax/wrapper/redis.py | get_instance | axxiao/toby | 0 | python | def get_instance(self):
'\n \n '
return self._redis | def get_instance(self):
'\n \n '
return self._redis<|docstring|>return the redis connection for reuse<|endoftext|> |
31849ad60b5349c4423ebd29894288ca386844326dff9103b3a0f39988d524d5 | def put(self, key, subkey=None, val=None, expire=(- 1)):
'\n Save an object to cache, pickle if not str/int/float \n \n :param key: The key \n :param subkey: the sub key if has, None if not\n :param val: the object to be save\n :param expire: expire time -1 for not exipre\n... | Save an object to cache, pickle if not str/int/float
:param key: The key
:param subkey: the sub key if has, None if not
:param val: the object to be save
:param expire: expire time -1 for not exipre
:return: the redis save result | ax/wrapper/redis.py | put | axxiao/toby | 0 | python | def put(self, key, subkey=None, val=None, expire=(- 1)):
'\n Save an object to cache, pickle if not str/int/float \n \n :param key: The key \n :param subkey: the sub key if has, None if not\n :param val: the object to be save\n :param expire: expire time -1 for not exipre\n... | def put(self, key, subkey=None, val=None, expire=(- 1)):
'\n Save an object to cache, pickle if not str/int/float \n \n :param key: The key \n :param subkey: the sub key if has, None if not\n :param val: the object to be save\n :param expire: expire time -1 for not exipre\n... |
ae7fcf2e8690d02d66c4e681c96611bc75fd919c0bc353ad9b2ef790b47a9ddf | def count(self, key, subkey=None, step=1):
'\n Increase/Decrease a value in key & subkey if any\n \n :param key: the key\n :param subkey: the subkey if has\n :param step: step to increase\n :return: N/A\n '
if subkey:
self._redis.hincrby(key, subkey, amou... | Increase/Decrease a value in key & subkey if any
:param key: the key
:param subkey: the subkey if has
:param step: step to increase
:return: N/A | ax/wrapper/redis.py | count | axxiao/toby | 0 | python | def count(self, key, subkey=None, step=1):
'\n Increase/Decrease a value in key & subkey if any\n \n :param key: the key\n :param subkey: the subkey if has\n :param step: step to increase\n :return: N/A\n '
if subkey:
self._redis.hincrby(key, subkey, amou... | def count(self, key, subkey=None, step=1):
'\n Increase/Decrease a value in key & subkey if any\n \n :param key: the key\n :param subkey: the subkey if has\n :param step: step to increase\n :return: N/A\n '
if subkey:
self._redis.hincrby(key, subkey, amou... |
8bf71cc4dd2b2648e4a8426b4218fcec86c9f825dd22c7060116a227b8026db8 | def get(self, key, subkey=None):
'\n Fetch from the cache by key/ subkey\n \n :param key: the Key\n :param subkey: the sub key if has\n :return: the fetched object None if not exist\n '
r = (self._redis.hget(key, subkey) if subkey else self._redis.get(key))
if r:
... | Fetch from the cache by key/ subkey
:param key: the Key
:param subkey: the sub key if has
:return: the fetched object None if not exist | ax/wrapper/redis.py | get | axxiao/toby | 0 | python | def get(self, key, subkey=None):
'\n Fetch from the cache by key/ subkey\n \n :param key: the Key\n :param subkey: the sub key if has\n :return: the fetched object None if not exist\n '
r = (self._redis.hget(key, subkey) if subkey else self._redis.get(key))
if r:
... | def get(self, key, subkey=None):
'\n Fetch from the cache by key/ subkey\n \n :param key: the Key\n :param subkey: the sub key if has\n :return: the fetched object None if not exist\n '
r = (self._redis.hget(key, subkey) if subkey else self._redis.get(key))
if r:
... |
65fbc51057790a7daf025df8e3af7b3b0e4113888d23472be310f198e87bc49c | def scan(self, match='*', start=0, count=None):
'\n Scan all keys with match pattern\n :param match: the Key match pattern\n :param start: [Optional] the start point of return if specified\n :param count: [Optional] how many records to return if specified\n :return: the scan resul... | Scan all keys with match pattern
:param match: the Key match pattern
:param start: [Optional] the start point of return if specified
:param count: [Optional] how many records to return if specified
:return: the scan result | ax/wrapper/redis.py | scan | axxiao/toby | 0 | python | def scan(self, match='*', start=0, count=None):
'\n Scan all keys with match pattern\n :param match: the Key match pattern\n :param start: [Optional] the start point of return if specified\n :param count: [Optional] how many records to return if specified\n :return: the scan resul... | def scan(self, match='*', start=0, count=None):
'\n Scan all keys with match pattern\n :param match: the Key match pattern\n :param start: [Optional] the start point of return if specified\n :param count: [Optional] how many records to return if specified\n :return: the scan resul... |
1dcada1e98a57a98bbdd8cf163b351ccfefa5d2d9e5aa1618b10b90d66f90ff8 | def sub_scan(self, key, match='*', start=0, count=None):
'\n Scan all keys with match pattern\n :param key: the Key\n :param match: the subKey match pattern\n :param start: [Optional] the start point of return if specified\n :param count: [Optional] how many records to return if s... | Scan all keys with match pattern
:param key: the Key
:param match: the subKey match pattern
:param start: [Optional] the start point of return if specified
:param count: [Optional] how many records to return if specified
:return: the scan result | ax/wrapper/redis.py | sub_scan | axxiao/toby | 0 | python | def sub_scan(self, key, match='*', start=0, count=None):
'\n Scan all keys with match pattern\n :param key: the Key\n :param match: the subKey match pattern\n :param start: [Optional] the start point of return if specified\n :param count: [Optional] how many records to return if s... | def sub_scan(self, key, match='*', start=0, count=None):
'\n Scan all keys with match pattern\n :param key: the Key\n :param match: the subKey match pattern\n :param start: [Optional] the start point of return if specified\n :param count: [Optional] how many records to return if s... |
995cdb3ccf36ff7ae8209e711ec08f23ed825d842414163418bd02933e84ca68 | def delete(self, key, *subkey):
'\n Fetch from the cache by key/ subkey\n \n :param key: the Key\n :param *subkey: the sub key(s), if not specified, delete the whole key\n :return: the fetched object None if not exist\n '
if subkey:
rtn = self._redis.hdel(key, *... | Fetch from the cache by key/ subkey
:param key: the Key
:param *subkey: the sub key(s), if not specified, delete the whole key
:return: the fetched object None if not exist | ax/wrapper/redis.py | delete | axxiao/toby | 0 | python | def delete(self, key, *subkey):
'\n Fetch from the cache by key/ subkey\n \n :param key: the Key\n :param *subkey: the sub key(s), if not specified, delete the whole key\n :return: the fetched object None if not exist\n '
if subkey:
rtn = self._redis.hdel(key, *... | def delete(self, key, *subkey):
'\n Fetch from the cache by key/ subkey\n \n :param key: the Key\n :param *subkey: the sub key(s), if not specified, delete the whole key\n :return: the fetched object None if not exist\n '
if subkey:
rtn = self._redis.hdel(key, *... |
c4a9dfd3672320cdd41fdba2061f1abc45a1bd6a1e2d33aa52546039dcc9a0ea | def sub(self, *channels, timeout=(- 1), wildcard=True):
'\n Subscribe and return result \n \n :param channels: the channels to listen \n :param timeout: if <0 use block mode, else, timeout in provided seconds\n :param wildcard: is wildcard to be used in channels (subscribe/ psubsc... | Subscribe and return result
:param channels: the channels to listen
:param timeout: if <0 use block mode, else, timeout in provided seconds
:param wildcard: is wildcard to be used in channels (subscribe/ psubscribe)
:return: | ax/wrapper/redis.py | sub | axxiao/toby | 0 | python | def sub(self, *channels, timeout=(- 1), wildcard=True):
'\n Subscribe and return result \n \n :param channels: the channels to listen \n :param timeout: if <0 use block mode, else, timeout in provided seconds\n :param wildcard: is wildcard to be used in channels (subscribe/ psubsc... | def sub(self, *channels, timeout=(- 1), wildcard=True):
'\n Subscribe and return result \n \n :param channels: the channels to listen \n :param timeout: if <0 use block mode, else, timeout in provided seconds\n :param wildcard: is wildcard to be used in channels (subscribe/ psubsc... |
f2c7b24e05797b1f82b1c0236a8c6bce5ecef89f44f66569d63b87d897c62c4e | def pubsub(self, to_topic, req_obj, from_topic, timeout=(- 1)):
'\n\n :param to_topic: the queue which req_obj should be sent to\n :param req_obj: the request object\n :param from_topic: the queue should listen to result\n :param timeout: timeout of listening (-1 is block forever)\n ... | :param to_topic: the queue which req_obj should be sent to
:param req_obj: the request object
:param from_topic: the queue should listen to result
:param timeout: timeout of listening (-1 is block forever)
:return: returned object | ax/wrapper/redis.py | pubsub | axxiao/toby | 0 | python | def pubsub(self, to_topic, req_obj, from_topic, timeout=(- 1)):
'\n\n :param to_topic: the queue which req_obj should be sent to\n :param req_obj: the request object\n :param from_topic: the queue should listen to result\n :param timeout: timeout of listening (-1 is block forever)\n ... | def pubsub(self, to_topic, req_obj, from_topic, timeout=(- 1)):
'\n\n :param to_topic: the queue which req_obj should be sent to\n :param req_obj: the request object\n :param from_topic: the queue should listen to result\n :param timeout: timeout of listening (-1 is block forever)\n ... |
e4ac28464f02a56226fa05d706fd5195ba2056956c7a457e330f7a8ebab5403e | def __init__(self, type='VOLUME_LOAD', name=None, preload=None, topological_reference=None, spring_stiffness=None, displacement=None, rotation=None, external_point=None, deformation_behavior=None, rotation_origin=None, rotation_axis=None, omega=None, pressure=None, force=None, scaling=None, phase_angle=None, moment=Non... | OneOfDynamicAnalysisBoundaryConditions - a model defined in OpenAPI | simscale_sdk/models/one_of_dynamic_analysis_boundary_conditions.py | __init__ | SimScaleGmbH/simscale-python-sdk | 8 | python | def __init__(self, type='VOLUME_LOAD', name=None, preload=None, topological_reference=None, spring_stiffness=None, displacement=None, rotation=None, external_point=None, deformation_behavior=None, rotation_origin=None, rotation_axis=None, omega=None, pressure=None, force=None, scaling=None, phase_angle=None, moment=Non... | def __init__(self, type='VOLUME_LOAD', name=None, preload=None, topological_reference=None, spring_stiffness=None, displacement=None, rotation=None, external_point=None, deformation_behavior=None, rotation_origin=None, rotation_axis=None, omega=None, pressure=None, force=None, scaling=None, phase_angle=None, moment=Non... |
a5ddeb0a3d011849c27c0e310235c0cfd8f845f76197c5c6704166f791f01f36 | @property
def type(self):
"Gets the type of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n\n This is a <b>volume load</b> boundary condition representing a distributed load on the selected volumes applied in the global coordinate system and each element of the assignment is loaded with a volume... | Gets the type of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501
This is a <b>volume load</b> boundary condition representing a distributed load on the selected volumes applied in the global coordinate system and each element of the assignment is loaded with a volume force depending on the volume of the ele... | simscale_sdk/models/one_of_dynamic_analysis_boundary_conditions.py | type | SimScaleGmbH/simscale-python-sdk | 8 | python | @property
def type(self):
"Gets the type of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n\n This is a <b>volume load</b> boundary condition representing a distributed load on the selected volumes applied in the global coordinate system and each element of the assignment is loaded with a volume... | @property
def type(self):
"Gets the type of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n\n This is a <b>volume load</b> boundary condition representing a distributed load on the selected volumes applied in the global coordinate system and each element of the assignment is loaded with a volume... |
16372b8fb80e374f2bc05d2f219b4fe345d5094600401a56f65a8d1b46bfe600 | @type.setter
def type(self, type):
"Sets the type of this OneOfDynamicAnalysisBoundaryConditions.\n\n This is a <b>volume load</b> boundary condition representing a distributed load on the selected volumes applied in the global coordinate system and each element of the assignment is loaded with a volume forc... | Sets the type of this OneOfDynamicAnalysisBoundaryConditions.
This is a <b>volume load</b> boundary condition representing a distributed load on the selected volumes applied in the global coordinate system and each element of the assignment is loaded with a volume force depending on the volume of the element.<br /><br... | simscale_sdk/models/one_of_dynamic_analysis_boundary_conditions.py | type | SimScaleGmbH/simscale-python-sdk | 8 | python | @type.setter
def type(self, type):
"Sets the type of this OneOfDynamicAnalysisBoundaryConditions.\n\n This is a <b>volume load</b> boundary condition representing a distributed load on the selected volumes applied in the global coordinate system and each element of the assignment is loaded with a volume forc... | @type.setter
def type(self, type):
"Sets the type of this OneOfDynamicAnalysisBoundaryConditions.\n\n This is a <b>volume load</b> boundary condition representing a distributed load on the selected volumes applied in the global coordinate system and each element of the assignment is loaded with a volume forc... |
0c33358b230fc4ada78608743b35fd016397deab8be5569782cf3b7b329d3939 | @property
def name(self):
'Gets the name of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n\n\n :return: The name of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n :rtype: str\n '
return self._name | Gets the name of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501
:return: The name of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501
:rtype: str | simscale_sdk/models/one_of_dynamic_analysis_boundary_conditions.py | name | SimScaleGmbH/simscale-python-sdk | 8 | python | @property
def name(self):
'Gets the name of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n\n\n :return: The name of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n :rtype: str\n '
return self._name | @property
def name(self):
'Gets the name of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n\n\n :return: The name of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n :rtype: str\n '
return self._name<|docstring|>Gets the name of this OneOfDynamicAnalysisBoundaryCond... |
6c0470df40230700661255ec25d16350da2c8f26a8522e46acb2b465cb803768 | @name.setter
def name(self, name):
'Sets the name of this OneOfDynamicAnalysisBoundaryConditions.\n\n\n :param name: The name of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n :type: str\n '
self._name = name | Sets the name of this OneOfDynamicAnalysisBoundaryConditions.
:param name: The name of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501
:type: str | simscale_sdk/models/one_of_dynamic_analysis_boundary_conditions.py | name | SimScaleGmbH/simscale-python-sdk | 8 | python | @name.setter
def name(self, name):
'Sets the name of this OneOfDynamicAnalysisBoundaryConditions.\n\n\n :param name: The name of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n :type: str\n '
self._name = name | @name.setter
def name(self, name):
'Sets the name of this OneOfDynamicAnalysisBoundaryConditions.\n\n\n :param name: The name of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n :type: str\n '
self._name = name<|docstring|>Sets the name of this OneOfDynamicAnalysisBoundaryCondit... |
2ff8fdc9d5be938fd8ef995c6b0b5d15e81d3d7229094372b44b4497bdb31258 | @property
def preload(self):
'Gets the preload of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n\n\n :return: The preload of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n :rtype: ForcePreload\n '
return self._preload | Gets the preload of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501
:return: The preload of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501
:rtype: ForcePreload | simscale_sdk/models/one_of_dynamic_analysis_boundary_conditions.py | preload | SimScaleGmbH/simscale-python-sdk | 8 | python | @property
def preload(self):
'Gets the preload of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n\n\n :return: The preload of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n :rtype: ForcePreload\n '
return self._preload | @property
def preload(self):
'Gets the preload of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n\n\n :return: The preload of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n :rtype: ForcePreload\n '
return self._preload<|docstring|>Gets the preload of this OneOfDyn... |
9278ce36784dc6bab6e34e03d17d99506ac52bd4e5ee82fbae5694a23c0c45cd | @preload.setter
def preload(self, preload):
'Sets the preload of this OneOfDynamicAnalysisBoundaryConditions.\n\n\n :param preload: The preload of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n :type: ForcePreload\n '
self._preload = preload | Sets the preload of this OneOfDynamicAnalysisBoundaryConditions.
:param preload: The preload of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501
:type: ForcePreload | simscale_sdk/models/one_of_dynamic_analysis_boundary_conditions.py | preload | SimScaleGmbH/simscale-python-sdk | 8 | python | @preload.setter
def preload(self, preload):
'Sets the preload of this OneOfDynamicAnalysisBoundaryConditions.\n\n\n :param preload: The preload of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n :type: ForcePreload\n '
self._preload = preload | @preload.setter
def preload(self, preload):
'Sets the preload of this OneOfDynamicAnalysisBoundaryConditions.\n\n\n :param preload: The preload of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n :type: ForcePreload\n '
self._preload = preload<|docstring|>Sets the preload of thi... |
f03e4724d8646f0a7cc8a2c7c76b7449b697d1a65fe40149596ac99d798ea39d | @property
def topological_reference(self):
'Gets the topological_reference of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n\n\n :return: The topological_reference of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n :rtype: TopologicalReference\n '
return self._top... | Gets the topological_reference of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501
:return: The topological_reference of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501
:rtype: TopologicalReference | simscale_sdk/models/one_of_dynamic_analysis_boundary_conditions.py | topological_reference | SimScaleGmbH/simscale-python-sdk | 8 | python | @property
def topological_reference(self):
'Gets the topological_reference of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n\n\n :return: The topological_reference of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n :rtype: TopologicalReference\n '
return self._top... | @property
def topological_reference(self):
'Gets the topological_reference of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n\n\n :return: The topological_reference of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n :rtype: TopologicalReference\n '
return self._top... |
e7836fa3614bf4cc7c0af9182c03f49bd7c6a0268a5f5fb61c30cbc2fb064ed3 | @topological_reference.setter
def topological_reference(self, topological_reference):
'Sets the topological_reference of this OneOfDynamicAnalysisBoundaryConditions.\n\n\n :param topological_reference: The topological_reference of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n :type: Top... | Sets the topological_reference of this OneOfDynamicAnalysisBoundaryConditions.
:param topological_reference: The topological_reference of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501
:type: TopologicalReference | simscale_sdk/models/one_of_dynamic_analysis_boundary_conditions.py | topological_reference | SimScaleGmbH/simscale-python-sdk | 8 | python | @topological_reference.setter
def topological_reference(self, topological_reference):
'Sets the topological_reference of this OneOfDynamicAnalysisBoundaryConditions.\n\n\n :param topological_reference: The topological_reference of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n :type: Top... | @topological_reference.setter
def topological_reference(self, topological_reference):
'Sets the topological_reference of this OneOfDynamicAnalysisBoundaryConditions.\n\n\n :param topological_reference: The topological_reference of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n :type: Top... |
028bf6e595dbaee912c72f4e91d545508d5bb458ef2fde8b1d36f1c1fbb91bc5 | @property
def spring_stiffness(self):
'Gets the spring_stiffness of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n\n\n :return: The spring_stiffness of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n :rtype: OneOfElasticSupportBCSpringStiffness\n '
return self._sp... | Gets the spring_stiffness of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501
:return: The spring_stiffness of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501
:rtype: OneOfElasticSupportBCSpringStiffness | simscale_sdk/models/one_of_dynamic_analysis_boundary_conditions.py | spring_stiffness | SimScaleGmbH/simscale-python-sdk | 8 | python | @property
def spring_stiffness(self):
'Gets the spring_stiffness of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n\n\n :return: The spring_stiffness of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n :rtype: OneOfElasticSupportBCSpringStiffness\n '
return self._sp... | @property
def spring_stiffness(self):
'Gets the spring_stiffness of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n\n\n :return: The spring_stiffness of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n :rtype: OneOfElasticSupportBCSpringStiffness\n '
return self._sp... |
d3158cfb4681ddbd85228d9a81a7baf9fd76a2f6572bb57554eb52299860ebfb | @spring_stiffness.setter
def spring_stiffness(self, spring_stiffness):
'Sets the spring_stiffness of this OneOfDynamicAnalysisBoundaryConditions.\n\n\n :param spring_stiffness: The spring_stiffness of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n :type: OneOfElasticSupportBCSpringStiffn... | Sets the spring_stiffness of this OneOfDynamicAnalysisBoundaryConditions.
:param spring_stiffness: The spring_stiffness of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501
:type: OneOfElasticSupportBCSpringStiffness | simscale_sdk/models/one_of_dynamic_analysis_boundary_conditions.py | spring_stiffness | SimScaleGmbH/simscale-python-sdk | 8 | python | @spring_stiffness.setter
def spring_stiffness(self, spring_stiffness):
'Sets the spring_stiffness of this OneOfDynamicAnalysisBoundaryConditions.\n\n\n :param spring_stiffness: The spring_stiffness of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n :type: OneOfElasticSupportBCSpringStiffn... | @spring_stiffness.setter
def spring_stiffness(self, spring_stiffness):
'Sets the spring_stiffness of this OneOfDynamicAnalysisBoundaryConditions.\n\n\n :param spring_stiffness: The spring_stiffness of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n :type: OneOfElasticSupportBCSpringStiffn... |
9bb51581f27ff137c372799112d5f507c3024f94d24837f8f77765bb9ec3aa1d | @property
def displacement(self):
'Gets the displacement of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n\n\n :return: The displacement of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n :rtype: DimensionalPartialVectorFunctionLength\n '
return self._displacement | Gets the displacement of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501
:return: The displacement of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501
:rtype: DimensionalPartialVectorFunctionLength | simscale_sdk/models/one_of_dynamic_analysis_boundary_conditions.py | displacement | SimScaleGmbH/simscale-python-sdk | 8 | python | @property
def displacement(self):
'Gets the displacement of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n\n\n :return: The displacement of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n :rtype: DimensionalPartialVectorFunctionLength\n '
return self._displacement | @property
def displacement(self):
'Gets the displacement of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n\n\n :return: The displacement of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n :rtype: DimensionalPartialVectorFunctionLength\n '
return self._displacement... |
c42905fc1057c6f2ec5be0a990be8a945bccd24470110b5221be2150fddb3285 | @displacement.setter
def displacement(self, displacement):
'Sets the displacement of this OneOfDynamicAnalysisBoundaryConditions.\n\n\n :param displacement: The displacement of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n :type: DimensionalPartialVectorFunctionLength\n '
sel... | Sets the displacement of this OneOfDynamicAnalysisBoundaryConditions.
:param displacement: The displacement of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501
:type: DimensionalPartialVectorFunctionLength | simscale_sdk/models/one_of_dynamic_analysis_boundary_conditions.py | displacement | SimScaleGmbH/simscale-python-sdk | 8 | python | @displacement.setter
def displacement(self, displacement):
'Sets the displacement of this OneOfDynamicAnalysisBoundaryConditions.\n\n\n :param displacement: The displacement of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n :type: DimensionalPartialVectorFunctionLength\n '
sel... | @displacement.setter
def displacement(self, displacement):
'Sets the displacement of this OneOfDynamicAnalysisBoundaryConditions.\n\n\n :param displacement: The displacement of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n :type: DimensionalPartialVectorFunctionLength\n '
sel... |
31fbf9f2da85e450189bf93853f6735e1ea69476ed5cbf3fa1592a1b9bd7092f | @property
def rotation(self):
'Gets the rotation of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n\n\n :return: The rotation of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n :rtype: AngularRotation\n '
return self._rotation | Gets the rotation of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501
:return: The rotation of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501
:rtype: AngularRotation | simscale_sdk/models/one_of_dynamic_analysis_boundary_conditions.py | rotation | SimScaleGmbH/simscale-python-sdk | 8 | python | @property
def rotation(self):
'Gets the rotation of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n\n\n :return: The rotation of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n :rtype: AngularRotation\n '
return self._rotation | @property
def rotation(self):
'Gets the rotation of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n\n\n :return: The rotation of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n :rtype: AngularRotation\n '
return self._rotation<|docstring|>Gets the rotation of this ... |
e9c4d67e66d2dbc117eaeaaf15296cf37db0c94959356a9ed567f5d03a2b24b4 | @rotation.setter
def rotation(self, rotation):
'Sets the rotation of this OneOfDynamicAnalysisBoundaryConditions.\n\n\n :param rotation: The rotation of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n :type: AngularRotation\n '
self._rotation = rotation | Sets the rotation of this OneOfDynamicAnalysisBoundaryConditions.
:param rotation: The rotation of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501
:type: AngularRotation | simscale_sdk/models/one_of_dynamic_analysis_boundary_conditions.py | rotation | SimScaleGmbH/simscale-python-sdk | 8 | python | @rotation.setter
def rotation(self, rotation):
'Sets the rotation of this OneOfDynamicAnalysisBoundaryConditions.\n\n\n :param rotation: The rotation of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n :type: AngularRotation\n '
self._rotation = rotation | @rotation.setter
def rotation(self, rotation):
'Sets the rotation of this OneOfDynamicAnalysisBoundaryConditions.\n\n\n :param rotation: The rotation of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n :type: AngularRotation\n '
self._rotation = rotation<|docstring|>Sets the rot... |
c7720bd4ee1bc6cb1a609cd7f9e5b5b6c32ef5c2fecc75925bef92553afe25d5 | @property
def external_point(self):
'Gets the external_point of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n\n\n :return: The external_point of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n :rtype: DimensionalVectorLength\n '
return self._external_point | Gets the external_point of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501
:return: The external_point of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501
:rtype: DimensionalVectorLength | simscale_sdk/models/one_of_dynamic_analysis_boundary_conditions.py | external_point | SimScaleGmbH/simscale-python-sdk | 8 | python | @property
def external_point(self):
'Gets the external_point of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n\n\n :return: The external_point of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n :rtype: DimensionalVectorLength\n '
return self._external_point | @property
def external_point(self):
'Gets the external_point of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n\n\n :return: The external_point of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n :rtype: DimensionalVectorLength\n '
return self._external_point<|docst... |
6e251cba5e5b89555bda77036eb27ce04bd92607771de041e8acc5f9dc4b9dd8 | @external_point.setter
def external_point(self, external_point):
'Sets the external_point of this OneOfDynamicAnalysisBoundaryConditions.\n\n\n :param external_point: The external_point of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n :type: DimensionalVectorLength\n '
self._... | Sets the external_point of this OneOfDynamicAnalysisBoundaryConditions.
:param external_point: The external_point of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501
:type: DimensionalVectorLength | simscale_sdk/models/one_of_dynamic_analysis_boundary_conditions.py | external_point | SimScaleGmbH/simscale-python-sdk | 8 | python | @external_point.setter
def external_point(self, external_point):
'Sets the external_point of this OneOfDynamicAnalysisBoundaryConditions.\n\n\n :param external_point: The external_point of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n :type: DimensionalVectorLength\n '
self._... | @external_point.setter
def external_point(self, external_point):
'Sets the external_point of this OneOfDynamicAnalysisBoundaryConditions.\n\n\n :param external_point: The external_point of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n :type: DimensionalVectorLength\n '
self._... |
6f5e2380a8262fa17f8f45a849e3d3c72b56a8bc52829b4e4b613a5f193223c8 | @property
def deformation_behavior(self):
'Gets the deformation_behavior of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n\n <p>Choose the deformation behavior of the assigned entity. If <b>deformable</b> is selected, the entitiy is allowed to deform without applying additional stiffness, selec... | Gets the deformation_behavior of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501
<p>Choose the deformation behavior of the assigned entity. If <b>deformable</b> is selected, the entitiy is allowed to deform without applying additional stiffness, selecting <b>undeformable</b> leads to a rigid entity.</p> # ... | simscale_sdk/models/one_of_dynamic_analysis_boundary_conditions.py | deformation_behavior | SimScaleGmbH/simscale-python-sdk | 8 | python | @property
def deformation_behavior(self):
'Gets the deformation_behavior of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n\n <p>Choose the deformation behavior of the assigned entity. If <b>deformable</b> is selected, the entitiy is allowed to deform without applying additional stiffness, selec... | @property
def deformation_behavior(self):
'Gets the deformation_behavior of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n\n <p>Choose the deformation behavior of the assigned entity. If <b>deformable</b> is selected, the entitiy is allowed to deform without applying additional stiffness, selec... |
025ea189b840a4058a3529a8200cc2f0906bf7255e1524e46b65addc44e92472 | @deformation_behavior.setter
def deformation_behavior(self, deformation_behavior):
'Sets the deformation_behavior of this OneOfDynamicAnalysisBoundaryConditions.\n\n <p>Choose the deformation behavior of the assigned entity. If <b>deformable</b> is selected, the entitiy is allowed to deform without applying ... | Sets the deformation_behavior of this OneOfDynamicAnalysisBoundaryConditions.
<p>Choose the deformation behavior of the assigned entity. If <b>deformable</b> is selected, the entitiy is allowed to deform without applying additional stiffness, selecting <b>undeformable</b> leads to a rigid entity.</p> # noqa: E501
:p... | simscale_sdk/models/one_of_dynamic_analysis_boundary_conditions.py | deformation_behavior | SimScaleGmbH/simscale-python-sdk | 8 | python | @deformation_behavior.setter
def deformation_behavior(self, deformation_behavior):
'Sets the deformation_behavior of this OneOfDynamicAnalysisBoundaryConditions.\n\n <p>Choose the deformation behavior of the assigned entity. If <b>deformable</b> is selected, the entitiy is allowed to deform without applying ... | @deformation_behavior.setter
def deformation_behavior(self, deformation_behavior):
'Sets the deformation_behavior of this OneOfDynamicAnalysisBoundaryConditions.\n\n <p>Choose the deformation behavior of the assigned entity. If <b>deformable</b> is selected, the entitiy is allowed to deform without applying ... |
d66153c566218dd044e9933d29c1577c5dfa55f30292f929177817877bcf2b1c | @property
def rotation_origin(self):
'Gets the rotation_origin of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n\n\n :return: The rotation_origin of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n :rtype: DimensionalVectorFunctionLength\n '
return self._rotation_o... | Gets the rotation_origin of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501
:return: The rotation_origin of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501
:rtype: DimensionalVectorFunctionLength | simscale_sdk/models/one_of_dynamic_analysis_boundary_conditions.py | rotation_origin | SimScaleGmbH/simscale-python-sdk | 8 | python | @property
def rotation_origin(self):
'Gets the rotation_origin of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n\n\n :return: The rotation_origin of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n :rtype: DimensionalVectorFunctionLength\n '
return self._rotation_o... | @property
def rotation_origin(self):
'Gets the rotation_origin of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n\n\n :return: The rotation_origin of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n :rtype: DimensionalVectorFunctionLength\n '
return self._rotation_o... |
2042702ad531e1a3f9421c398810749a74cfaa8f0129528096bd906fe136cdcb | @rotation_origin.setter
def rotation_origin(self, rotation_origin):
'Sets the rotation_origin of this OneOfDynamicAnalysisBoundaryConditions.\n\n\n :param rotation_origin: The rotation_origin of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n :type: DimensionalVectorFunctionLength\n ... | Sets the rotation_origin of this OneOfDynamicAnalysisBoundaryConditions.
:param rotation_origin: The rotation_origin of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501
:type: DimensionalVectorFunctionLength | simscale_sdk/models/one_of_dynamic_analysis_boundary_conditions.py | rotation_origin | SimScaleGmbH/simscale-python-sdk | 8 | python | @rotation_origin.setter
def rotation_origin(self, rotation_origin):
'Sets the rotation_origin of this OneOfDynamicAnalysisBoundaryConditions.\n\n\n :param rotation_origin: The rotation_origin of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n :type: DimensionalVectorFunctionLength\n ... | @rotation_origin.setter
def rotation_origin(self, rotation_origin):
'Sets the rotation_origin of this OneOfDynamicAnalysisBoundaryConditions.\n\n\n :param rotation_origin: The rotation_origin of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n :type: DimensionalVectorFunctionLength\n ... |
bf711890fb59b8c39e2c2319d013cdbef6b5db595ce09e6e0921175d1b45b385 | @property
def rotation_axis(self):
'Gets the rotation_axis of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n\n\n :return: The rotation_axis of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n :rtype: DimensionalVectorFunctionLength\n '
return self._rotation_axis | Gets the rotation_axis of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501
:return: The rotation_axis of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501
:rtype: DimensionalVectorFunctionLength | simscale_sdk/models/one_of_dynamic_analysis_boundary_conditions.py | rotation_axis | SimScaleGmbH/simscale-python-sdk | 8 | python | @property
def rotation_axis(self):
'Gets the rotation_axis of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n\n\n :return: The rotation_axis of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n :rtype: DimensionalVectorFunctionLength\n '
return self._rotation_axis | @property
def rotation_axis(self):
'Gets the rotation_axis of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n\n\n :return: The rotation_axis of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n :rtype: DimensionalVectorFunctionLength\n '
return self._rotation_axis<|d... |
68e6118cb301490900846437c2daae2e9c520c4a01edea6c2cf8e6904630b678 | @rotation_axis.setter
def rotation_axis(self, rotation_axis):
'Sets the rotation_axis of this OneOfDynamicAnalysisBoundaryConditions.\n\n\n :param rotation_axis: The rotation_axis of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n :type: DimensionalVectorFunctionLength\n '
self... | Sets the rotation_axis of this OneOfDynamicAnalysisBoundaryConditions.
:param rotation_axis: The rotation_axis of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501
:type: DimensionalVectorFunctionLength | simscale_sdk/models/one_of_dynamic_analysis_boundary_conditions.py | rotation_axis | SimScaleGmbH/simscale-python-sdk | 8 | python | @rotation_axis.setter
def rotation_axis(self, rotation_axis):
'Sets the rotation_axis of this OneOfDynamicAnalysisBoundaryConditions.\n\n\n :param rotation_axis: The rotation_axis of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n :type: DimensionalVectorFunctionLength\n '
self... | @rotation_axis.setter
def rotation_axis(self, rotation_axis):
'Sets the rotation_axis of this OneOfDynamicAnalysisBoundaryConditions.\n\n\n :param rotation_axis: The rotation_axis of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n :type: DimensionalVectorFunctionLength\n '
self... |
0863c3cef8936213932b40a9649f78e8224e915edbf11e40aa58945d9f1c4a42 | @property
def omega(self):
'Gets the omega of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n\n\n :return: The omega of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n :rtype: DimensionalFunctionAngle\n '
return self._omega | Gets the omega of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501
:return: The omega of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501
:rtype: DimensionalFunctionAngle | simscale_sdk/models/one_of_dynamic_analysis_boundary_conditions.py | omega | SimScaleGmbH/simscale-python-sdk | 8 | python | @property
def omega(self):
'Gets the omega of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n\n\n :return: The omega of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n :rtype: DimensionalFunctionAngle\n '
return self._omega | @property
def omega(self):
'Gets the omega of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n\n\n :return: The omega of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n :rtype: DimensionalFunctionAngle\n '
return self._omega<|docstring|>Gets the omega of this OneOfD... |
8ea89eb90f7905549a149dbe927079df6355378597cc74efd028541aab92e43d | @omega.setter
def omega(self, omega):
'Sets the omega of this OneOfDynamicAnalysisBoundaryConditions.\n\n\n :param omega: The omega of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n :type: DimensionalFunctionAngle\n '
self._omega = omega | Sets the omega of this OneOfDynamicAnalysisBoundaryConditions.
:param omega: The omega of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501
:type: DimensionalFunctionAngle | simscale_sdk/models/one_of_dynamic_analysis_boundary_conditions.py | omega | SimScaleGmbH/simscale-python-sdk | 8 | python | @omega.setter
def omega(self, omega):
'Sets the omega of this OneOfDynamicAnalysisBoundaryConditions.\n\n\n :param omega: The omega of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n :type: DimensionalFunctionAngle\n '
self._omega = omega | @omega.setter
def omega(self, omega):
'Sets the omega of this OneOfDynamicAnalysisBoundaryConditions.\n\n\n :param omega: The omega of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n :type: DimensionalFunctionAngle\n '
self._omega = omega<|docstring|>Sets the omega of this OneO... |
505b70e50f746302ead1f82fe7edb3d5d604b14e50966ed039e30d1469d11a95 | @property
def pressure(self):
'Gets the pressure of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n\n\n :return: The pressure of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n :rtype: DimensionalFunctionPressure\n '
return self._pressure | Gets the pressure of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501
:return: The pressure of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501
:rtype: DimensionalFunctionPressure | simscale_sdk/models/one_of_dynamic_analysis_boundary_conditions.py | pressure | SimScaleGmbH/simscale-python-sdk | 8 | python | @property
def pressure(self):
'Gets the pressure of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n\n\n :return: The pressure of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n :rtype: DimensionalFunctionPressure\n '
return self._pressure | @property
def pressure(self):
'Gets the pressure of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n\n\n :return: The pressure of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n :rtype: DimensionalFunctionPressure\n '
return self._pressure<|docstring|>Gets the press... |
dd163997c0e1c4e514a9849a1e7bd5eef6527f81aa14436f8dd2b00a650cc79f | @pressure.setter
def pressure(self, pressure):
'Sets the pressure of this OneOfDynamicAnalysisBoundaryConditions.\n\n\n :param pressure: The pressure of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n :type: DimensionalFunctionPressure\n '
self._pressure = pressure | Sets the pressure of this OneOfDynamicAnalysisBoundaryConditions.
:param pressure: The pressure of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501
:type: DimensionalFunctionPressure | simscale_sdk/models/one_of_dynamic_analysis_boundary_conditions.py | pressure | SimScaleGmbH/simscale-python-sdk | 8 | python | @pressure.setter
def pressure(self, pressure):
'Sets the pressure of this OneOfDynamicAnalysisBoundaryConditions.\n\n\n :param pressure: The pressure of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n :type: DimensionalFunctionPressure\n '
self._pressure = pressure | @pressure.setter
def pressure(self, pressure):
'Sets the pressure of this OneOfDynamicAnalysisBoundaryConditions.\n\n\n :param pressure: The pressure of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n :type: DimensionalFunctionPressure\n '
self._pressure = pressure<|docstring|>... |
34a4e9adfc20e526d1e38003f9c5b1ebea9fc8894aa42fc1eff9e722347b23c5 | @property
def force(self):
'Gets the force of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n\n\n :return: The force of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n :rtype: DimensionalVectorFunctionForce\n '
return self._force | Gets the force of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501
:return: The force of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501
:rtype: DimensionalVectorFunctionForce | simscale_sdk/models/one_of_dynamic_analysis_boundary_conditions.py | force | SimScaleGmbH/simscale-python-sdk | 8 | python | @property
def force(self):
'Gets the force of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n\n\n :return: The force of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n :rtype: DimensionalVectorFunctionForce\n '
return self._force | @property
def force(self):
'Gets the force of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n\n\n :return: The force of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n :rtype: DimensionalVectorFunctionForce\n '
return self._force<|docstring|>Gets the force of this ... |
79f365b2aeb0d1003088bf71a5d2bff49c3b390fec05b77c1eb8488c96d6f072 | @force.setter
def force(self, force):
'Sets the force of this OneOfDynamicAnalysisBoundaryConditions.\n\n\n :param force: The force of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n :type: DimensionalVectorFunctionForce\n '
self._force = force | Sets the force of this OneOfDynamicAnalysisBoundaryConditions.
:param force: The force of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501
:type: DimensionalVectorFunctionForce | simscale_sdk/models/one_of_dynamic_analysis_boundary_conditions.py | force | SimScaleGmbH/simscale-python-sdk | 8 | python | @force.setter
def force(self, force):
'Sets the force of this OneOfDynamicAnalysisBoundaryConditions.\n\n\n :param force: The force of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n :type: DimensionalVectorFunctionForce\n '
self._force = force | @force.setter
def force(self, force):
'Sets the force of this OneOfDynamicAnalysisBoundaryConditions.\n\n\n :param force: The force of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n :type: DimensionalVectorFunctionForce\n '
self._force = force<|docstring|>Sets the force of thi... |
5d74e8f5047c2f447aa8c1f07a040b93599608f3e6830570ef0553df6cb0937c | @property
def scaling(self):
'Gets the scaling of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n\n\n :return: The scaling of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n :rtype: DimensionalFunctionDimensionless\n '
return self._scaling | Gets the scaling of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501
:return: The scaling of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501
:rtype: DimensionalFunctionDimensionless | simscale_sdk/models/one_of_dynamic_analysis_boundary_conditions.py | scaling | SimScaleGmbH/simscale-python-sdk | 8 | python | @property
def scaling(self):
'Gets the scaling of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n\n\n :return: The scaling of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n :rtype: DimensionalFunctionDimensionless\n '
return self._scaling | @property
def scaling(self):
'Gets the scaling of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n\n\n :return: The scaling of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n :rtype: DimensionalFunctionDimensionless\n '
return self._scaling<|docstring|>Gets the scal... |
2aca894a8ac9dc364dbfdae89682ed795bf4b438fac925fb055cd50b773f86e7 | @scaling.setter
def scaling(self, scaling):
'Sets the scaling of this OneOfDynamicAnalysisBoundaryConditions.\n\n\n :param scaling: The scaling of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n :type: DimensionalFunctionDimensionless\n '
self._scaling = scaling | Sets the scaling of this OneOfDynamicAnalysisBoundaryConditions.
:param scaling: The scaling of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501
:type: DimensionalFunctionDimensionless | simscale_sdk/models/one_of_dynamic_analysis_boundary_conditions.py | scaling | SimScaleGmbH/simscale-python-sdk | 8 | python | @scaling.setter
def scaling(self, scaling):
'Sets the scaling of this OneOfDynamicAnalysisBoundaryConditions.\n\n\n :param scaling: The scaling of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n :type: DimensionalFunctionDimensionless\n '
self._scaling = scaling | @scaling.setter
def scaling(self, scaling):
'Sets the scaling of this OneOfDynamicAnalysisBoundaryConditions.\n\n\n :param scaling: The scaling of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n :type: DimensionalFunctionDimensionless\n '
self._scaling = scaling<|docstring|>Set... |
cb2072de1948daf391eea24e5654719c02913b22aa88859b055e24606ae5f3fe | @property
def phase_angle(self):
'Gets the phase_angle of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n\n\n :return: The phase_angle of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n :rtype: DimensionalAngle\n '
return self._phase_angle | Gets the phase_angle of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501
:return: The phase_angle of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501
:rtype: DimensionalAngle | simscale_sdk/models/one_of_dynamic_analysis_boundary_conditions.py | phase_angle | SimScaleGmbH/simscale-python-sdk | 8 | python | @property
def phase_angle(self):
'Gets the phase_angle of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n\n\n :return: The phase_angle of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n :rtype: DimensionalAngle\n '
return self._phase_angle | @property
def phase_angle(self):
'Gets the phase_angle of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n\n\n :return: The phase_angle of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n :rtype: DimensionalAngle\n '
return self._phase_angle<|docstring|>Gets the phas... |
1bb3c516d54f1073bd25a9381d5727662d62e4a77c56794692a8e06ef57c2ec3 | @phase_angle.setter
def phase_angle(self, phase_angle):
'Sets the phase_angle of this OneOfDynamicAnalysisBoundaryConditions.\n\n\n :param phase_angle: The phase_angle of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n :type: DimensionalAngle\n '
self._phase_angle = phase_angle | Sets the phase_angle of this OneOfDynamicAnalysisBoundaryConditions.
:param phase_angle: The phase_angle of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501
:type: DimensionalAngle | simscale_sdk/models/one_of_dynamic_analysis_boundary_conditions.py | phase_angle | SimScaleGmbH/simscale-python-sdk | 8 | python | @phase_angle.setter
def phase_angle(self, phase_angle):
'Sets the phase_angle of this OneOfDynamicAnalysisBoundaryConditions.\n\n\n :param phase_angle: The phase_angle of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n :type: DimensionalAngle\n '
self._phase_angle = phase_angle | @phase_angle.setter
def phase_angle(self, phase_angle):
'Sets the phase_angle of this OneOfDynamicAnalysisBoundaryConditions.\n\n\n :param phase_angle: The phase_angle of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n :type: DimensionalAngle\n '
self._phase_angle = phase_angle... |
d7736a5bbc311d436d81d6a37d200da37cf7ba96e1c51b3da1e80e708b68e211 | @property
def moment(self):
'Gets the moment of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n\n\n :return: The moment of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n :rtype: DimensionalVectorFunctionTorque\n '
return self._moment | Gets the moment of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501
:return: The moment of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501
:rtype: DimensionalVectorFunctionTorque | simscale_sdk/models/one_of_dynamic_analysis_boundary_conditions.py | moment | SimScaleGmbH/simscale-python-sdk | 8 | python | @property
def moment(self):
'Gets the moment of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n\n\n :return: The moment of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n :rtype: DimensionalVectorFunctionTorque\n '
return self._moment | @property
def moment(self):
'Gets the moment of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n\n\n :return: The moment of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n :rtype: DimensionalVectorFunctionTorque\n '
return self._moment<|docstring|>Gets the moment of... |
512c638fd3744135ef6cd9042bd9903e0732d0eaf2275153c45a104040d1bf83 | @moment.setter
def moment(self, moment):
'Sets the moment of this OneOfDynamicAnalysisBoundaryConditions.\n\n\n :param moment: The moment of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n :type: DimensionalVectorFunctionTorque\n '
self._moment = moment | Sets the moment of this OneOfDynamicAnalysisBoundaryConditions.
:param moment: The moment of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501
:type: DimensionalVectorFunctionTorque | simscale_sdk/models/one_of_dynamic_analysis_boundary_conditions.py | moment | SimScaleGmbH/simscale-python-sdk | 8 | python | @moment.setter
def moment(self, moment):
'Sets the moment of this OneOfDynamicAnalysisBoundaryConditions.\n\n\n :param moment: The moment of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n :type: DimensionalVectorFunctionTorque\n '
self._moment = moment | @moment.setter
def moment(self, moment):
'Sets the moment of this OneOfDynamicAnalysisBoundaryConditions.\n\n\n :param moment: The moment of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n :type: DimensionalVectorFunctionTorque\n '
self._moment = moment<|docstring|>Sets the mom... |
0e463c50b41edd85a9932933df4a064e451718c533a24cb4bdd28f16aea4b826 | @property
def remote_point(self):
'Gets the remote_point of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n\n\n :return: The remote_point of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n :rtype: DimensionalVectorLength\n '
return self._remote_point | Gets the remote_point of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501
:return: The remote_point of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501
:rtype: DimensionalVectorLength | simscale_sdk/models/one_of_dynamic_analysis_boundary_conditions.py | remote_point | SimScaleGmbH/simscale-python-sdk | 8 | python | @property
def remote_point(self):
'Gets the remote_point of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n\n\n :return: The remote_point of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n :rtype: DimensionalVectorLength\n '
return self._remote_point | @property
def remote_point(self):
'Gets the remote_point of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n\n\n :return: The remote_point of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n :rtype: DimensionalVectorLength\n '
return self._remote_point<|docstring|>Ge... |
c34c68b4745baa3d0c24239f883e65b3f4e1c3a791c5d41253f7e135481662c2 | @remote_point.setter
def remote_point(self, remote_point):
'Sets the remote_point of this OneOfDynamicAnalysisBoundaryConditions.\n\n\n :param remote_point: The remote_point of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n :type: DimensionalVectorLength\n '
self._remote_point... | Sets the remote_point of this OneOfDynamicAnalysisBoundaryConditions.
:param remote_point: The remote_point of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501
:type: DimensionalVectorLength | simscale_sdk/models/one_of_dynamic_analysis_boundary_conditions.py | remote_point | SimScaleGmbH/simscale-python-sdk | 8 | python | @remote_point.setter
def remote_point(self, remote_point):
'Sets the remote_point of this OneOfDynamicAnalysisBoundaryConditions.\n\n\n :param remote_point: The remote_point of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n :type: DimensionalVectorLength\n '
self._remote_point... | @remote_point.setter
def remote_point(self, remote_point):
'Sets the remote_point of this OneOfDynamicAnalysisBoundaryConditions.\n\n\n :param remote_point: The remote_point of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n :type: DimensionalVectorLength\n '
self._remote_point... |
eaf8716895d0c48a513ce1a2a506bfe4dd2ee44f387741bc4ba57b4e8b286c63 | @property
def load(self):
'Gets the load of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n\n\n :return: The load of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n :rtype: DimensionalVectorFunctionVolumeForce\n '
return self._load | Gets the load of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501
:return: The load of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501
:rtype: DimensionalVectorFunctionVolumeForce | simscale_sdk/models/one_of_dynamic_analysis_boundary_conditions.py | load | SimScaleGmbH/simscale-python-sdk | 8 | python | @property
def load(self):
'Gets the load of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n\n\n :return: The load of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n :rtype: DimensionalVectorFunctionVolumeForce\n '
return self._load | @property
def load(self):
'Gets the load of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n\n\n :return: The load of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n :rtype: DimensionalVectorFunctionVolumeForce\n '
return self._load<|docstring|>Gets the load of this... |
94bba2d268098c2edac129fd1b87542656e52c62173fb41c188b905d4bc64fd8 | @load.setter
def load(self, load):
'Sets the load of this OneOfDynamicAnalysisBoundaryConditions.\n\n\n :param load: The load of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n :type: DimensionalVectorFunctionVolumeForce\n '
self._load = load | Sets the load of this OneOfDynamicAnalysisBoundaryConditions.
:param load: The load of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501
:type: DimensionalVectorFunctionVolumeForce | simscale_sdk/models/one_of_dynamic_analysis_boundary_conditions.py | load | SimScaleGmbH/simscale-python-sdk | 8 | python | @load.setter
def load(self, load):
'Sets the load of this OneOfDynamicAnalysisBoundaryConditions.\n\n\n :param load: The load of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n :type: DimensionalVectorFunctionVolumeForce\n '
self._load = load | @load.setter
def load(self, load):
'Sets the load of this OneOfDynamicAnalysisBoundaryConditions.\n\n\n :param load: The load of this OneOfDynamicAnalysisBoundaryConditions. # noqa: E501\n :type: DimensionalVectorFunctionVolumeForce\n '
self._load = load<|docstring|>Sets the load of this O... |
7b48288c005191afa8eb3cc9d403e4a3390878b5ab4f4bb2f8261a725c9b85f2 | def get_real_child_model(self, data):
'Returns the real base class specified by the discriminator'
discriminator_key = self.attribute_map[self.discriminator]
discriminator_value = data[discriminator_key]
return self.discriminator_value_class_map.get(discriminator_value) | Returns the real base class specified by the discriminator | simscale_sdk/models/one_of_dynamic_analysis_boundary_conditions.py | get_real_child_model | SimScaleGmbH/simscale-python-sdk | 8 | python | def get_real_child_model(self, data):
discriminator_key = self.attribute_map[self.discriminator]
discriminator_value = data[discriminator_key]
return self.discriminator_value_class_map.get(discriminator_value) | def get_real_child_model(self, data):
discriminator_key = self.attribute_map[self.discriminator]
discriminator_value = data[discriminator_key]
return self.discriminator_value_class_map.get(discriminator_value)<|docstring|>Returns the real base class specified by the discriminator<|endoftext|> |
5a4e41bb6a0def746593298cb605df98f1366e957c4ca89b12010ea7db707963 | def to_dict(self):
'Returns the model properties as a dict'
result = {}
for (attr, _) in six.iteritems(self.openapi_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map((lambda x: (x.to_dict() if hasattr(x, 'to_dict') else x)), value))
e... | Returns the model properties as a dict | simscale_sdk/models/one_of_dynamic_analysis_boundary_conditions.py | to_dict | SimScaleGmbH/simscale-python-sdk | 8 | python | def to_dict(self):
result = {}
for (attr, _) in six.iteritems(self.openapi_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map((lambda x: (x.to_dict() if hasattr(x, 'to_dict') else x)), value))
elif hasattr(value, 'to_dict'):
... | def to_dict(self):
result = {}
for (attr, _) in six.iteritems(self.openapi_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map((lambda x: (x.to_dict() if hasattr(x, 'to_dict') else x)), value))
elif hasattr(value, 'to_dict'):
... |
cbb19eaa2fc8a113d9e32f924ef280a7e97563f8915f94f65dab438997af2e99 | def to_str(self):
'Returns the string representation of the model'
return pprint.pformat(self.to_dict()) | Returns the string representation of the model | simscale_sdk/models/one_of_dynamic_analysis_boundary_conditions.py | to_str | SimScaleGmbH/simscale-python-sdk | 8 | python | def to_str(self):
return pprint.pformat(self.to_dict()) | def to_str(self):
return pprint.pformat(self.to_dict())<|docstring|>Returns the string representation of the model<|endoftext|> |
772243a2c2b3261a9b954d07aaf295e3c1242a579a495e2d6a5679c677861703 | def __repr__(self):
'For `print` and `pprint`'
return self.to_str() | For `print` and `pprint` | simscale_sdk/models/one_of_dynamic_analysis_boundary_conditions.py | __repr__ | SimScaleGmbH/simscale-python-sdk | 8 | python | def __repr__(self):
return self.to_str() | def __repr__(self):
return self.to_str()<|docstring|>For `print` and `pprint`<|endoftext|> |
9599d70cb3f3e68e83c2e2a42ecc9e720d8998aeab57cd5cb66f37d9bee202cd | def __eq__(self, other):
'Returns true if both objects are equal'
if (not isinstance(other, OneOfDynamicAnalysisBoundaryConditions)):
return False
return (self.to_dict() == other.to_dict()) | Returns true if both objects are equal | simscale_sdk/models/one_of_dynamic_analysis_boundary_conditions.py | __eq__ | SimScaleGmbH/simscale-python-sdk | 8 | python | def __eq__(self, other):
if (not isinstance(other, OneOfDynamicAnalysisBoundaryConditions)):
return False
return (self.to_dict() == other.to_dict()) | def __eq__(self, other):
if (not isinstance(other, OneOfDynamicAnalysisBoundaryConditions)):
return False
return (self.to_dict() == other.to_dict())<|docstring|>Returns true if both objects are equal<|endoftext|> |
97cdbf26e995d6d2ca1d803d37d31390f75f78b6a0800da8d963a0130c46c006 | def __ne__(self, other):
'Returns true if both objects are not equal'
if (not isinstance(other, OneOfDynamicAnalysisBoundaryConditions)):
return True
return (self.to_dict() != other.to_dict()) | Returns true if both objects are not equal | simscale_sdk/models/one_of_dynamic_analysis_boundary_conditions.py | __ne__ | SimScaleGmbH/simscale-python-sdk | 8 | python | def __ne__(self, other):
if (not isinstance(other, OneOfDynamicAnalysisBoundaryConditions)):
return True
return (self.to_dict() != other.to_dict()) | def __ne__(self, other):
if (not isinstance(other, OneOfDynamicAnalysisBoundaryConditions)):
return True
return (self.to_dict() != other.to_dict())<|docstring|>Returns true if both objects are not equal<|endoftext|> |
69c3a6b7e2f61fa09c0f75a1fe8e2f99c76fe80c5c77e2f67dc30c3923bd421e | def verify(ph, parent):
'Assert the peer is still well-maintained.'
child1 = ((2 * parent) + 1)
child2 = ((2 * parent) + 2)
if (child2 < ph.size()):
assert (not ph.lt(child1, parent))
verify(ph, child1)
if (child2 < ph.size()):
assert (not ph.lt(child2, parent))
verif... | Assert the peer is still well-maintained. | tests/test_peer_heap.py | verify | islavov/tchannel-python | 98 | python | def verify(ph, parent):
child1 = ((2 * parent) + 1)
child2 = ((2 * parent) + 2)
if (child2 < ph.size()):
assert (not ph.lt(child1, parent))
verify(ph, child1)
if (child2 < ph.size()):
assert (not ph.lt(child2, parent))
verify(ph, child2) | def verify(ph, parent):
child1 = ((2 * parent) + 1)
child2 = ((2 * parent) + 2)
if (child2 < ph.size()):
assert (not ph.lt(child1, parent))
verify(ph, child1)
if (child2 < ph.size()):
assert (not ph.lt(child2, parent))
verify(ph, child2)<|docstring|>Assert the peer i... |
926f700daded48e215daf12cda27ae23bb5f70971fb70c143e3d270647828484 | def add_bootaction(self, new_ba):
'Add a bootaction definition to this site design.\n\n :param new_ba: instance of BootAction to add to the design\n '
if (self.bootactions is None):
self.bootactions = objects.BootActionList()
self.bootactions.append(new_ba) | Add a bootaction definition to this site design.
:param new_ba: instance of BootAction to add to the design | drydock_provisioner/objects/site.py | add_bootaction | sh8121att/airship-drydock | 14 | python | def add_bootaction(self, new_ba):
'Add a bootaction definition to this site design.\n\n :param new_ba: instance of BootAction to add to the design\n '
if (self.bootactions is None):
self.bootactions = objects.BootActionList()
self.bootactions.append(new_ba) | def add_bootaction(self, new_ba):
'Add a bootaction definition to this site design.\n\n :param new_ba: instance of BootAction to add to the design\n '
if (self.bootactions is None):
self.bootactions = objects.BootActionList()
self.bootactions.append(new_ba)<|docstring|>Add a bootaction... |
56915a809dbc7b42e2bf7db4cfa1ad136cc1792a61cb595aa0840c0e71e41c25 | def get_bootaction(self, ba_key):
'Select a boot action from this site design with the matchkey key.\n\n :param ba_key: Value should match the ``get_id()`` value of the BootAction returned\n '
for ba in self.bootactions:
if (ba.get_id() == ba_key):
return ba
raise errors.De... | Select a boot action from this site design with the matchkey key.
:param ba_key: Value should match the ``get_id()`` value of the BootAction returned | drydock_provisioner/objects/site.py | get_bootaction | sh8121att/airship-drydock | 14 | python | def get_bootaction(self, ba_key):
'Select a boot action from this site design with the matchkey key.\n\n :param ba_key: Value should match the ``get_id()`` value of the BootAction returned\n '
for ba in self.bootactions:
if (ba.get_id() == ba_key):
return ba
raise errors.De... | def get_bootaction(self, ba_key):
'Select a boot action from this site design with the matchkey key.\n\n :param ba_key: Value should match the ``get_id()`` value of the BootAction returned\n '
for ba in self.bootactions:
if (ba.get_id() == ba_key):
return ba
raise errors.De... |
846c80b2008300b9cf607f271a13d489e39cb89c98b44cf42531e666e1a4400d | def spectrogram(input, nfft, window, stride, name=None):
'\n Create spectrogram from audio.\n\n Args:\n input: An 1-D audio signal Tensor.\n nfft: Size of FFT.\n window: Size of window.\n stride: Size of hops between windows.\n name: A name for the operation (optional).\n\n Returns... | Create spectrogram from audio.
Args:
input: An 1-D audio signal Tensor.
nfft: Size of FFT.
window: Size of window.
stride: Size of hops between windows.
name: A name for the operation (optional).
Returns:
A tensor of spectrogram. | tensorflow_io/python/ops/audio_ops.py | spectrogram | AlexFuster/io | 0 | python | def spectrogram(input, nfft, window, stride, name=None):
'\n Create spectrogram from audio.\n\n Args:\n input: An 1-D audio signal Tensor.\n nfft: Size of FFT.\n window: Size of window.\n stride: Size of hops between windows.\n name: A name for the operation (optional).\n\n Returns... | def spectrogram(input, nfft, window, stride, name=None):
'\n Create spectrogram from audio.\n\n Args:\n input: An 1-D audio signal Tensor.\n nfft: Size of FFT.\n window: Size of window.\n stride: Size of hops between windows.\n name: A name for the operation (optional).\n\n Returns... |
d6e72baeff52f5ad38230563aa26807c64e2187864287811e148b157f68b3b34 | def melscale(input, rate, mels, fmin, fmax, name=None):
'\n Turn spectrogram into mel scale spectrogram\n\n Args:\n input: A spectrogram Tensor with shape [frames, nfft+1].\n rate: Sample rate of the audio.\n mels: Number of mel filterbanks.\n fmin: Minimum frequency.\n fmax: Maximum ... | Turn spectrogram into mel scale spectrogram
Args:
input: A spectrogram Tensor with shape [frames, nfft+1].
rate: Sample rate of the audio.
mels: Number of mel filterbanks.
fmin: Minimum frequency.
fmax: Maximum frequency.
name: A name for the operation (optional).
Returns:
A tensor of mel spectrogram wi... | tensorflow_io/python/ops/audio_ops.py | melscale | AlexFuster/io | 0 | python | def melscale(input, rate, mels, fmin, fmax, name=None):
'\n Turn spectrogram into mel scale spectrogram\n\n Args:\n input: A spectrogram Tensor with shape [frames, nfft+1].\n rate: Sample rate of the audio.\n mels: Number of mel filterbanks.\n fmin: Minimum frequency.\n fmax: Maximum ... | def melscale(input, rate, mels, fmin, fmax, name=None):
'\n Turn spectrogram into mel scale spectrogram\n\n Args:\n input: A spectrogram Tensor with shape [frames, nfft+1].\n rate: Sample rate of the audio.\n mels: Number of mel filterbanks.\n fmin: Minimum frequency.\n fmax: Maximum ... |
5af4135fba1332c1437452adc555a4e6521b6de3d83c6dff802718488b394a78 | def dbscale(input, top_db, name=None):
'\n Turn spectrogram into db scale\n\n Args:\n input: A spectrogram Tensor.\n top_db: Minimum negative cut-off `max(10 * log10(S)) - top_db`\n name: A name for the operation (optional).\n\n Returns:\n A tensor of mel spectrogram with shape [frames,... | Turn spectrogram into db scale
Args:
input: A spectrogram Tensor.
top_db: Minimum negative cut-off `max(10 * log10(S)) - top_db`
name: A name for the operation (optional).
Returns:
A tensor of mel spectrogram with shape [frames, mels]. | tensorflow_io/python/ops/audio_ops.py | dbscale | AlexFuster/io | 0 | python | def dbscale(input, top_db, name=None):
'\n Turn spectrogram into db scale\n\n Args:\n input: A spectrogram Tensor.\n top_db: Minimum negative cut-off `max(10 * log10(S)) - top_db`\n name: A name for the operation (optional).\n\n Returns:\n A tensor of mel spectrogram with shape [frames,... | def dbscale(input, top_db, name=None):
'\n Turn spectrogram into db scale\n\n Args:\n input: A spectrogram Tensor.\n top_db: Minimum negative cut-off `max(10 * log10(S)) - top_db`\n name: A name for the operation (optional).\n\n Returns:\n A tensor of mel spectrogram with shape [frames,... |
192ff84d7c9f04e9278454aac41bfe146fa02df320a5f3e149b9193d8dea9c5c | def remix(input, axis, indices, name=None):
'\n Remix the audio from segments indices.\n\n Args:\n input: An audio Tensor.\n axis: The axis to trim.\n indices: The indices of `start, stop` of each segments.\n name: A name for the operation (optional).\n Returns:\n A tensor of remix... | Remix the audio from segments indices.
Args:
input: An audio Tensor.
axis: The axis to trim.
indices: The indices of `start, stop` of each segments.
name: A name for the operation (optional).
Returns:
A tensor of remixed audio. | tensorflow_io/python/ops/audio_ops.py | remix | AlexFuster/io | 0 | python | def remix(input, axis, indices, name=None):
'\n Remix the audio from segments indices.\n\n Args:\n input: An audio Tensor.\n axis: The axis to trim.\n indices: The indices of `start, stop` of each segments.\n name: A name for the operation (optional).\n Returns:\n A tensor of remix... | def remix(input, axis, indices, name=None):
'\n Remix the audio from segments indices.\n\n Args:\n input: An audio Tensor.\n axis: The axis to trim.\n indices: The indices of `start, stop` of each segments.\n name: A name for the operation (optional).\n Returns:\n A tensor of remix... |
75156bd8e2a45c8848e60742d7be0101116bc21c1a92ad953ca3e6b8c75bbe80 | def split(input, axis, epsilon, name=None):
'\n Split the audio by removing the noise smaller than epsilon.\n\n Args:\n input: An audio Tensor.\n axis: The axis to trim.\n epsilon: The max value to be considered as noise.\n name: A name for the operation (optional).\n Returns:\n A ... | Split the audio by removing the noise smaller than epsilon.
Args:
input: An audio Tensor.
axis: The axis to trim.
epsilon: The max value to be considered as noise.
name: A name for the operation (optional).
Returns:
A tensor of start and stop with shape `[..., 2, ...]`. | tensorflow_io/python/ops/audio_ops.py | split | AlexFuster/io | 0 | python | def split(input, axis, epsilon, name=None):
'\n Split the audio by removing the noise smaller than epsilon.\n\n Args:\n input: An audio Tensor.\n axis: The axis to trim.\n epsilon: The max value to be considered as noise.\n name: A name for the operation (optional).\n Returns:\n A ... | def split(input, axis, epsilon, name=None):
'\n Split the audio by removing the noise smaller than epsilon.\n\n Args:\n input: An audio Tensor.\n axis: The axis to trim.\n epsilon: The max value to be considered as noise.\n name: A name for the operation (optional).\n Returns:\n A ... |
7b691c8ac670123238d82ed1d21c4d1938bdee08857783dbc693806903734545 | def trim(input, axis, epsilon, name=None):
'\n Trim the noise from beginning and end of the audio.\n\n Args:\n input: An audio Tensor.\n axis: The axis to trim.\n epsilon: The max value to be considered as noise.\n name: A name for the operation (optional).\n Returns:\n A tensor of... | Trim the noise from beginning and end of the audio.
Args:
input: An audio Tensor.
axis: The axis to trim.
epsilon: The max value to be considered as noise.
name: A name for the operation (optional).
Returns:
A tensor of start and stop with shape `[..., 2, ...]`. | tensorflow_io/python/ops/audio_ops.py | trim | AlexFuster/io | 0 | python | def trim(input, axis, epsilon, name=None):
'\n Trim the noise from beginning and end of the audio.\n\n Args:\n input: An audio Tensor.\n axis: The axis to trim.\n epsilon: The max value to be considered as noise.\n name: A name for the operation (optional).\n Returns:\n A tensor of... | def trim(input, axis, epsilon, name=None):
'\n Trim the noise from beginning and end of the audio.\n\n Args:\n input: An audio Tensor.\n axis: The axis to trim.\n epsilon: The max value to be considered as noise.\n name: A name for the operation (optional).\n Returns:\n A tensor of... |
952b1fc1107dd5b4d6dba9ccd7669b6b5075e1a07b0e0e7fcfdca23e8e9e4269 | def freq_mask(input, param, name=None):
'\n Apply masking to a spectrogram in the freq domain.\n\n Args:\n input: An audio spectogram.\n param: Parameter of freq masking.\n name: A name for the operation (optional).\n Returns:\n A tensor of spectrogram.\n '
input = tf.convert_to_... | Apply masking to a spectrogram in the freq domain.
Args:
input: An audio spectogram.
param: Parameter of freq masking.
name: A name for the operation (optional).
Returns:
A tensor of spectrogram. | tensorflow_io/python/ops/audio_ops.py | freq_mask | AlexFuster/io | 0 | python | def freq_mask(input, param, name=None):
'\n Apply masking to a spectrogram in the freq domain.\n\n Args:\n input: An audio spectogram.\n param: Parameter of freq masking.\n name: A name for the operation (optional).\n Returns:\n A tensor of spectrogram.\n '
input = tf.convert_to_... | def freq_mask(input, param, name=None):
'\n Apply masking to a spectrogram in the freq domain.\n\n Args:\n input: An audio spectogram.\n param: Parameter of freq masking.\n name: A name for the operation (optional).\n Returns:\n A tensor of spectrogram.\n '
input = tf.convert_to_... |
4ecb75eb650cbab43b951e9d3dc905db7696818efa5a83e602c9bbbaf8d79bfa | def time_mask(input, param, name=None):
'\n Apply masking to a spectrogram in the time domain.\n\n Args:\n input: An audio spectogram.\n param: Parameter of time masking.\n name: A name for the operation (optional).\n Returns:\n A tensor of spectrogram.\n '
input = tf.convert_to_... | Apply masking to a spectrogram in the time domain.
Args:
input: An audio spectogram.
param: Parameter of time masking.
name: A name for the operation (optional).
Returns:
A tensor of spectrogram. | tensorflow_io/python/ops/audio_ops.py | time_mask | AlexFuster/io | 0 | python | def time_mask(input, param, name=None):
'\n Apply masking to a spectrogram in the time domain.\n\n Args:\n input: An audio spectogram.\n param: Parameter of time masking.\n name: A name for the operation (optional).\n Returns:\n A tensor of spectrogram.\n '
input = tf.convert_to_... | def time_mask(input, param, name=None):
'\n Apply masking to a spectrogram in the time domain.\n\n Args:\n input: An audio spectogram.\n param: Parameter of time masking.\n name: A name for the operation (optional).\n Returns:\n A tensor of spectrogram.\n '
input = tf.convert_to_... |
d31e0e5cf6d0ce715696285026e0a14c2e032fba0ab9e644538d8dcb189495fe | def fade(input, fade_in, fade_out, mode, name=None):
'\n Apply fade in/out to audio.\n\n Args:\n input: An audio spectogram.\n fade_in: Length of fade in.\n fade_out: Length of fade out.\n mode: Mode of the fade.\n name: A name for the operation (optional).\n Returns:\n A tens... | Apply fade in/out to audio.
Args:
input: An audio spectogram.
fade_in: Length of fade in.
fade_out: Length of fade out.
mode: Mode of the fade.
name: A name for the operation (optional).
Returns:
A tensor of audio. | tensorflow_io/python/ops/audio_ops.py | fade | AlexFuster/io | 0 | python | def fade(input, fade_in, fade_out, mode, name=None):
'\n Apply fade in/out to audio.\n\n Args:\n input: An audio spectogram.\n fade_in: Length of fade in.\n fade_out: Length of fade out.\n mode: Mode of the fade.\n name: A name for the operation (optional).\n Returns:\n A tens... | def fade(input, fade_in, fade_out, mode, name=None):
'\n Apply fade in/out to audio.\n\n Args:\n input: An audio spectogram.\n fade_in: Length of fade in.\n fade_out: Length of fade out.\n mode: Mode of the fade.\n name: A name for the operation (optional).\n Returns:\n A tens... |
5e67c22535c8d26f2a48a28094fb69096cbffa584c23b4ecdb7489aca49e6c6c | def resample(input, rate_in, rate_out, lowpass_filter_width=6):
'Resamples the input at the new frequency. This matches Kaldi’s OfflineFeatureTpl ResampleWaveform which uses a LinearResample (resample a signal at linearly spaced intervals to upsample/downsample a signal). LinearResample (LR) means that the output s... | Resamples the input at the new frequency. This matches Kaldi’s OfflineFeatureTpl ResampleWaveform which uses a LinearResample (resample a signal at linearly spaced intervals to upsample/downsample a signal). LinearResample (LR) means that the output signal is at linearly spaced intervals (i.e the output signal has a fr... | tensorflow_io/python/ops/audio_ops.py | resample | AlexFuster/io | 0 | python | def resample(input, rate_in, rate_out, lowpass_filter_width=6):
'Resamples the input at the new frequency. This matches Kaldi’s OfflineFeatureTpl ResampleWaveform which uses a LinearResample (resample a signal at linearly spaced intervals to upsample/downsample a signal). LinearResample (LR) means that the output s... | def resample(input, rate_in, rate_out, lowpass_filter_width=6):
'Resamples the input at the new frequency. This matches Kaldi’s OfflineFeatureTpl ResampleWaveform which uses a LinearResample (resample a signal at linearly spaced intervals to upsample/downsample a signal). LinearResample (LR) means that the output s... |
b6b4cd4a67e5f7d8cd56567b1a4436216185ad082721fb044d7313a39c4d94a8 | def decode_wav(input, shape=None, dtype=None, name=None):
'Decode WAV audio from input string.\n\n Args:\n input: A string `Tensor` of the audio input.\n shape: The shape of the audio.\n dtype: The data type of the audio, only\n tf.uint8, tf.int16, tf.int32 and tf.float32 are supported.\n ... | Decode WAV audio from input string.
Args:
input: A string `Tensor` of the audio input.
shape: The shape of the audio.
dtype: The data type of the audio, only
tf.uint8, tf.int16, tf.int32 and tf.float32 are supported.
name: A name for the operation (optional).
Returns:
output: Decoded audio. | tensorflow_io/python/ops/audio_ops.py | decode_wav | AlexFuster/io | 0 | python | def decode_wav(input, shape=None, dtype=None, name=None):
'Decode WAV audio from input string.\n\n Args:\n input: A string `Tensor` of the audio input.\n shape: The shape of the audio.\n dtype: The data type of the audio, only\n tf.uint8, tf.int16, tf.int32 and tf.float32 are supported.\n ... | def decode_wav(input, shape=None, dtype=None, name=None):
'Decode WAV audio from input string.\n\n Args:\n input: A string `Tensor` of the audio input.\n shape: The shape of the audio.\n dtype: The data type of the audio, only\n tf.uint8, tf.int16, tf.int32 and tf.float32 are supported.\n ... |
3dd527276406f647aed5569a10371594240ece0cb70c27a9fccfef796257c472 | def encode_wav(input, rate, name=None):
'Encode WAV audio into string.\n\n Args:\n input: A `Tensor` of the audio input.\n rate: The sample rate of the audio.\n name: A name for the operation (optional).\n\n Returns:\n output: Encoded audio.\n '
return core_ops.io_audio_encode_wav(i... | Encode WAV audio into string.
Args:
input: A `Tensor` of the audio input.
rate: The sample rate of the audio.
name: A name for the operation (optional).
Returns:
output: Encoded audio. | tensorflow_io/python/ops/audio_ops.py | encode_wav | AlexFuster/io | 0 | python | def encode_wav(input, rate, name=None):
'Encode WAV audio into string.\n\n Args:\n input: A `Tensor` of the audio input.\n rate: The sample rate of the audio.\n name: A name for the operation (optional).\n\n Returns:\n output: Encoded audio.\n '
return core_ops.io_audio_encode_wav(i... | def encode_wav(input, rate, name=None):
'Encode WAV audio into string.\n\n Args:\n input: A `Tensor` of the audio input.\n rate: The sample rate of the audio.\n name: A name for the operation (optional).\n\n Returns:\n output: Encoded audio.\n '
return core_ops.io_audio_encode_wav(i... |
8cfcfd498fe5dcc53b4811069988242002895f60e5ba41ca21ba0fd73b729cc8 | def decode_flac(input, shape=None, dtype=None, name=None):
'Decode Flac audio from input string.\n\n Args:\n input: A string `Tensor` of the audio input.\n shape: The shape of the audio.\n dtype: The data type of the audio, only\n tf.uint8, tf.int16 and tf.int32 are supported.\n name: ... | Decode Flac audio from input string.
Args:
input: A string `Tensor` of the audio input.
shape: The shape of the audio.
dtype: The data type of the audio, only
tf.uint8, tf.int16 and tf.int32 are supported.
name: A name for the operation (optional).
Returns:
output: Decoded audio. | tensorflow_io/python/ops/audio_ops.py | decode_flac | AlexFuster/io | 0 | python | def decode_flac(input, shape=None, dtype=None, name=None):
'Decode Flac audio from input string.\n\n Args:\n input: A string `Tensor` of the audio input.\n shape: The shape of the audio.\n dtype: The data type of the audio, only\n tf.uint8, tf.int16 and tf.int32 are supported.\n name: ... | def decode_flac(input, shape=None, dtype=None, name=None):
'Decode Flac audio from input string.\n\n Args:\n input: A string `Tensor` of the audio input.\n shape: The shape of the audio.\n dtype: The data type of the audio, only\n tf.uint8, tf.int16 and tf.int32 are supported.\n name: ... |
84272ae7add01bf06e4bc29927ea9c29870979d28907a817f1849cb0f7b542ac | def encode_flac(input, rate, name=None):
'Encode Flac audio into string.\n\n Args:\n input: A `Tensor` of the audio input.\n rate: The sample rate of the audio.\n name: A name for the operation (optional).\n\n Returns:\n output: Encoded audio.\n '
return core_ops.io_audio_encode_fla... | Encode Flac audio into string.
Args:
input: A `Tensor` of the audio input.
rate: The sample rate of the audio.
name: A name for the operation (optional).
Returns:
output: Encoded audio. | tensorflow_io/python/ops/audio_ops.py | encode_flac | AlexFuster/io | 0 | python | def encode_flac(input, rate, name=None):
'Encode Flac audio into string.\n\n Args:\n input: A `Tensor` of the audio input.\n rate: The sample rate of the audio.\n name: A name for the operation (optional).\n\n Returns:\n output: Encoded audio.\n '
return core_ops.io_audio_encode_fla... | def encode_flac(input, rate, name=None):
'Encode Flac audio into string.\n\n Args:\n input: A `Tensor` of the audio input.\n rate: The sample rate of the audio.\n name: A name for the operation (optional).\n\n Returns:\n output: Encoded audio.\n '
return core_ops.io_audio_encode_fla... |
6d692e895a24411551d75c9492687d9a46cf8718c097b21da4ca401340170c5d | def decode_vorbis(input, shape=None, name=None):
'Decode Ogg(Vorbis) audio from input string.\n\n Args:\n input: A string `Tensor` of the audio input.\n shape: The shape of the audio.\n name: A name for the operation (optional).\n\n Returns:\n output: Decoded audio as tf.float32.\n '
... | Decode Ogg(Vorbis) audio from input string.
Args:
input: A string `Tensor` of the audio input.
shape: The shape of the audio.
name: A name for the operation (optional).
Returns:
output: Decoded audio as tf.float32. | tensorflow_io/python/ops/audio_ops.py | decode_vorbis | AlexFuster/io | 0 | python | def decode_vorbis(input, shape=None, name=None):
'Decode Ogg(Vorbis) audio from input string.\n\n Args:\n input: A string `Tensor` of the audio input.\n shape: The shape of the audio.\n name: A name for the operation (optional).\n\n Returns:\n output: Decoded audio as tf.float32.\n '
... | def decode_vorbis(input, shape=None, name=None):
'Decode Ogg(Vorbis) audio from input string.\n\n Args:\n input: A string `Tensor` of the audio input.\n shape: The shape of the audio.\n name: A name for the operation (optional).\n\n Returns:\n output: Decoded audio as tf.float32.\n '
... |
3ad6047a69a6796b887a908f5003a0afc9ed1d2a52088563d35e69826ea9fcf6 | def encode_vorbis(input, rate, name=None):
'Encode Ogg(Vorbis) audio into string.\n\n Args:\n input: A `Tensor` of the audio input.\n rate: The sample rate of the audio.\n name: A name for the operation (optional).\n\n Returns:\n output: Encoded audio.\n '
return core_ops.io_audio_e... | Encode Ogg(Vorbis) audio into string.
Args:
input: A `Tensor` of the audio input.
rate: The sample rate of the audio.
name: A name for the operation (optional).
Returns:
output: Encoded audio. | tensorflow_io/python/ops/audio_ops.py | encode_vorbis | AlexFuster/io | 0 | python | def encode_vorbis(input, rate, name=None):
'Encode Ogg(Vorbis) audio into string.\n\n Args:\n input: A `Tensor` of the audio input.\n rate: The sample rate of the audio.\n name: A name for the operation (optional).\n\n Returns:\n output: Encoded audio.\n '
return core_ops.io_audio_e... | def encode_vorbis(input, rate, name=None):
'Encode Ogg(Vorbis) audio into string.\n\n Args:\n input: A `Tensor` of the audio input.\n rate: The sample rate of the audio.\n name: A name for the operation (optional).\n\n Returns:\n output: Encoded audio.\n '
return core_ops.io_audio_e... |
0b45bc4fc8caeb83a76f6261e480777632a646934f0ffd61f46477726a7df89e | def decode_mp3(input, shape=None, name=None):
'Decode MP3 audio from input string.\n\n Args:\n input: A string `Tensor` of the audio input.\n shape: The shape of the audio.\n name: A name for the operation (optional).\n\n Returns:\n output: Decoded audio as tf.float32.\n '
if (shape... | Decode MP3 audio from input string.
Args:
input: A string `Tensor` of the audio input.
shape: The shape of the audio.
name: A name for the operation (optional).
Returns:
output: Decoded audio as tf.float32. | tensorflow_io/python/ops/audio_ops.py | decode_mp3 | AlexFuster/io | 0 | python | def decode_mp3(input, shape=None, name=None):
'Decode MP3 audio from input string.\n\n Args:\n input: A string `Tensor` of the audio input.\n shape: The shape of the audio.\n name: A name for the operation (optional).\n\n Returns:\n output: Decoded audio as tf.float32.\n '
if (shape... | def decode_mp3(input, shape=None, name=None):
'Decode MP3 audio from input string.\n\n Args:\n input: A string `Tensor` of the audio input.\n shape: The shape of the audio.\n name: A name for the operation (optional).\n\n Returns:\n output: Decoded audio as tf.float32.\n '
if (shape... |
ebafd8f3d8815908bb0002dbdd05b81452660d33860c5d00af7deb31b4fd0572 | def encode_mp3(input, rate, name=None):
'Encode MP3 audio into string.\n\n Args:\n input: A `Tensor` of the audio input.\n rate: The sample rate of the audio.\n name: A name for the operation (optional).\n\n Returns:\n output: Encoded audio.\n '
return core_ops.io_audio_encode_mp3(i... | Encode MP3 audio into string.
Args:
input: A `Tensor` of the audio input.
rate: The sample rate of the audio.
name: A name for the operation (optional).
Returns:
output: Encoded audio. | tensorflow_io/python/ops/audio_ops.py | encode_mp3 | AlexFuster/io | 0 | python | def encode_mp3(input, rate, name=None):
'Encode MP3 audio into string.\n\n Args:\n input: A `Tensor` of the audio input.\n rate: The sample rate of the audio.\n name: A name for the operation (optional).\n\n Returns:\n output: Encoded audio.\n '
return core_ops.io_audio_encode_mp3(i... | def encode_mp3(input, rate, name=None):
'Encode MP3 audio into string.\n\n Args:\n input: A `Tensor` of the audio input.\n rate: The sample rate of the audio.\n name: A name for the operation (optional).\n\n Returns:\n output: Encoded audio.\n '
return core_ops.io_audio_encode_mp3(i... |
f9378aa5ac91b4d5569b89f884fbdc8fc355d534879b9f06826e638336b14281 | def decode_aac(input, shape=None, name=None):
'Decode MP4 (AAC) audio from input string.\n\n Args:\n input: A string `Tensor` of the audio input.\n shape: The shape of the audio.\n name: A name for the operation (optional).\n\n Returns:\n output: Decoded audio as tf.float32.\n '
if ... | Decode MP4 (AAC) audio from input string.
Args:
input: A string `Tensor` of the audio input.
shape: The shape of the audio.
name: A name for the operation (optional).
Returns:
output: Decoded audio as tf.float32. | tensorflow_io/python/ops/audio_ops.py | decode_aac | AlexFuster/io | 0 | python | def decode_aac(input, shape=None, name=None):
'Decode MP4 (AAC) audio from input string.\n\n Args:\n input: A string `Tensor` of the audio input.\n shape: The shape of the audio.\n name: A name for the operation (optional).\n\n Returns:\n output: Decoded audio as tf.float32.\n '
if ... | def decode_aac(input, shape=None, name=None):
'Decode MP4 (AAC) audio from input string.\n\n Args:\n input: A string `Tensor` of the audio input.\n shape: The shape of the audio.\n name: A name for the operation (optional).\n\n Returns:\n output: Decoded audio as tf.float32.\n '
if ... |
f2fba7bc79d9e1ecbff9ca4c506b2399322efd55aedf0572e3789e9491b57025 | def encode_aac(input, rate, name=None):
'Encode MP4(AAC) audio into string.\n\n Args:\n input: A `Tensor` of the audio input.\n rate: The sample rate of the audio.\n name: A name for the operation (optional).\n\n Returns:\n output: Encoded audio.\n '
if (sys.platform == 'linux'):
... | Encode MP4(AAC) audio into string.
Args:
input: A `Tensor` of the audio input.
rate: The sample rate of the audio.
name: A name for the operation (optional).
Returns:
output: Encoded audio. | tensorflow_io/python/ops/audio_ops.py | encode_aac | AlexFuster/io | 0 | python | def encode_aac(input, rate, name=None):
'Encode MP4(AAC) audio into string.\n\n Args:\n input: A `Tensor` of the audio input.\n rate: The sample rate of the audio.\n name: A name for the operation (optional).\n\n Returns:\n output: Encoded audio.\n '
if (sys.platform == 'linux'):
... | def encode_aac(input, rate, name=None):
'Encode MP4(AAC) audio into string.\n\n Args:\n input: A `Tensor` of the audio input.\n rate: The sample rate of the audio.\n name: A name for the operation (optional).\n\n Returns:\n output: Encoded audio.\n '
if (sys.platform == 'linux'):
... |
9e58b31e9ca8970d40a3ed10be6e28d5c1b7bf35828fa9dae4ecba3c3500ef98 | @property
def shape(self):
'Returns the `TensorShape` that represents the shape of the tensor.'
return self._shape | Returns the `TensorShape` that represents the shape of the tensor. | tensorflow_io/python/ops/audio_ops.py | shape | AlexFuster/io | 0 | python | @property
def shape(self):
return self._shape | @property
def shape(self):
return self._shape<|docstring|>Returns the `TensorShape` that represents the shape of the tensor.<|endoftext|> |
aec3412a2fb0c6ec424d7617dc0be1a11eecc1e99f7b1f91cb0cd627fea638b0 | @property
def dtype(self):
'Returns the `dtype` of elements in the tensor.'
return self._dtype | Returns the `dtype` of elements in the tensor. | tensorflow_io/python/ops/audio_ops.py | dtype | AlexFuster/io | 0 | python | @property
def dtype(self):
return self._dtype | @property
def dtype(self):
return self._dtype<|docstring|>Returns the `dtype` of elements in the tensor.<|endoftext|> |
fcdc448d36e13f01d36d3c60096d0262710a5836045b6ba06bcd2caccf8dd6ea | @property
def rate(self):
'The sample `rate` of the audio stream'
return self._rate | The sample `rate` of the audio stream | tensorflow_io/python/ops/audio_ops.py | rate | AlexFuster/io | 0 | python | @property
def rate(self):
return self._rate | @property
def rate(self):
return self._rate<|docstring|>The sample `rate` of the audio stream<|endoftext|> |
fca5ba860cbadd5d94fc6794550ab268ad3eec2fce8275b0a26b5090a90abc20 | def to_tensor(self):
'Converts this `IOTensor` into a `tf.Tensor`.\n\n Args:\n name: A name prefix for the returned tensors (optional).\n\n Returns:\n A `Tensor` with value obtained from this `IOTensor`.\n '
return core_ops.io_audio_readable_read(self._resource, 0, (- 1), ... | Converts this `IOTensor` into a `tf.Tensor`.
Args:
name: A name prefix for the returned tensors (optional).
Returns:
A `Tensor` with value obtained from this `IOTensor`. | tensorflow_io/python/ops/audio_ops.py | to_tensor | AlexFuster/io | 0 | python | def to_tensor(self):
'Converts this `IOTensor` into a `tf.Tensor`.\n\n Args:\n name: A name prefix for the returned tensors (optional).\n\n Returns:\n A `Tensor` with value obtained from this `IOTensor`.\n '
return core_ops.io_audio_readable_read(self._resource, 0, (- 1), ... | def to_tensor(self):
'Converts this `IOTensor` into a `tf.Tensor`.\n\n Args:\n name: A name prefix for the returned tensors (optional).\n\n Returns:\n A `Tensor` with value obtained from this `IOTensor`.\n '
return core_ops.io_audio_readable_read(self._resource, 0, (- 1), ... |
24af6bc9e3278c22c994d1b67fd9affe315cb7eeec37415fd6929095ef340317 | def __getitem__(self, key):
'Returns the specified piece of this IOTensor.'
if (not isinstance(key, tuple)):
key = tuple([key])
indices = [((k.start, k.stop) if isinstance(k, slice) else (k, (k + 1))) for k in key]
indices = list(zip(*indices))
start = [(0 if (e is None) else e) for e in ind... | Returns the specified piece of this IOTensor. | tensorflow_io/python/ops/audio_ops.py | __getitem__ | AlexFuster/io | 0 | python | def __getitem__(self, key):
if (not isinstance(key, tuple)):
key = tuple([key])
indices = [((k.start, k.stop) if isinstance(k, slice) else (k, (k + 1))) for k in key]
indices = list(zip(*indices))
start = [(0 if (e is None) else e) for e in indices[0]]
stop = [((- 1) if (e is None) else... | def __getitem__(self, key):
if (not isinstance(key, tuple)):
key = tuple([key])
indices = [((k.start, k.stop) if isinstance(k, slice) else (k, (k + 1))) for k in key]
indices = list(zip(*indices))
start = [(0 if (e is None) else e) for e in indices[0]]
stop = [((- 1) if (e is None) else... |
0720c8301bdbf7569a5efe616dabf3c61e3f2cf7c1afba501373ee18b70aa394 | def __len__(self):
'Returns the total number of items of this IOTensor.'
return self._shape[0] | Returns the total number of items of this IOTensor. | tensorflow_io/python/ops/audio_ops.py | __len__ | AlexFuster/io | 0 | python | def __len__(self):
return self._shape[0] | def __len__(self):
return self._shape[0]<|docstring|>Returns the total number of items of this IOTensor.<|endoftext|> |
5d34e7847d6a8d58dd8cf725f3a96fef35920fd786b4dd5162c3f6f7048b36c5 | def __init__(self, filename, dtype=None):
'AudioIODataset.'
with tf.name_scope('AudioIODataset'):
if (not tf.executing_eagerly()):
assert (dtype is not None), 'dtype must be provided in graph mode'
resource = core_ops.io_audio_readable_init(filename)
if tf.executing_eagerly()... | AudioIODataset. | tensorflow_io/python/ops/audio_ops.py | __init__ | AlexFuster/io | 0 | python | def __init__(self, filename, dtype=None):
with tf.name_scope('AudioIODataset'):
if (not tf.executing_eagerly()):
assert (dtype is not None), 'dtype must be provided in graph mode'
resource = core_ops.io_audio_readable_init(filename)
if tf.executing_eagerly():
(sh... | def __init__(self, filename, dtype=None):
with tf.name_scope('AudioIODataset'):
if (not tf.executing_eagerly()):
assert (dtype is not None), 'dtype must be provided in graph mode'
resource = core_ops.io_audio_readable_init(filename)
if tf.executing_eagerly():
(sh... |
e4a18d67c1fd206f04b803cf4832d51fb92b4d554bf2e8c8024c47897bc6a6ff | def test_semisupervised_half_moons(torch_device, simple_classification_model, ssml_half_moons_ds, train):
' Simple integration test for comparing fully supervised learning for half moons against VAT ssml.\n\n Args:\n torch_device (torch.device): Device to use\n simple_classification_model (pytest f... | Simple integration test for comparing fully supervised learning for half moons against VAT ssml.
Args:
torch_device (torch.device): Device to use
simple_classification_model (pytest fixture function): Function to create simple model
ssml_half_moons_ds (torch.utils.data.dataset.TensorDataset): toy ssml 2-d ... | tests/test_vat.py | test_semisupervised_half_moons | sandialabs/shadow | 8 | python | def test_semisupervised_half_moons(torch_device, simple_classification_model, ssml_half_moons_ds, train):
' Simple integration test for comparing fully supervised learning for half moons against VAT ssml.\n\n Args:\n torch_device (torch.device): Device to use\n simple_classification_model (pytest f... | def test_semisupervised_half_moons(torch_device, simple_classification_model, ssml_half_moons_ds, train):
' Simple integration test for comparing fully supervised learning for half moons against VAT ssml.\n\n Args:\n torch_device (torch.device): Device to use\n simple_classification_model (pytest f... |
1ea421b049f7897a4a3fa03e32a2641e13d8aed5fc28fc1f1f07bc167b536d9e | def test_vadv_perturbation(torch_device, simple_linear_2d_model, blobs_ds, train):
' Simple test for the generated adversarial perturbation using vadv_perturbation.\n\n Args:\n torch_device (torch.device): Device to use\n simple_linear_2d_model (pytest fixture function): Function to create simple m... | Simple test for the generated adversarial perturbation using vadv_perturbation.
Args:
torch_device (torch.device): Device to use
simple_linear_2d_model (pytest fixture function): Function to create simple model
blobs_ds (torch.utils.data.dataset.TensorDataset): toy ssml 2-d dataset
Returns: No return valu... | tests/test_vat.py | test_vadv_perturbation | sandialabs/shadow | 8 | python | def test_vadv_perturbation(torch_device, simple_linear_2d_model, blobs_ds, train):
' Simple test for the generated adversarial perturbation using vadv_perturbation.\n\n Args:\n torch_device (torch.device): Device to use\n simple_linear_2d_model (pytest fixture function): Function to create simple m... | def test_vadv_perturbation(torch_device, simple_linear_2d_model, blobs_ds, train):
' Simple test for the generated adversarial perturbation using vadv_perturbation.\n\n Args:\n torch_device (torch.device): Device to use\n simple_linear_2d_model (pytest fixture function): Function to create simple m... |
ad2b3fb63d8bc1db0f95158b56977027252bd08a872b4269d28966e62b05580b | def test_vadv_pertubation_xi_check(torch_device, simple_linear_2d_model):
' Confirms that a warning is thrown when a perturbation of length == 0 is generated.\n This is mocked by setting a very low value for xi.\n\n Args:\n torch_device (torch.device): Device to use\n simple_linear_2d_model (pyt... | Confirms that a warning is thrown when a perturbation of length == 0 is generated.
This is mocked by setting a very low value for xi.
Args:
torch_device (torch.device): Device to use
simple_linear_2d_model (pytest fixture function): Function to create simple model
Returns: No return value | tests/test_vat.py | test_vadv_pertubation_xi_check | sandialabs/shadow | 8 | python | def test_vadv_pertubation_xi_check(torch_device, simple_linear_2d_model):
' Confirms that a warning is thrown when a perturbation of length == 0 is generated.\n This is mocked by setting a very low value for xi.\n\n Args:\n torch_device (torch.device): Device to use\n simple_linear_2d_model (pyt... | def test_vadv_pertubation_xi_check(torch_device, simple_linear_2d_model):
' Confirms that a warning is thrown when a perturbation of length == 0 is generated.\n This is mocked by setting a very low value for xi.\n\n Args:\n torch_device (torch.device): Device to use\n simple_linear_2d_model (pyt... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.