content
stringlengths
22
815k
id
int64
0
4.91M
def read_rapsearch_aln(rpfile, linestocount, verbose=False): """ Read the rapsearch file and just return the query lines :param rpfile: rapsearch file to read :param linestocount: how many query lines to count :param verbose: more output :return: a query line """ if rpfile.endswith(...
74,800
def acosine(a,b,weights): """Distance between two points based on the pearson correlation coefficient. By treating each data point as half of a list of ordered pairs it is possible to caluclate the pearson correlation coefficent for the list. Since the pearson correlation coefficent for a sample ...
74,801
def conv_3x3(inputs, downsample=False): """ conv_3x3 """ return conv_base(inputs, (3, 3), downsample=downsample)
74,802
def column(matrix, i): """ Returning all the values in a specific columns Parameters: X: the input matrix i: the column Return value: an array with desired column """ return [row[i] for row in matrix]
74,803
def cubicinout(x): """Return the value at x of the 'cubic in out' easing function between 0 and 1.""" if x < 0.5: return 4 * x**3 else: return 1/2 * ((2*x - 2)**3 + 2)
74,804
def assert_allclose( actual: numpy.ndarray, desired: numpy.ndarray, rtol: float, atol: int ): """ usage.scipy: 15 usage.skimage: 1 usage.sklearn: 2 usage.statsmodels: 36 """ ...
74,805
def get_sparse_graph(graph): """ Returns a sparse adjacency matrix in CSR format :param graph: undirected NetworkX graph :return: Scipy sparse adjacency matrix """ return nx.to_scipy_sparse_matrix(graph, format='csr', dtype=np.float, nodelist=graph.nodes)
74,806
def run_tap_query(stcs, start_time=None, end_time=None, mission=None, service='http://vao.stsci.edu/CAOMTAP/TapService.aspx', maxrec=100, verbose=False): """ Handler for TAP service. Parameters ---------- stcs : str Polygon to search for start_time : float MJD ...
74,807
def make_door_state(door_status: Optional[Door.Status]) -> State: """makes a simple state with a door""" grid = Grid.from_shape((2, 1)) if door_status: grid[0, 0] = Door(door_status, Color.RED) agent = Agent(Position(1, 0), Orientation.N) return State(grid, agent)
74,808
def remove_duplicates(string: str) -> str: """ Remove duplicate characters in a string :param string: :return: """ without_duplicates = "" for letter in string: if letter not in without_duplicates: without_duplicates += letter return without_duplicates
74,809
def interferometer(U): """Interferometer. Args: U (array): unitary matrix Returns: array: symplectic transformation matrix """ X = U.real Y = U.imag S = np.vstack([np.hstack([X, -Y]), np.hstack([Y, X])]) return S
74,810
def admin(): """administrate object storage."""
74,811
def make_tfd_dataframe(tfd_data_flat): """ This is just a quick function to make a nice DataFrame from the data. It makes it easy to manage. Syntax: tfd_data_df = make_tfd_dataframe(tfd_data_flat) Inputs: tfd_data_flat - Dictionary containing information about the file and channel along wit...
74,812
def process_medians(helst, shelst, authlst): """ >>> medians_he = [12, 130, 0, 12, 314, 18, 15, 12, 123] >>> medians_she = [123, 52, 12, 345, 0, 13, 214, 12, 23] >>> books = ["a", "b", "c", "d", "e", "f", "g", "h", "i"] >>> process_medians(helst=medians_he, shelst=medians_she, authlst=books) {'...
74,813
def recalib(spec, figfilename, title, ref_spec, linelist, ref_calib, aperture_koffset=(1, 0), pixel_koffset=(1, None), xorder=None, yorder=None, maxiter=None, clipping=None, window_size=None, q_threshold=None, direction=None, fit_filter=None ): """Re-calibrate the wavelength of an in...
74,814
def encode_payload_values(payload_dict): """This function URL-encoded any string-formatted payload values. .. versionadded:: 3.2.0 :param payload_dict: The JSON payload for an API call in dictionary format :type payload_dict: dict :returns: The JSON payload with URL-encoded string values """ ...
74,815
def sequential_clustering(singleton_list, num_clusters): """ Take a data table and create a list of clusters by partitioning the table into clusters based on its ordering Note that method may return num_clusters or num_clusters + 1 final clusters """ cluster_list = [] clus...
74,816
def test_cimport_support(): """Test to ensure cimports (Cython style imports) work""" test_input = """ import os import sys import cython import platform import traceback import time import types import re import copy import inspect # used by JavascriptBindings.__SetObjectMethods() import urllib import json imp...
74,817
def _extract_fits(obj, hdu=0, unit=None, hdu_uncertainty=_HDU_UNCERT, hdu_mask=_HDU_MASK, unit_key=_UNIT_KEY): """Extract data and meta from FITS files and HDUs.""" if isinstance(obj, (str, bytes, PathLike)): hdul = fits.open(obj) elif isinstance(obj, imhdus): hdul = fits.H...
74,818
def test_notify_matrix_url_parsing(): """ API: NotifyMatrix() URL Testing """ result = plugins.NotifyMatrix.parse_url( 'matrix://user:token@localhost?to=#room') assert isinstance(result, dict) is True assert len(result['targets']) == 1 assert '#room' in result['targets'] result...
74,819
def normalize_point_cloud(inputs): """ input: pc [N, P, 3] output: pc, centroid, furthest_distance """ #print("shape",input.shape) C = inputs.shape[-1] pc = inputs[:,:,:3] if C > 3: nor = inputs[:,:,3:] centroid = np.mean(pc, axis=1, keepdims=True) pc = inputs[:,:,:3] - ...
74,820
def info(country_name): """Brief information about a country.""" country = return_country(country_data, country_name) currency = return_country(currency_data, country_name) calling_code = return_country(country_calling_code, country_name) if currency is None and country is None and calling_...
74,821
def aCoulomb(r, t=0, charge=-1): """ Coulomb acceleration calculation. Input: r, t --Spatiotemporal coordinates. charge --Coulomb charge. (Default: -1) Output: aCoulomb --Acceleration vector. """ return(r*charge/blas.dznrm2(r)**3)
74,822
def done(ctx, grades): """Output includes only modules that are done and dusted.""" commands.summarize_done(grades)
74,823
def add_to_trade(driver, item): """(WebDriver, str) -> None Searches for the item in the steam trade menu and adds it to the trade. """ if 'keys' not in item: # get the web elements for the filters that are needed filters = {} for next_filter in driver.find_elements_by_class_name...
74,824
def visualize_network(graph_network, file_name, communities, path, edge_color): """ Visualizes communities and potential paths of the network. :param graph_network: graph of network to be visualized - networkx :param file_name: name of output file with the visualization :param communities: list of ...
74,825
def plot_map(cities, neurons, iteration): """ Generates the required map of cities and neurons at a given moment and stores the result in a png image. The map contains all the cities represented as red dots and all the neurons as green, crossed by a line dots. The method plots the iteration in which...
74,826
def get_finite(arr): """ Select only finite elements of an array. """ return arr[np.isfinite(arr)]
74,827
def parse_args(): """ Parses command line args Returns: The argparse namespace """ parser = argparse.ArgumentParser(description="Copies packer artifacts from the packer manifest output to terraform input variables.") parser.add_argument('--enterprise', dest='enterprise', action='store_t...
74,828
def get_x_from_index(index: int) -> int: """Compute the x-coordinate with the provided x index. This method compute the x coordinate associated with the given x index. The returned value has the same dimension as the constants provided in _constants.py. Parameters: index (int): The circuit...
74,829
def to_numpy(array, allow_missing=True): """ Converts `array` (many types supported, including all Awkward Arrays and Records) into a NumPy array, if possible. If the data are numerical and regular (nested lists have equal lengths in each dimension, as described by the #type), they can be losslessl...
74,830
def urlparse(fh, part=None, query_params=None, decode=False, **kwargs): """URLParse""" _yield_func = lambda x: x if query_params and part == 'query': if query_params.find(',') == -1: _yield_func = lambda x: val.get(query_params, (None,))[0] else: # Multiple query...
74,831
def csvLayerNames(layer_path): """ Get names of layers stored as csv files. """ layer_names = glob.glob(os.path.join(layer_path, "*.csv")) xx = [os.path.basename(i) for i in layer_names] return xx
74,832
def module_property(func): """Decorator to turn module functions into proerties. Function names must be prefixed with an underscore""" module = sys.modules[func.__module__] def base_getattr(name): raise AttributeError( f"module '{module.__name__}' has no attribute '{name}'") ol...
74,833
def coeff_generator(style, func): """Make a Coefficient""" if func == "f": base = f else: base = g if style == "func": return coefficient(base, args=args) if style == "array": return coefficient(base(tlist, **args), tlist=tlist) if style == "arraylog": re...
74,834
def start_assessment_run(assessmentTemplateArn=None, assessmentRunName=None): """ Starts the assessment run specified by the ARN of the assessment template. For this API to function properly, you must not exceed the limit of running up to 500 concurrent agents per AWS account. See also: AWS API Documentatio...
74,835
def load_imagenet_meta(meta_path): """It reads ImageNEt metadata from ILSVRC 2012 dev tool file Args: meta_path: path to ImageNet metadata file Returns: wnids: list of ImageNet labels(as strings) words: list of words(a...
74,836
def _static_folder_path(static_url, static_folder, static_asset, prefix=''): """ Returns a path to a file based on the static folder, and not on the filesystem holding the file. Returns a path relative to static_url for static_asset """ # first get the asset path relative to the static folder...
74,837
def get_df_by_month(df, month): """Return .""" cols = get_column_by_month(df, month) basic = ['uid', 'age', 'sex', 'active_date', 'limit'] dates_col = [ACTIVE_MONTH, ACTIVE_YEAR, ACTIVE_DOW] # this get sum of loans of 8,9,10,11 cols_12_cum = get_column_by_month(df, '12') cols_12_cum.remove('...
74,838
def save_image_and_create_or_update_post_association(image, post_id): """ Save image and associate it with the post If the post already has an image associated with it, that association and file are deleted. :param image: FileStorage object that is attached to the request when up...
74,839
def delete(name, profile, region): """Delete parameters with <name>.""" output, err = delete_params(name, profile, region) # Print if specified otherwise return output if output: click.echo(tabulate({'Deleted Parameters': output}, headers='keys', tablefmt='grid')) if err: click.echo(...
74,840
def mock_protocol_engine(decoy: Decoy) -> ProtocolEngine: """Get a mock EngineStore interface.""" return decoy.mock(cls=ProtocolEngine)
74,841
def wrap_render_to_string(f): """ decorator for django.template.loader.render_to_string """ @wraps(f) def wrapper(template_name, context=None, request=None, *args, **kwargs): if request is not None and has_variant(request): template_name = get_templates(template_name, get_variant(reques...
74,842
def dumps(dict_): """ Converts dictionaries to indented JSON for readability. Args: dict_ (dict): The dictionary to be JSON encoded. Returns: str: JSON encoded dictionary. """ string = json.dumps(dict_, indent=4, sort_keys=True) return string
74,843
def trend(hot_trend_url, count, **kwargs): """ get trend result :return: """ offset = 0 while True: common_parameter['cursor'] = str(offset) result = fetch(hot_trend_url, params=common_parameter, **kwargs) category_list = result.get('category_list') datetime = par...
74,844
def camel_case_to_snake_case(name): """ HelloWorld -> hello_world """ s1 = _FIRST_CAP_RE.sub(r'\1_\2', name) return _ALL_CAP_RE.sub(r'\1_\2', s1).lower()
74,845
def num_nets_provisioned(context, project_id): """Returns number of networks for a given tennat. :param project_id: globally unique neutron tenant identifier """ return context.session.query(db_models.AristaProvisionedNets). \ filter_by(project_id=project_id).count()
74,846
def csundir_vect(time_in): """ Calculate the direction of the sun. Parameters ---------- time_in: list of float Time array. Returns ------- gst: list of float Greenwich mean sideral time (radians). slong: list of float Longitude along ecliptic (radians). ...
74,847
def get_parsable_list(path: str, name: str) -> list: """ Generate a list of parsable files. Args: path (str): a path to expected Bactopia results name (str): the name of sample to test Returns: list: information about the status of parsable files """ import os parsa...
74,848
def process_image(img,skip_dilate=False): """Uses a blurring function, adaptive thresholding and dilation to expose the main features of an image.""" # Gaussian blur with a kernal size (height, width) of 9. # Note that kernal sizes must be positive and odd and the kernel must be square. proc = cv2.Gaus...
74,849
def sample_game(**params): """Create and return a sample game""" defaults = { 'igdb_id': 1, 'name': 'Mass Effect', 'summary': 'best game ever', 'rating': 90, 'first_release_date': datetime.datetime.fromtimestamp(1317945600) } defaults.update(params) return Ga...
74,850
def test_rec_sum_raises(): """ rec_sum raises tests""" recursion.rec_sum(-4) recursion.rec_sum('foo') recursion.rec_sum('1000')
74,851
def minkowski_distance(dataset=None, x=None, y=None, p_value=None): """generalization of the euclidean and manhattan distances. :param dataset: two object dataset with numeric attributes :param x: list of first object's numeric attributes :param y: list of second object's numeric attributes :return:...
74,852
def most_symmetric_integer_factorization(N): """ Calculates the "most symmetric" integer factorization of N. This is the closest two integer factors of N. If N is a square number, the integer factorization is "symmetric" and (sqrt(N), sqrt(N)) is the most "symmetric" factorization. Args: N:...
74,853
def alias_version(func): """Wrapper function to support aliasing of SPICE body names or codes. """ if hasattr(func, 'alias'): return func.alias if not hasattr(func, 'ALIAS_ARGS'): alias_args = {} for k in range(len(func.ARGNAMES)): sig = func.SIGNATURE[k] ...
74,854
def make_subreads_bam_of_zmws_in_txt(in_txt, in_bam_fofn, out_prefix, dry_run=False): """Give a zmws.txt file and a fofn of bam files where reads in fasta file are extracted, return subreads.bam file which only contains subreads of zmws. e.g., zmws.txt file contains zmw names or read names ('movie...
74,855
def count_nucleotides(lines: List[str]) -> str: """ :param lines: A line, in a list representing DNA sequence :return: Four numbers separated by spaces - respective number of A, C, G and T nucleotides in input """ # only one sequence is expected dna_sequence, = lines dna_strand = DNA(dna_seq...
74,856
def parsedir(directory, parsed, files, blocked, exts=('.torrent',), return_metainfo=False, errfunc=_errfunc): """Parse bencoded files in a directory structure. Parameters str - path of directory {str: {str: *}} - dictionary, keyed by sha hash of encoded info dic...
74,857
def create_call_event(owner_imsi, from_imsi, from_number, to_imsi, to_number, old_balance, cost, kind, reason, tariff, call_duration, billsec): """Creates a call event with data attached to the owner_imsi. This event can be created for outgoing and incoming calls. F...
74,858
def CreateModelPart(meshes): """Creates a ModelPart given meshes as input""" logger.debug('Calling "CreateModelPart"') model_part = ModelPart() geometries_io.GeometriesIO.AddMeshes(model_part, meshes) return model_part
74,859
def jpeg_linqual(quality): """ See int jpeg_quality_scaling(int quality) in libjpeg-turbo source (file ijg/jcparam.c). Convert quality rating to percentage scaling factor used to scale the quantization table. """ quality = max(quality, 1) quality = min(quality, 100) if quality < 50: ...
74,860
def pytest_funcarg__content(request): """ The content for the test document as string. By default, the content is taken from the argument of the ``with_content`` marker. If no such marker exists, the content is build from the id returned by the ``issue_id`` funcargby prepending a dash before the i...
74,861
def main(): """ When user inputs 4*4 letters, the program will find all vocabularies. """ start = time.time() #################### read_dictionary() boggle_letter = [] # 將字母盤存成一個list count = [0] # 總共找到的單字數 for j in range(4): letter = input(f'{j+1} row of letters:') line_lst = [] if len(letter) < 4:...
74,862
def dict_to_ul(s): """ Helper to convert recursively dict elements to an html unsorted list """ app.logger.debug("Flattening %s" % s) result = '<ul style="padding-left:2em">' result = dict_to_li(s, result) app.logger.debug("Result of flattening: %s" % result) return str(result)
74,863
def get_stationary_distribution(scc, reactions, epsilon = 1e-5): """ Calculate the stationary distribution of complexes in a SCC. Returns: dict: Mapping of complexes to stationary distribution (flt). """ log.debug(f"Calculating stationary distribution for scc: {[x.name for x in scc]}") scc...
74,864
def findParentName(parentCollection, parentCollectionName): """ Recursive function to find the containing parent collections of a collection or resource. """ if os.path.split(parentCollection)[1] == os.path.split(path)[1]: # print (os.path.split(parentCollection)) return parentCollect...
74,865
def _apply_weighting(F, loss, weight=None, sample_weight=None): """Apply weighting to loss. Parameters ---------- loss : Symbol The loss to be weighted. weight : float or None Global scalar weight for loss. sample_weight : Symbol or None Per sample weighting. M...
74,866
def _init_userflow_verifyemail(request,userflow): """ Initialize the verifyemail for customizable userflow object """ if hasattr(userflow,"verifyemail_body_template"): #already initialized return #initialize verifyemail related properties if not userflow.verifyemail_from: ...
74,867
def crawl_cals(dataset_version): """Crawl for calibration urls.""" date_today = datetime.now() yyyy = date_today.strftime("%Y") mm = date_today.strftime("%m") dd = date_today.strftime("%d") date = yyyy + '/' + mm + '/' + dd + '/' results = {} session = requests.Session() oType = 'ca...
74,868
def split_s3_path(s3_path): """ Splits the complete s3 path to a bucket name and a key name, this is useful in cases where and api requires two seperate entries (bucket and key) Arguments: s3_path {string} -- An S3 uri path Returns: bucket {string} - The bucket name key {...
74,869
def build_reference_wcs(inputs, sciname='sci'): """Create the reference WCS based on all the inputs for a field""" # start by creating a composite field-of-view for all inputs wcslist = [] for img in inputs: nsci = countExtn(img) for num in range(nsci): extname = (sciname, nu...
74,870
def main(): """ process main for unit tests This method will prepare the test suite, load listed test classes and perform a run. """ loader = unittest.TestLoader() suite = unittest.TestSuite() # toggle verbose mode (if provided) if '-v' in sys.argv: ConfluenceTestUtil.enab...
74,871
def _RunMethod(dev, args, extra): """Runs a method registered via :func:`MakeSubparser`. .. image:: _static/adb.common_cli._RunMethod.CALLER_GRAPH.svg Parameters ---------- dev : TODO TODO args : TODO TODO extra : TODO TODO Returns ------- int 0...
74,872
def get_q_rq_H(region, R_type): """単位面積当たりの必要暖房能力 Args: region(int): 省エネルギー地域区分 R_type(string): 居室の形式 Returns: float: 単位面積当たりの必要暖房能力 """ if R_type == '主たる居室': return get_table_m_2()[0][region - 1] elif R_type == 'その他の居室': return get_table_m_2()[1][region - 1]...
74,873
def createZip(zip_name, src): """ parameter:- zip file name , folder path This will create zip file """ zipf = zipfile.ZipFile(zip_name, 'w', zipfile.ZIP_DEFLATED) for file in src: zipf.write(file) zipf.close() print("--------zip file created --------") return None
74,874
def dash(*txts): """Join non-empty txts by a dash.""" return " -- ".join([t for t in txts if t != ""])
74,875
def quarter(month): """ :int month: Any month, as an int. :return: The quarter of the year during which that month occurs (1-4) """ return int(ceil(float(month) / 3))
74,876
def test_handler(): """ Test the service handler """ r_patch = patch('service.requests') r_mock = r_patch.start() mock_resp = Mock() mock_resp.status_code = 200 r_mock.get.return_value = mock_resp event = { 'service': 'http://kids-first.github.io', 'endpoint': '/' ...
74,877
def call_later(delay, fn, *args, **kwargs) -> asyncio.Handle: """ Call a function after a delay (in seconds). """ loop = asyncio.get_event_loop() callback = functools.partial(fn, *args, **kwargs) handle = loop.call_later(delay, callback) return handle
74,878
def build_blacklist_status(blacklist_status: str) -> Tuple[str, str, str]: """Build the blacklist_status @type blacklist_status: str @param blacklist_status: The blacklist status from command line @returns Tuple[str, str, str]: The builded blacklist status """ blacklisted_status = blacklist_sta...
74,879
def GetProfile(request, callback, customData = None, extraHeaders = None): """ Retrieves the entity's profile. https://docs.microsoft.com/rest/api/playfab/profiles/account-management/getprofile """ if not PlayFabSettings._internalSettings.EntityToken: raise PlayFabErrors.PlayFabException("Mu...
74,880
async def start_server(config: ServerConfig): """ Start engine engine """ await runtime.server.start(config=config) init_logger()
74,881
def isuser(username, domain, password=None): """Check if user exists and if he is a member of the group 'domain'.""" try: spwd.getspnam(username) return username in grp.getgrnam(domain)[3] except KeyError: return False except PermissionError: print('No permission to acces...
74,882
def _run_cmd(cmd, working_dir, timelimit): """ Run a compilation command in the sandbox. :param cmd: The command to run. :param working_dir: The directory to run the command in. :param timelimit: The number of seconds the command is allowed to run. :return: The value of stdout as well as any err...
74,883
def CheckCStyleCast(filename, clean_lines, linenum, cast_type, pattern, error): """Checks for a C-style cast by looking for the pattern. Args: filename: The name of the current file. clean_lines: A CleansedLines instance containing the file. linenum: The number of the line to check. cast_type: The ...
74,884
def dataclassAsDict(obj) -> dict: """ Return dataclass values as ``dict``. This is a non-recursive variant of ``dataclasses.asdict``. """ if not is_dataclass(obj): raise TypeError(f'Object {obj} is not a dataclass') return {field.name: getattr(obj, field.name) for field in fields(obj)}
74,885
async def server_error(request, exc): """ Return an HTTP 500 page. """ response = "Server error" return PlainTextResponse(response)
74,886
def mark_pipeline( pipeline: pipeline_pb2.Pipeline, from_nodes: Callable[[str], bool] = lambda _: True, to_nodes: Callable[[str], bool] = lambda _: True, snapshot_settings: pipeline_pb2 .SnapshotSettings = _default_snapshot_settings, ): """Modifies the Pipeline IR in place, in preparation for part...
74,887
def _check_substituted_domains(patchset, search_regex): """Returns True if the patchset contains substituted domains; False otherwise""" for patchedfile in patchset: for hunk in patchedfile: if not search_regex.search(str(hunk)) is None: return True return False
74,888
def build( requirements, # type: Iterable[InstallRequirement] wheel_cache, # type: WheelCache build_options, # type: List[str] global_options, # type: List[str] ): # type: (...) -> BuildResult """Build wheels. :return: The list of InstallRequirement that succeeded to build and t...
74,889
async def database_get_corpus(criteria: tuple[str, Any] = None) -> AsyncGenerator[list[str]]: """Yield lines from the database corpus. Each yielded line consists of a list of words, conveniently assignable to a chain corpus. """ async with DB.cursor() as cur: if criteria is not None: ...
74,890
def error_logger(log_path, name): """ formatting error log :param log_path: error log path :param name: log name :return: Logger """ logger = logging.getLogger(name) logger.setLevel(logging.INFO) # Terminal output INFO log console_handler = logging.StreamHandler(sys.stdout) ...
74,891
def filter_enzyme_kinase(stmts_in, **kwargs): """Filter Phosphorylations to ones where the enzyme is a known kinase. Parameters ---------- stmts_in : list[indra.statements.Statement] A list of statements to filter. save : Optional[str] The name of a pickle file to save the results (...
74,892
def prepareReposToJson(json_repos): """ Convert information about repo to proper format :param json_repos: :return: dictionary """ columns = ["created_on", "description", "fork_policy", "full_name", "has_issues", "has_wiki", "is_private", "language", "links", "mainbranch", "name",...
74,893
def show_euler_module_info(client, module): """ Show the information on a specific Euler module. Parameters ---------- client (obj): Connected ssh client object to Euler. module (str): Module to inspect. Returns ------- None """ ssh.server_command(client=client, com...
74,894
def cli(ctx): """user management"""
74,895
def notifications(context): """ This renders the actual box where popup notifications get displayed on screen """ return render_to_string('notifications/display.html', {}, context)
74,896
def _get_default_settings(variable, config_user, derive=False): """Get default preprocessor settings.""" settings = {} # Set up downloading using synda if requested. if config_user['synda_download']: # TODO: make this respect drs or download to preproc dir? download_folder = os.path.joi...
74,897
def browserid_authenticate(request, assertion): """ Verify a BrowserID login attempt. If the BrowserID assertion is good, but no account exists on flightdeck, create one. """ backend = browserid_auth.BrowserIDBackend() result = backend.verify(assertion, settings.SITE_URL) if not result: ...
74,898
def compute_forgroundness(fpath1, kpts1, species='zebra_plains'): """ hack in foregroundness """ import pyrf import vtool_ibeis as vt from os.path import exists # hack for getting a model (not entirely ibeis independent) trees_path = ut.get_app_resource_dir('ibeis', 'detectmodels', 'rf',...
74,899