function
stringlengths
11
56k
repo_name
stringlengths
5
60
features
list
def test_get_py3_forks(self): HTTPretty.register_uri(HTTPretty.GET, 'https://api.github.com/repos/nick/progressbar/forks', '[{"html_url": "https://github.com/coagulant/progressbar-python3", "name": "progressbar-python3"},' '{"html_url": "https://github.com/mick/progressbar",...
futurecolors/gopython3
[ 2, 2, 2, 13, 1379656339 ]
def test_get_build_status(self): HTTPretty.register_uri(HTTPretty.GET, 'https://api.travis-ci.org/repos/coagulant/cleanweb', '{"repo":{"slug": "coagulant/cleanweb", "last_build_state": "passed"}}' ) assert TravisCI().get_build_status('coagulant/cleanweb') == { ...
futurecolors/gopython3
[ 2, 2, 2, 13, 1379656339 ]
def test_get_info_without_version(self): json_string = """{"info":{ "name": "Django", "home_page": "http://www.djangoproject.com/", "classifiers": [ "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Pytho...
futurecolors/gopython3
[ 2, 2, 2, 13, 1379656339 ]
def __init__(self, daemon=True): # properties is a local copy of tracked properties, in case that's useful self.properties = {} # callbacks is a dict mapping property names to lists of callbacks self.callbacks = collections.defaultdict(set) # prefix_callbacks is a trie used to ma...
zplab/rpc-scope
[ 1, 3, 1, 2, 1461965724 ]
def run(self): """Thread target: do not call directly.""" self.running = True while True: property_name, value = self._receive_update() self.properties[property_name] = value for callbacks in [self.callbacks[property_name]] + list(self.prefix_callbacks.values(...
zplab/rpc-scope
[ 1, 3, 1, 2, 1461965724 ]
def subscribe(self, property_name, callback, valueonly=False): """Register a callback to be called any time the named property is updated. If valueonly is True, the callback will be called as: callback(new_value); if valueonly is False, it will be called as callback(property_name, new_value). ...
zplab/rpc-scope
[ 1, 3, 1, 2, 1461965724 ]
def subscribe_prefix(self, property_prefix, callback): """Register a callback to be called any time a named property which is prefixed by the property_prefix parameter is updated. The callback is called as callback(property_name, new_value). Example: if property_prefix is 'camera.', the...
zplab/rpc-scope
[ 1, 3, 1, 2, 1461965724 ]
def _receive_update(self): """Receive an update from the server, or raise an error if self.running goes False.""" raise NotImplementedError()
zplab/rpc-scope
[ 1, 3, 1, 2, 1461965724 ]
def __init__(self, addr, heartbeat_sec=None, context=None, daemon=True): """PropertyClient subclass that uses ZeroMQ PUB/SUB to receive out updates. Parameters: addr: a string ZeroMQ port identifier, like 'tcp://127.0.0.1:5555'. context: a ZeroMQ context to share, if one already ...
zplab/rpc-scope
[ 1, 3, 1, 2, 1461965724 ]
def reconnect(self): self.connected.clear() self.connected.wait()
zplab/rpc-scope
[ 1, 3, 1, 2, 1461965724 ]
def subscribe(self, property_name, callback, valueonly=False): self.connected.wait() self.socket.subscribe(property_name) super().subscribe(property_name, callback, valueonly)
zplab/rpc-scope
[ 1, 3, 1, 2, 1461965724 ]
def unsubscribe(self, property_name, callback, valueonly=False): super().unsubscribe(property_name, callback, valueonly) self.connected.wait() self.socket.unsubscribe(property_name)
zplab/rpc-scope
[ 1, 3, 1, 2, 1461965724 ]
def subscribe_prefix(self, property_prefix, callback): self.connected.wait() self.socket.subscribe(property_prefix) super().subscribe_prefix(property_prefix, callback)
zplab/rpc-scope
[ 1, 3, 1, 2, 1461965724 ]
def unsubscribe_prefix(self, property_prefix, callback): super().unsubscribe_prefix(property_prefix, callback) self.connected.wait() self.socket.unsubscribe(property_prefix)
zplab/rpc-scope
[ 1, 3, 1, 2, 1461965724 ]
def connect (addr, family = socket.AF_INET, bind = None): """ Convenience function for opening client sockets. :param addr: Address of the server to connect to. For TCP sockets, this is a (host, port) tuple. :param family: Socket family, optional. See :mod:`socket` documentation for available familie...
inercia/evy
[ 4, 1, 4, 5, 1352288573 ]
def _stop_checker (t, server_gt, conn): try: try: t.wait() finally: conn.close() except greenlet.GreenletExit: pass except Exception: kill(server_gt, *sys.exc_info())
inercia/evy
[ 4, 1, 4, 5, 1352288573 ]
def myhandle(client_sock, client_addr): print "client connected", client_addr
inercia/evy
[ 4, 1, 4, 5, 1352288573 ]
def __init__(self, plotly_name="font", parent_name="box.hoverlabel", **kwargs): super(FontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_...
plotly/python-api
[ 13052, 2308, 13052, 1319, 1385013188 ]
def __init__(self, *args, **kw): """ Initialize a :class:`SystemLogging` object. :param args: Positional arguments to :func:`enable_system_logging()`. :param kw: Keyword arguments to :func:`enable_system_logging()`. """ self.args = args self.kw = kw self....
xolox/python-coloredlogs
[ 500, 39, 500, 31, 1369940232 ]
def __exit__(self, exc_type=None, exc_value=None, traceback=None): """ Disable system logging when leaving the context. .. note:: If an exception is being handled when we leave the context a warning message including traceback is logged *before* system loggin...
xolox/python-coloredlogs
[ 500, 39, 500, 31, 1369940232 ]
def connect_to_syslog(address=None, facility=None, level=None): """ Create a :class:`~logging.handlers.SysLogHandler`. :param address: The device file or network address of the system logging daemon (a string or tuple, defaults to the result of :func:`find_syslog_add...
xolox/python-coloredlogs
[ 500, 39, 500, 31, 1369940232 ]
def is_syslog_supported(): """ Determine whether system logging is supported. :returns: :data:`True` if system logging is supported and can be enabled, :data:`False` if system logging is not supported or there are good reasons for not enabling it. The decision making process h...
xolox/python-coloredlogs
[ 500, 39, 500, 31, 1369940232 ]
def __init__(self, client, config, serializer, deserializer) -> None: self._client = client self._serialize = serializer self._deserialize = deserializer self._config = config
Azure/azure-sdk-for-python
[ 3526, 2256, 3526, 986, 1335285972 ]
def get_long_running_output(pipeline_response): response = pipeline_response.http_response deserialized = self._deserialize('ScopeMap', pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) return deserialized
Azure/azure-sdk-for-python
[ 3526, 2256, 3526, 986, 1335285972 ]
def get_long_running_output(pipeline_response): if cls: return cls(pipeline_response, None, {})
Azure/azure-sdk-for-python
[ 3526, 2256, 3526, 986, 1335285972 ]
def get_long_running_output(pipeline_response): response = pipeline_response.http_response deserialized = self._deserialize('ScopeMap', pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) return deserialized
Azure/azure-sdk-for-python
[ 3526, 2256, 3526, 986, 1335285972 ]
def list( self, resource_group_name: str, registry_name: str, **kwargs: Any
Azure/azure-sdk-for-python
[ 3526, 2256, 3526, 986, 1335285972 ]
def prepare_request(next_link=None): if not next_link:
Azure/azure-sdk-for-python
[ 3526, 2256, 3526, 986, 1335285972 ]
def __init__(self, aliases): self.aliases = aliases self.priorities = {k: i for i, k in enumerate(aliases)}
openvenues/lieu
[ 76, 23, 76, 15, 1496013990 ]
def get(self, key, default=None): return self.aliases.get(key, default)
openvenues/lieu
[ 76, 23, 76, 15, 1496013990 ]
def from_geojson(cls, data): properties = data.get('properties') properties = {k: safe_decode(v) if k in cls.field_map.aliases else v for k, v in six.iteritems(properties)} fields = cls.field_map.replace(properties) lon, lat = data.get('geometry', {}).get('coordinates', (None, None)) ...
openvenues/lieu
[ 76, 23, 76, 15, 1496013990 ]
def __init__(self, x): self.val = x self.next = None
jiadaizhao/LeetCode
[ 39, 21, 39, 2, 1502171846 ]
def __init__(self, name: str, title: str) -> None: self.name = name self.title = title
pudo/nomenklatura
[ 159, 36, 159, 5, 1342346008 ]
def __lt__(self, other: "Dataset") -> bool: return self.name.__lt__(other.name)
pudo/nomenklatura
[ 159, 36, 159, 5, 1342346008 ]
def __init__(self, id, web_url, timeout=None): UrlParser.__init__(self, id=id, web_url=web_url, timeout=timeout)
pgaref/HTTP_Request_Randomizer
[ 140, 53, 140, 23, 1446231372 ]
def create_proxy_object(self, dataset): # Check Field[0] for tags and field[1] for values! ip = "" port = None anonymity = AnonymityLevel.UNKNOWN country = None protocols = [] for field in dataset: if field[0] == 'IP Address': # Make su...
pgaref/HTTP_Request_Randomizer
[ 140, 53, 140, 23, 1446231372 ]
def __init__(self, state, action, next_state, reward=None): self.state = state self.action = action self.next_state = next_state self.reward = reward
evenmarbles/mlpy
[ 7, 2, 7, 2, 1439328535 ]
def bonus(self): """The bonus added to the reward to encourage exploration. Returns ------- float : The bonus added to the reward. """ return self._bonus
evenmarbles/mlpy
[ 7, 2, 7, 2, 1439328535 ]
def bonus(self, value): self._bonus = value
evenmarbles/mlpy
[ 7, 2, 7, 2, 1439328535 ]
def __getstate__(self): return { 'reward': self.reward, 'rmax': self.rmax, 'bonus': self.bonus, 'activate_bonus': self.activate_bonus }
evenmarbles/mlpy
[ 7, 2, 7, 2, 1439328535 ]
def set(self, value, *args, **kwargs): """Set the reward value. If :meth:`cb_set` is set, the callback will be called to set the value. Parameters ---------- args : tuple Positional arguments passed to the callback. kwargs : dict Non-posi...
evenmarbles/mlpy
[ 7, 2, 7, 2, 1439328535 ]
def __init__(self): self.transition_proba = ProbabilityDistribution() self.reward_func = RewardFunction() self.visits = 0 self.known = False
evenmarbles/mlpy
[ 7, 2, 7, 2, 1439328535 ]
def __setstate__(self, d): for name, value in d.iteritems(): setattr(self, name, value)
evenmarbles/mlpy
[ 7, 2, 7, 2, 1439328535 ]
def __init__(self, state_id, actions): self.id = state_id """:type: int""" self.models = {a: StateActionInfo() for a in actions} """:type: dict[Action, StateActionInfo]""" # Randomizing the initial q-values impedes performance # self.q = {a: ((0.01 - 0.0) * np.random.rand...
evenmarbles/mlpy
[ 7, 2, 7, 2, 1439328535 ]
def __setstate__(self, d): for name, value in d.iteritems(): setattr(self, name, value)
evenmarbles/mlpy
[ 7, 2, 7, 2, 1439328535 ]
def name(self): """The name of the MDP primitive. Returns ------- str : The name of the primitive. """ return self._name
evenmarbles/mlpy
[ 7, 2, 7, 2, 1439328535 ]
def set_nfeatures(cls, n): """Set the number of features. Parameters ---------- n : int The number of features. Raises ------ ValueError If `n` is not of type integer. """ if not isinstance(n, int): raise Valu...
evenmarbles/mlpy
[ 7, 2, 7, 2, 1439328535 ]
def set_dtype(cls, value=DTYPE_FLOAT): """Set the feature's data type. Parameters ---------- value : {DTYPE_FLOAT, DTYPE_INT, DTYPE_OBJECT} The data type. Raises ------ ValueError If the data type is not one of the allowed types. ...
evenmarbles/mlpy
[ 7, 2, 7, 2, 1439328535 ]
def set_description(cls, descr): """Set the feature description. This extracts the number of features from the description and checks that it matches with the `nfeatures`. If `nfeatures` is None, `nfeatures` is set to the extracted value. Parameters ---------- d...
evenmarbles/mlpy
[ 7, 2, 7, 2, 1439328535 ]
def set_discretized(cls, val=False): """Sets the `discretized` flag. Parameters ---------- val : bool Flag identifying whether the features are discretized or not. Default is False. Raises ------ ValueError If `val` is not boo...
evenmarbles/mlpy
[ 7, 2, 7, 2, 1439328535 ]
def set_minmax_features(cls, _min, _max): """Sets the minimum and maximum value for each feature. This extracts the number of features from the `_min` and `_max` values and ensures that it matches with `nfeatures`. If `nfeatures` is None, the `nfeatures` attribute is set to the extracte...
evenmarbles/mlpy
[ 7, 2, 7, 2, 1439328535 ]
def set_states_per_dim(cls, nstates): """Sets the number of states per feature. This extracts the number of features from `nstates` and compares it to the attribute `nfeatures`. If it doesn't match, an exception is thrown. If the `nfeatures` attribute is None, `nfeatures` is set ...
evenmarbles/mlpy
[ 7, 2, 7, 2, 1439328535 ]
def __get__(self, instance, owner): return self._features
evenmarbles/mlpy
[ 7, 2, 7, 2, 1439328535 ]
def __setitem__(self, index, value): if index > len(self): raise IndexError("Assignment index out of range") self._features[index] = value
evenmarbles/mlpy
[ 7, 2, 7, 2, 1439328535 ]
def __contains__(self, item): return item in self._features
evenmarbles/mlpy
[ 7, 2, 7, 2, 1439328535 ]
def __eq__(self, other): return np.array_equal(other.get(), self._features)
evenmarbles/mlpy
[ 7, 2, 7, 2, 1439328535 ]
def __mul__(self, other): return self._features * other
evenmarbles/mlpy
[ 7, 2, 7, 2, 1439328535 ]
def __iter__(self): self.ix = 0 return self
evenmarbles/mlpy
[ 7, 2, 7, 2, 1439328535 ]
def __repr__(self): features = np.array_str(self.encode()) return "\'" + self._name + "\':\t" + features if self._name else features
evenmarbles/mlpy
[ 7, 2, 7, 2, 1439328535 ]
def __copy__(self, memo): cls = self.__class__ result = cls.__new__(cls) memo[id(self)] = result for k in self.__slots__: try: setattr(result, k, copy.copy(getattr(self, k))) except AttributeError: pass return result
evenmarbles/mlpy
[ 7, 2, 7, 2, 1439328535 ]
def __setstate__(self, d): for name, value in d.iteritems(): if name not in ['nfeatures', 'dtype', 'description', 'discretized', 'min_features', 'max_features', 'states_per_dim']: setattr(self, name, value) type(self).nfeatures = self._features.sh...
evenmarbles/mlpy
[ 7, 2, 7, 2, 1439328535 ]
def tolist(self): """Returns the feature array as a list. Returns ------- list : The features list. """ return self._features.tolist()
evenmarbles/mlpy
[ 7, 2, 7, 2, 1439328535 ]
def discretize(self): """Discretizes the state. Discretize the state using the information from the minimum and maximum values for each feature and the number of states attributed to each feature. """ if not self.discretized: return nfeatures = type(...
evenmarbles/mlpy
[ 7, 2, 7, 2, 1439328535 ]
def decode(cls, _repr): # noinspection PyUnresolvedReferences,PyUnusedLocal """Decodes the state into its original representation. Parameters ---------- _repr : tuple The readable representation of the primitive. Returns ------- State : ...
evenmarbles/mlpy
[ 7, 2, 7, 2, 1439328535 ]
def key_to_index(key): # noinspection PyUnresolvedReferences,PyUnusedLocal """Maps internal name to group index. Maps the internal name of a feature to the index of the corresponding feature grouping. For example for a feature vector consisting of the x-y-z position of the left ...
evenmarbles/mlpy
[ 7, 2, 7, 2, 1439328535 ]
def __init__(self, features, name=None): super(State, self).__init__(features, name)
evenmarbles/mlpy
[ 7, 2, 7, 2, 1439328535 ]
def is_terminal(self): """Checks if the state is a terminal state. Returns ------- bool : Whether the state is a terminal state or not. """ if State.terminal_states is None: return False if isinstance(State.terminal_states, list): ...
evenmarbles/mlpy
[ 7, 2, 7, 2, 1439328535 ]
def is_valid(self): # noinspection PyUnresolvedReferences,PyUnusedLocal """Check if this state is a valid state. Returns ------- bool : Whether the state is valid or not. Notes ----- Optionally this method can be overwritten at runtime. ...
evenmarbles/mlpy
[ 7, 2, 7, 2, 1439328535 ]
def __init__(self, features, name=None): super(Action, self).__init__(features, name) self._name = name if name is not None else Action.get_name(self._features)
evenmarbles/mlpy
[ 7, 2, 7, 2, 1439328535 ]
def get_name(cls, features): """Retrieves the name of the action. Retrieve the name of the action using the action's description. In the case that all features are zero the action is considered a `no-op` action. Parameters ---------- features : ndarray A fea...
evenmarbles/mlpy
[ 7, 2, 7, 2, 1439328535 ]
def load(saved_model_dir: str) -> AutoTrackable: """Load a Tensorflow saved model""" return tf.saved_model.load(saved_model_dir)
yoeo/guesslang
[ 644, 78, 644, 27, 1495396528 ]
def train(estimator: Estimator, data_root_dir: str, max_steps: int) -> Any: """Train a Tensorflow estimator""" train_spec = tf.estimator.TrainSpec( input_fn=_build_input_fn(data_root_dir, ModeKeys.TRAIN), max_steps=max_steps, ) if max_steps > Training.LONG_TRAINING_STEPS: throt...
yoeo/guesslang
[ 644, 78, 644, 27, 1495396528 ]
def test( saved_model: AutoTrackable, data_root_dir: str, mapping: Dict[str, str],
yoeo/guesslang
[ 644, 78, 644, 27, 1495396528 ]
def predict( saved_model: AutoTrackable, mapping: Dict[str, str], text: str
yoeo/guesslang
[ 644, 78, 644, 27, 1495396528 ]
def _build_input_fn( data_root_dir: str, mode: ModeKeys,
yoeo/guesslang
[ 644, 78, 644, 27, 1495396528 ]
def input_function() -> tf.data.Dataset: dataset = tf.data.Dataset dataset = dataset.list_files(pattern, shuffle=True).map(_read_file) if mode == ModeKeys.PREDICT: return dataset.batch(1) if mode == ModeKeys.TRAIN: dataset = dataset.shuffle(Training.SHUFFLE_BUFF...
yoeo/guesslang
[ 644, 78, 644, 27, 1495396528 ]
def _serving_input_receiver_fn() -> tf.estimator.export.ServingInputReceiver: """Function to serve model for predictions.""" content = tf.compat.v1.placeholder(tf.string, [None]) receiver_tensors = {'content': content} features = {'content': tf.map_fn(_preprocess_text, content)} return tf.estimato...
yoeo/guesslang
[ 644, 78, 644, 27, 1495396528 ]
def _preprocess( data: tf.Tensor, label: tf.Tensor,
yoeo/guesslang
[ 644, 78, 644, 27, 1495396528 ]
def best_fit_slope_and_intercept(xs, ys): m = (mean(xs) * mean(ys) - mean(xs*ys)) / ( mean(xs)*mean(xs) - mean(xs*xs) ) b = mean(ys) - m * mean(xs) return m, b
aspiringguru/sentexTuts
[ 1, 2, 1, 1, 1473483674 ]
def __init__(self): self.parser = optparse.OptionParser() self.set_options()
hcpss-banderson/py-tasc
[ 1, 1, 1, 2, 1452191848 ]
def set_options(self): """Use optparser to manage options"""
hcpss-banderson/py-tasc
[ 1, 1, 1, 2, 1452191848 ]
def parse(self): """Return the raw parsed user supplied values :rtype: dict[str, str] """
hcpss-banderson/py-tasc
[ 1, 1, 1, 2, 1452191848 ]
def manifest_location(self): """Return the location of the manifest file :rtype: str """
hcpss-banderson/py-tasc
[ 1, 1, 1, 2, 1452191848 ]
def manifest(self): """Get the parsed values from the manifest :rtype: dict[str, mixed] """
hcpss-banderson/py-tasc
[ 1, 1, 1, 2, 1452191848 ]
def destination(self): """Get the assembly location :rtype: str """
hcpss-banderson/py-tasc
[ 1, 1, 1, 2, 1452191848 ]
def extra_parameters(self): """Get extra parameters :rtype: dict[str, str] """ params_string = self.parse().extra_parameters
hcpss-banderson/py-tasc
[ 1, 1, 1, 2, 1452191848 ]
def tableAt(byte): return crc32(chr(byte ^ 0xff)) & 0xffffffff ^ FINALXOR ^ (INITXOR >> 8)
tholum/PiBunny
[ 198, 40, 198, 3, 1491360775 ]
def write_with_xml_declaration(self, file, encoding, xml_declaration): assert xml_declaration is True # Support our use case only file.write("<?xml version='1.0' encoding='utf-8'?>\n") p26_write(self, file, encoding=encoding)
SciLifeLab/genologics
[ 25, 39, 25, 9, 1346852014 ]
def __init__(self, baseuri, username, password, version=VERSION): """baseuri: Base URI for the GenoLogics server, excluding the 'api' or version parts! For example: https://genologics.scilifelab.se:8443/ username: The account name of the user to login as. ...
SciLifeLab/genologics
[ 25, 39, 25, 9, 1346852014 ]
def get(self, uri, params=dict()): "GET data from the URI. Return the response XML as an ElementTree." try: r = self.request_session.get(uri, params=params, auth=(self.username, self.password), headers=dict(acc...
SciLifeLab/genologics
[ 25, 39, 25, 9, 1346852014 ]
def upload_new_file(self, entity, file_to_upload): """Upload a file and attach it to the provided entity.""" file_to_upload = os.path.abspath(file_to_upload) if not os.path.isfile(file_to_upload): raise IOError("{} not found".format(file_to_upload)) # Request the storage spa...
SciLifeLab/genologics
[ 25, 39, 25, 9, 1346852014 ]
def post(self, uri, data, params=dict()): """POST the serialized XML to the given URI. Return the response XML as an ElementTree. """ r = requests.post(uri, data=data, params=params, auth=(self.username, self.password), headers={'conten...
SciLifeLab/genologics
[ 25, 39, 25, 9, 1346852014 ]
def check_version(self): """Raise ValueError if the version for this interface does not match any of the versions given for the API. """ uri = urljoin(self.baseuri, 'api') r = requests.get(uri, auth=(self.username, self.password)) root = self.parse_response(r) tag...
SciLifeLab/genologics
[ 25, 39, 25, 9, 1346852014 ]
def parse_response(self, response, accept_status_codes=[200]): """Parse the XML returned in the response. Raise an HTTP error if the response status is not 200. """ self.validate_response(response, accept_status_codes) root = ElementTree.fromstring(response.content) retur...
SciLifeLab/genologics
[ 25, 39, 25, 9, 1346852014 ]
def get_reagent_types(self, name=None, start_index=None): """Get a list of reqgent types, filtered by keyword arguments. name: reagent type name, or list of names. start_index: Page to retrieve; all if None. """ params = self._get_params(name=name, ...
SciLifeLab/genologics
[ 25, 39, 25, 9, 1346852014 ]
def get_researchers(self, firstname=None, lastname=None, username=None, last_modified=None, udf=dict(), udtname=None, udt=dict(), start_index=None, add_info=False): """Get a list of researchers, filtered by keyword arguments. firstn...
SciLifeLab/genologics
[ 25, 39, 25, 9, 1346852014 ]
def get_sample_number(self, name=None, projectname=None, projectlimsid=None, udf=dict(), udtname=None, udt=dict(), start_index=None): """Gets the number of samples matching the query without fetching every sample, so it should be faster than len(get_samples()""" params ...
SciLifeLab/genologics
[ 25, 39, 25, 9, 1346852014 ]
def get_artifacts(self, name=None, type=None, process_type=None, artifact_flag_name=None, working_flag=None, qc_flag=None, sample_name=None, samplelimsid=None, artifactgroup=None, containername=None, containerlimsid=None, reagent_label=None, ...
SciLifeLab/genologics
[ 25, 39, 25, 9, 1346852014 ]
def get_containers(self, name=None, type=None, state=None, last_modified=None, udf=dict(), udtname=None, udt=dict(), start_index=None, add_info=False): """Get a list of containers, filtered by keyword arguments. name: Containers name, ...
SciLifeLab/genologics
[ 25, 39, 25, 9, 1346852014 ]
def get_automations(self, name=None, add_info=False): """Get the list of configured automations on the system """ params = self._get_params(name=name) return self._get_instances(Automation, add_info=add_info, params=params)
SciLifeLab/genologics
[ 25, 39, 25, 9, 1346852014 ]