text
stringlengths
78
104k
score
float64
0
0.18
def discoverdevs(self): ''' Find all the pcap-eligible devices on the local system. ''' if len(self._interfaces): raise PcapException("Device discovery should only be done once.") ppintf = self._ffi.new("pcap_if_t * *") errbuf = self._ffi.new("cha...
0.003749
def subtract(self, curve2, new_obj=False): """ Method that calculates difference between 2 curves (or subclasses of curves). Domain of self must be in domain of curve2 what means min(self.x) >= min(curve2.x) and max(self.x) <= max(curve2.x). Might modify self, and can ret...
0.000966
def _check_path(self, src, path_type, dest=None, force=False): """Check a new destination path in the archive. Since it is possible for multiple plugins to collect the same paths, and since plugins can now run concurrently, it is possible for two threads to race in archive m...
0.000585
def readline(self): """Read a chunk of the output""" _LOGGER.info("reading line") line = self.read(self.line_length) if len(line) < self.line_length: _LOGGER.info("all lines read") return line
0.008197
def create_from(cls, backend): """ Create device specification with values in backend configuration. Args: backend(Backend): backend configuration Returns: DeviceSpecification: created device specification Raises: PulseError: when an invalid ba...
0.002614
def sample(self): """ Sample from M-H algorithm Returns ---------- chain : np.array Chains for each parameter mean_est : np.array Mean values for each parameter median_est : np.array Median values for each parameter upper_95...
0.010406
def update(self, friendly_name=values.unset, unique_name=values.unset, attributes=values.unset): """ Update the ChannelInstance :param unicode friendly_name: A human-readable name for the Channel. :param unicode unique_name: A unique, addressable name for the Channel. ...
0.003996
def repercent_broken_unicode(path): """ As per section 3.2 of RFC 3987, step three of converting a URI into an IRI, we need to re-percent-encode any octet produced that is not part of a strictly legal UTF-8 octet sequence. """ # originally from django.utils.encoding while True: try: ...
0.003591
def _create_service_api(credentials, service_name, version, developer_key=None, cache_discovery=False, http=None): """Builds and returns a cloud API service object. Args: credentials (OAuth2Credentials): Credentials that will be used to authenticate the API calls. ...
0.002111
def _adjust_n_years(other, n, month, reference_day): """Adjust the number of times an annual offset is applied based on another date, and the reference day provided""" if n > 0: if other.month < month or (other.month == month and other.day < reference_day): ...
0.002016
def find_course_and_crosslistings(self, partial): """Returns the given course and all other courses it is crosslisted with. """ course = self.find_course(partial) crosslisted = self.crosslisted_with(course.crn) return (course,) + tuple(map(self.find_course_by_crn, crossli...
0.006135
def iter_commands(self): """Iterator returning ImportCommand objects.""" while True: line = self.next_line() if line is None: if b'done' in self.features: raise errors.PrematureEndOfStream(self.lineno) break elif len...
0.001519
def expires(self): """Union[datetime.datetime, None]: Datetime at which the table will be deleted. Raises: ValueError: For invalid value types. """ expiration_time = self._properties.get("expirationTime") if expiration_time is not None: # expirati...
0.004132
def delete_event(self, widget, event, data=None): """ Event cancels the project creation """ if not self.close_win: if self.thread.isAlive(): dlg = self.gui_helper.create_message_dialog("Do you want to cancel project creation?", ...
0.006135
def _analyze(self): """ works out the updates to be performed """ if self.value is None or self.value == self.previous: pass elif self._operation == "append": self._append = self.value elif self._operation == "prepend": self._prepend = self.value ...
0.001774
def lnprob(self,theta): """ Logarithm of the probability """ global niter params,priors,loglike = self.params,self.priors,self.loglike # Avoid extra likelihood calls with bad priors _lnprior = self.lnprior(theta) if np.isfinite(_lnprior): _lnlike = self.lnlike...
0.026918
def node_detail(node_name): """ View one specific node """ token = session.get('token') node = nago.core.get_node(token) if not node.get('access') == 'master': return jsonify(status='error', error="You need master access to view this page") node = nago.core.get_node(node_name) return re...
0.005495
def stop(self): """Stop session.""" if self.transport: self.transport.write(self.method.TEARDOWN().encode()) self.transport.close() self.rtp.stop()
0.010256
def tx(self, *args, **kwargs): """ Executes a raw tx string, or get a new TX object to work with. Passing a raw string or list of strings will immedately transact and return the API response as a dict. >>> resp = tx('{:db/id #db/id[:db.part/user] :person/name "Bob"}') {db-before: db-after: tempids...
0.008414
def _is_string(thing): """Python character arrays are a mess. If Python2, check if **thing** is an :obj:`unicode` or a :obj:`str`. If Python3, check if **thing** is a :obj:`str`. :param thing: The thing to check. :returns: ``True`` if **thing** is a string according to whichever version ...
0.006579
def to_ints(version): """ Turn version string into a numeric representation for easy comparison. Undeclared point versions are assumed to be 0. :param version: a NSS version string :return: array of [major, minor, point, pointpoint, tag value] """ # Example strin...
0.003255
def partial_trace(self, qubits: Qubits) -> 'Channel': """Return the partial trace over the specified qubits""" vec = self.vec.partial_trace(qubits) return Channel(vec.tensor, vec.qubits)
0.009524
def GetNextNode(self, modes, innode): """GetNextNode returns the outnode that matches an element from the modes list, starting at the given innode. This method isnt actually used, its just a helper method for debugging purposes. """ nodes = N.where(self.innodes == innode...
0.009577
def reply_to_mentions(self): """ For every mention since since_id, create a message with the provider and use it to reply to the mention :return: Number of mentions processed """ since_id = self.since_id.get() kwargs = {'count': 200} if since_id: ...
0.004425
def all_in(self, name) -> iter: """Yield all (power) nodes contained in given (power) node""" for elem in self.inclusions[name]: yield elem yield from self.all_in(elem)
0.009615
def is_device_connected(self, ip): """ Check if a device identified by it IP is connected to the box :param ip: IP of the device you want to test :type ip: str :return: True is the device is connected, False if it's not :rtype: bool """ all_devices = self....
0.004082
def copy(self, coords=None, label=None): """ Create a shallow copy of the LineString object. Parameters ---------- coords : None or iterable of tuple of number or ndarray If not ``None``, then the coords of the copied object will be set to this value. ...
0.002801
def get_episode_title(episode: Episode) -> int: """Get the episode title. Japanese title is prioritized. """ for title in episode.titles: if title.lang == 'ja': return title.title else: return episode.titles[0].title
0.003774
def addparent(args): """ %prog addparent file.gff Merge sister features and infer parents. """ p = OptionParser(addparent.__doc__) p.add_option("--childfeat", default="CDS", help="Type of children feature") p.add_option("--parentfeat", default="mRNA", help="Type of merged feature") p.se...
0.0031
def GetFileObjectByPathSpec(self, path_spec): """Retrieves a file-like object for a path specification. Args: path_spec (PathSpec): a path specification. Returns: FileIO: a file-like object or None if not available. """ file_entry = self.GetFileEntryByPathSpec(path_spec) if not fil...
0.005195
def element_to_objects( element: etree.ElementTree, sender: str, sender_key_fetcher:Callable[[str], str]=None, user: UserType =None, ) -> List: """Transform an Element to a list of entities recursively. Possible child entities are added to each entity ``_children`` list. :param tree: Element :...
0.003827
def run(self, *args, **kwargs): """ Deal with the incoming packets """ while True: try: timestamp, ip_p = self._queue.popleft() src_ip = get_ip(ip_p, ip_p.src) dst_ip = get_ip(ip_p, ip_p.dst) src = intern('%s:%s' % (src_ip, ip...
0.001696
def draw_progress_bar(cb, message, value, max_value): """ :type cb: cursebox.Cursebox """ m_x = cb.width // 2 m_y = cb.height // 2 w = len(message) + 4 h = 3 draw_box(cb, m_x - w // 2, m_y - 1, w, h) message = " %s " % message i = int((value / max_value) * (len(message) + 2)) ...
0.002392
def create(example): """Create a copy of the given example.""" try: this_dir = os.path.dirname(os.path.realpath(__file__)) example_dir = os.path.join(this_dir, os.pardir, "examples", example) shutil.copytree(example_dir, os.path.join(os.getcwd(), example)) log("Example created.",...
0.001961
def _parse_tddft(self): """Parse the output resulted from a tddft calculation. """ text = self.text energies = sections("SUMMARY OF TDDFT RESULTS", "DONE WITH TD-DFT EXCITATION ENERGIES", text) lines = energies[0]....
0.027304
def _postprocess_somatic(in_file, paired): """Post-process somatic calls to provide standard output. - Converts SGT and NT into standard VCF GT fields - Replace generic TUMOR NORMAL names in VCF with sample names. """ out_file = in_file.replace(".vcf.gz", "-fixed.vcf") if not utils.file_exists(...
0.003568
def get_view_by_env(self, env): """ Returns the view of `env`. """ version, data = self._get(self._get_view_path(env)) return data
0.011696
def action_checklist_report_pdf_extractor(impact_report, component_metadata): """Extracting action checklist of the impact layer to its own report. For PDF generations :param impact_report: the impact report that acts as a proxy to fetch all the data that extractor needed :type impact_report: ...
0.000767
def get_id(self): """Returns the id of the resource.""" if self._id_attr is None or not hasattr(self, self._id_attr): return None return getattr(self, self._id_attr)
0.00995
def delete_resource_scenario(scenario_id, resource_attr_id, quiet=False, **kwargs): """ Remove the data associated with a resource in a scenario. """ _check_can_edit_scenario(scenario_id, kwargs['user_id']) _delete_resourcescenario(scenario_id, resource_attr_id, suppress_error=quiet)
0.009709
def update(self, unique_name=values.unset, callback_method=values.unset, callback_url=values.unset, friendly_name=values.unset, rate_plan=values.unset, status=values.unset, commands_callback_method=values.unset, commands_callback_url=values.unset, sms_fallback...
0.007521
def get_case24_ieee_rts(): """ Returns the 24 bus IEEE Reliability Test System. """ path = os.path.dirname(pylon.__file__) path = os.path.join(path, "test", "data") path = os.path.join(path, "case24_ieee_rts", "case24_ieee_rts.pkl") case = pylon.Case.load(path) # FIXME: Correct generator n...
0.002538
def _get_programs_dict(): """ Builds and returns programs dictionary This will have to import the packages in COLLABORATORS_S in order to get their absolute path. Returns: dictionary: {"packagename": [ExeInfo0, ...], ...} "packagename" examples: "f311.explorer", "numpy" """ global...
0.004264
def _get_path(self, filename): """Creates the cache directory if it doesn't already exist. Returns the full path to the specified file inside the cache directory.""" tempdir = settings._temp_directory if not os.path.exists(tempdir): os.makedirs(tempdir) return os.path...
0.005814
def add_to_dict(self, text): """ Generate word n-tuple and next word probability dict """ n = self.n sentences = re.split(r'(?<!\w\.\w.)(?<![A-Z][a-z]\.)(?<=\.|\?|!)\s', text) # '' is a special symbol for the start of a sentence like pymarkovchain uses for sentence in sentences:...
0.00578
def rpXRDS(request): """ Return a relying party verification XRDS document """ return util.renderXRDS( request, [RP_RETURN_TO_URL_TYPE], [util.getViewURL(request, finishOpenID)])
0.004587
def decode(self, data: bytes) -> bytes: """Decodes data according the specified Content-Encoding or Content-Transfer-Encoding headers value. """ if CONTENT_TRANSFER_ENCODING in self.headers: data = self._decode_content_transfer(data) if CONTENT_ENCODING in self.header...
0.005155
def stor(ftp=None): """Same as ftplib's storbinary() but just sends dummy data instead of reading it from a real file. """ if ftp is None: ftp = connect() quit = True else: quit = False ftp.voidcmd('TYPE I') with contextlib.closing(ftp.transfercmd("STOR " + TESTFN)) a...
0.001669
def calc_drm(skydir, ltc, event_class, event_types, egy_bins, cth_bins, nbin=64): """Calculate the detector response matrix.""" npts = int(np.ceil(128. / bins_per_dec(egy_bins))) egy_bins = np.exp(utils.split_bin_edges(np.log(egy_bins), npts)) etrue_bins = 10**np.linspace(1.0, 6.5, nbin * ...
0.001416
def set_ttl(self): """Parses summary and set value""" try: self.ttl = self.soup.find('ttl').string except AttributeError: self.ttl = None
0.010811
def check(self, paths): """ Return list of error dicts for all found errors in paths. The default implementation expects `tool`, and `tool_err_re` to be defined. tool: external binary to use for checking. tool_err_re: regexp that can match output of `tool` -- must provi...
0.00321
def Nu_vertical_cylinder_Eigenson_Morgan(Pr, Gr, turbulent=None): r'''Calculates Nusselt number for natural convection around a vertical isothermal cylinder according to the results of [1]_ correlated by [2]_, presented in [3]_ and in more detail in [4]_. .. math:: Nu_H = 0.48 Ra_H^{0.25},\; 10...
0.001946
def _get_many(queue_, max_items=None, max_latency=0): """Get multiple items from a Queue. Gets at least one (blocking) and at most ``max_items`` items (non-blocking) from a given Queue. Does not mark the items as done. Args: queue_ (~queue.Queue`): The Queue to get items from. max_item...
0.000912
def checkArgs(args): """Checks the arguments and options. :param args: an object containing the options of the program. :type args: argparse.Namespace :returns: ``True`` if everything was OK. If there is a problem with an option, an exception is raised using the :py:class:`ProgramError` clas...
0.000478
def add_subgroups(self, subgroups): """ Update the subgroups for this track. Note that in contrast to :meth:`CompositeTrack`, which takes a list of :class:`SubGroupDefinition` objects representing the allowed subgroups, this method takes a single dictionary indicating the partic...
0.002345
def absent(name, skip_final_snapshot=None, final_db_snapshot_identifier=None, tags=None, wait_for_deletion=True, timeout=180, region=None, key=None, keyid=None, profile=None): ''' Ensure RDS instance is absent. name Name of the RDS instance. skip_final_snapshot Wh...
0.000441
def get_user_info(self, user_id, **kwargs): """ Retrieves information about a user, the result is only limited to what the callee has access to view. :param user_id: :param kwargs: :return: """ return GetUserInfo(settings=self.settings, **kwargs).call( ...
0.005319
def get_token(self): """ Gets the authorization token """ payload = {'grant_type': 'client_credentials', 'client_id': self.client_id, 'client_secret': self.client_secret} r = requests.post(OAUTH_ENDPOINT, data=json.dumps(payload), headers={'content-type': 'application/js...
0.015658
def update_record(self, name, address, ttl=60): """Updates a record, creating it if not exists.""" record_id = self._get_record(name) if record_id is None: return self._create_record(name, address, ttl) return self._update_record(record_id, name, address, ttl)
0.006579
def _connect(self): "Connects a socket to the server using options defined in `config`." self.socket = socket.socket() self.socket.connect((self.config['host'], self.config['port'])) self.cmd("NICK %s" % self.config['nick']) self.cmd("USER %s %s bla :%s" % (self.c...
0.010471
def get_minion_grains(self): ''' Get grains data for the targeted minions, either by fetching the cached minion data on the master, or by fetching the grains directly on the minion. By default, this function tries hard to get the grains data: - Try to get the cached ...
0.002338
def mask(self, predicates, new_value): """Summary Args: predicates (TYPE): Description new_value (TYPE): Description Returns: TYPE: Description """ if isinstance(predicates, SeriesWeld): predicates = predicates.expr return...
0.003454
def explanation(self, index, extra): """ >>> d = DistanceAlphabet('D', NPOSTFIX=2, NDIRECT=10) >>> d[55].explanation(13) '11[1101]01-5: [0]+240' """ extraBits = self.extraBits(index) extraString = '[{:0{}b}]'.format(extra, extraBits) return '{0}: [{1[0]}]{...
0.00655
def sanitize(self, val): """Given a Variable and a value, cleans it out""" if self.type == NUMBER: try: return clamp(self.min, self.max, float(val)) except ValueError: return 0.0 elif self.type == TEXT: try: retu...
0.005199
def register_identity(self, id_stmt): """Register `id_stmt` with its base identity, if any. """ bst = id_stmt.search_one("base") if bst: bder = self.identity_deps.setdefault(bst.i_identity, []) bder.append(id_stmt)
0.007407
def AUNP_calc(classes, P, POP, AUC_dict): """ Calculate AUNP. :param classes: classes :type classes : list :param P: condition positive :type P : dict :param POP: population :type POP : dict :param AUC_dict: AUC (Area under the ROC curve) for each class :type AUC_dict : dict ...
0.001912
def visualize_learning_result(self, state_key): ''' Visualize learning result. ''' x, y = state_key map_arr = copy.deepcopy(self.__map_arr) goal_point_tuple = np.where(map_arr == self.__end_point_label) goal_x, goal_y = goal_point_tuple map_arr[y][x] = "@"...
0.002729
def sig(self, name, dtype=BIT, clk=None, syncRst=None, defVal=None): """ Create new signal in this context :param clk: clk signal, if specified signal is synthesized as SyncSignal :param syncRst: synchronous reset signal """ if isinstance(defVal, RtlSignal): ...
0.001276
def patterson_fst(aca, acb): """Estimator of differentiation between populations A and B based on the F2 parameter. Parameters ---------- aca : array_like, int, shape (n_variants, 2) Allele counts for population A. acb : array_like, int, shape (n_variants, 2) Allele counts for p...
0.001276
def get(self): """Get graphics options.""" return {k:v for k,v in list(self.options.items()) if k in self._allowed_graphics}
0.035714
def get_parser(): """Return the parser object for this script.""" project_root = utils.get_project_root() # Get latest (raw) dataset dataset_folder = os.path.join(project_root, "raw-datasets") latest_dataset = utils.get_latest_in_folder(dataset_folder, "raw.pickle") from argparse import Argume...
0.000934
def _to_dict(self): """Return a json dictionary representing this model.""" _dict = {} if hasattr(self, 'credentials') and self.credentials is not None: _dict['credentials'] = [x._to_dict() for x in self.credentials] return _dict
0.007326
def sign_execute_deposit(deposit_params, private_key, infura_url): """ Function to execute the deposit request by signing the transaction generated from the create deposit function. Execution of this function is as follows:: sign_execute_deposit(deposit_params=create_deposit, private_key=eth_privat...
0.007001
def add_date_time_original(self, date_time, time_format='%Y:%m:%d %H:%M:%S.%f'): """Add date time original.""" try: DateTimeOriginal = date_time.strftime(time_format)[:-3] self._ef['Exif'][piexif.ExifIFD.DateTimeOriginal] = DateTimeOriginal except Exception as e: ...
0.010336
def sampler(self, n_samples, duration, random_state=None): '''Construct a sampler object for this pump's operators. Parameters ---------- n_samples : None or int > 0 The number of samples to generate duration : int > 0 The duration (in frames) of each sa...
0.00202
def subset_bbox(da, lon_bnds=None, lat_bnds=None, start_yr=None, end_yr=None): """Subset a datarray or dataset spatially (and temporally) using a lat lon bounding box and years selection. Return a subsetted data array for grid points falling within a spatial bounding box defined by longitude and latitudina...
0.005161
def get_latex_environment(self, pos, environmentname=None): r""" Parses the latex content given to the constructor (and stored in `self.s`), starting at position `pos`, to read a latex environment. Reads a latex expression enclosed in a ``\begin{environment}...\end{environment}`...
0.005706
def expected_dense_regression_log_prob(A, Sigma, stats): """ Expected log likelihood of p(y | x) where y ~ N(Ax, Sigma) and expectation is wrt q(y,x). We only need expected sufficient statistics E[yy.T], E[yx.T], E[xx.T], and n, where n is the number of observations. :param A: r...
0.001116
def _process_neg_flux(self, x, y): """Remove negative flux.""" if self._keep_neg: # Nothing to do return y old_y = None if np.isscalar(y): # pragma: no cover if y < 0: n_neg = 1 old_x = x old_y = y ...
0.001916
def _calc_eta(self): """ Calculates estimated time left until completion. """ elapsed = self._elapsed() if self.cnt == 0 or elapsed < 0.001: return None rate = float(self.cnt) / elapsed self.eta = (float(self.max_iter) - float(self.cnt)) / rate
0.006757
def augment_on_message(self, handler): """ :return: a function wrapping ``handler`` to refresh timer for every non-event message """ def augmented(msg): # Reset timer if this is an external message is_event(msg) or self.refresh() ...
0.003636
def local_outgoing_hook(handler=None, coro=None): """add a callback to run every time a greenlet is switched away from :param handler: the callback function, must be a function taking 2 arguments: - an integer indicating whether it is being called as an incoming (1) hook or as an out...
0.000867
def getEmpTraitCorrCoef(self): """ Returns the empirical trait correlation matrix """ cov = self.getEmpTraitCovar() stds=SP.sqrt(cov.diagonal())[:,SP.newaxis] RV = cov/stds/stds.T return RV
0.016327
def posix_to_dt_str(posix): """Reverse of str_to_datetime. This is used by GCS stub to generate GET bucket XML response. Args: posix: A float of secs from unix epoch. Returns: A datetime str. """ dt = datetime.datetime.utcfromtimestamp(posix) dt_str = dt.strftime(_DT_FORMAT) return dt_str + '...
0.015337
def parse_tabular_string(search_string, header_keys, delimiter=None, merge_list=None): ''' Given a string in a tabular format, parse it and return a dictionary @args: search_string: This is a string in tabular format (e.g...
0.000669
def _language(self, item): """Returns the language of the extracted article by analyzing metatags and inspecting the visible text with langdetect""" response = item['spider_response'].body root = html.fromstring(response) # Check for lang-attributes lang = root.get('lan...
0.003462
def get(self, oid): """Use PySNMP to perform an SNMP GET operation on a single object. :param oid: The OID of the object to get. :raises: SNMPFailure if an SNMP request fails. :returns: The value of the requested object. """ try: results = self.cmd_gen.getCmd...
0.001589
def check(self): """Returns False if no datasets exists or if one or more of the datasets are empty""" if len(self.status_datasets) == 0: return False if all(self.status_datasets): return True return False
0.011111
def strip_xml_declaration(file_or_xml): """ Removes XML declaration line from file or string passed in. If file_or_xml is not a file or string, it is returned as is. """ xml_content = _xml_content_to_string(file_or_xml) if not isinstance(xml_content, string_types): return xml_content ...
0.002193
def _get_ipv6addrs(self): """ Returns the IPv6 addresses associated with this NIC. If no IPv6 addresses are used, empty dict is returned. """ addrs = self._get_addrs() ipv6addrs = addrs.get(netifaces.AF_INET6) if not ipv6addrs: return {} return...
0.006006
def kernel_push(self, kernel_push_request, **kwargs): # noqa: E501 """Push a new kernel version. Can be used to create a new kernel and update an existing one. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=Tr...
0.001951
def writeDescription(self): ''' Write the current (possibly modified) component description to a package description file in the component directory. ''' ordered_json.dump(os.path.join(self.path, self.description_filename), self.description) if self.vcs: self.vcs....
0.008333
def set_led(self, red=0, green=0, blue=0): """Sets the LED color. Values are RGB between 0-255.""" self._led = (red, green, blue) self._control()
0.011834
def text_entry(self, ucs, name): """ Display a single column segment row describing ``(ucs, name)``. :param ucs: target unicode point character string. :param name: name of unicode point. :rtype: unicode """ style = self.screen.style if len(name) > style....
0.00116
def save_tabs_when_changed(func): """Decorator for save-tabs-when-changed """ def wrapper(*args, **kwargs): func(*args, **kwargs) log.debug("mom, I've been called: %s %s", func.__name__, func) # Find me the Guake! clsname = args[0].__class__.__name__ g = None ...
0.001171
def __init_vertical_plot(self): """ set up the vertical profile plot Returns ------- """ # clear the plot if lines have already been drawn on it if len(self.ax2.lines) > 0: self.ax2.cla() # set up the vertical profile plot self.ax2.set...
0.002924
def on_add(self, widget, new_dict=False): """" Adds a new entry to the semantic data of a state. Reloads the tree store. :param widget: The source widget of the action :param bool new_dict: A flag to indicate if the new value is of type dict :return: """ self.semantic_da...
0.005659
def download(self, dist): """ Download file into location. """ filename = dist['basename'] requests_handle = self.aserver_api.download( self.username, self.notebook, dist['version'], filename ) if not os.path.exists(os.path.dirname(filename)): ...
0.003328
def parse_chained(self, args=None): """ Parse the argument directly to the function used for setup This function parses the command line arguments to the function that has been used for the :meth:`setup_args`. Parameters ---------- args: list The ar...
0.002915
def avail_sizes(conn=None, call=None): ''' Return a dict of all available VM images on the cloud provider with relevant data ''' if call == 'action': raise SaltCloudSystemExit( 'The avail_sizes function must be called with ' '-f or --function, or with the --list-sizes...
0.001605