text
stringlengths
81
112k
Syntax: annuity(nt, x, n, p, m, ['a/g', q], -d) Args: mt = the mortality table x = the age as integer number. n = A integer number (term of insurance in years) or 'w' = whole-life. (Also, 99 years is defined to be whole-life). p = Moment of payment. Syntaxis: 0 = begi...
find new position of vertex v according to adjacency in prevlayer. position is given by the mean value of adjacent positions. experiments show that meanvalue heuristic performs better than median. def _meanvalueattr(self,v): """ find new position of vertex v according to adjacency in pr...
find new position of vertex v according to adjacency in layer l+dir. position is given by the median value of adjacent positions. median heuristic is proven to achieve at most 3 times the minimum of crossings (while barycenter achieve in theory the order of |V|) def _medianindex(self,v): ...
neighbors refer to upper/lower adjacent nodes. Note that v.N() provides neighbors of v in the graph, while this method provides the Vertex and DummyVertex adjacent to v in the upper or lower layer (depending on layout.dirv state). def _neighbors(self,v): """ neighbors refer to u...
counts (inefficently but at least accurately) the number of crossing edges between layer l and l+dirv. P[i][j] counts the number of crossings from j-th edge of vertex i. The total count of crossings is the sum of flattened P: x = sum(sum(P,[])) def _crossings(self): """ ...
implementation of the efficient bilayer cross counting by insert-sort (see Barth & Mutzel paper "Simple and Efficient Bilayer Cross Counting") def _cc(self): """ implementation of the efficient bilayer cross counting by insert-sort (see Barth & Mutzel paper "Simple and Efficient Bilayer...
initializes the layout algorithm by computing roots (unless provided), inverted edges (unless provided), vertices ranks and creates all dummy vertices and layers. Parameters: roots (list[Vertex]): set *root* vertices (layer 0) inverted_ed...
compute every node coordinates after converging to optimal ordering by N rounds, and finally perform the edge routing. def draw(self,N=1.5): """compute every node coordinates after converging to optimal ordering by N rounds, and finally perform the edge routing. """ while ...
Computes rank of all vertices. add provided roots to rank 0 vertices, otherwise update ranking from provided roots. The initial rank is based on precedence relationships, optimal ranking may be derived from network flow (simplex). def rank_all(self,roots,optimize=False): """Comp...
Computes rank of provided unranked list of vertices and all their children. A vertex will be asign a rank when all its inward edges have been *scanned*. When a vertex is asigned a rank, its outward edges are marked *scanned*. def _rank_init(self,unranked): """Computes rank of ...
optimize ranking by pushing long edges toward lower layers as much as possible. see other interersting network flow solver to minimize total edge length (http://jgaa.info/accepted/2005/EiglspergerSiebenhallerKaufmann2005.9.3.pdf) def _rank_optimize(self): """optimize ranking by pushing long edg...
set rank value for vertex v and add it to the corresponding layer. The Layer is created if it is the first vertex with this rank. def setrank(self,v): """set rank value for vertex v and add it to the corresponding layer. The Layer is created if it is the first vertex with this rank. ...
creates a DummyVertex at rank r inserted in the ctrl dict of the associated edge and layer. Arguments: r (int): rank value ctrl (dict): the edge's control vertices Returns: DummyVertex : the created DummyVertex. def dummyctrl(self,...
creates and defines all needed dummy vertices for edge e. def setdummies(self,e): """creates and defines all needed dummy vertices for edge e. """ v0,v1 = e.v r0,r1 = self.grx[v0].rank,self.grx[v1].rank if r0>r1: assert e in self.alt_e v0,v1 = v1,v0 ...
iterator that computes all vertices coordinates and edge routing after just one step (one layer after the other from top to bottom to top). Purely inefficient ! Use it only for "animation" or debugging purpose. def draw_step(self): """iterator that computes all vertices coordinates and ed...
iterator that computes all vertices ordering in their layers (one layer after the other from top to bottom, to top again unless oneway is True). def ordering_step(self,oneway=False): """iterator that computes all vertices ordering in their layers (one layer after the other from...
computes all vertex coordinates (x,y) using an algorithm by Brandes & Kopf. def setxy(self): """computes all vertex coordinates (x,y) using an algorithm by Brandes & Kopf. """ self._edge_inverter() self._detect_alignment_conflicts() inf = float('infinity') ...
mark conflicts between edges: inner edges are edges between dummy nodes type 0 is regular crossing regular (or sharing vertex) type 1 is inner crossing regular (targeted crossings) type 2 is inner crossing inner (avoided by reduce_crossings phase) def _detect_alignment_conflicts(self): ...
performs vertical alignment according to current dirvh internal state. def _coord_vertical_alignment(self): """performs vertical alignment according to current dirvh internal state. """ dirh,dirv = self.dirh,self.dirv g = self.grx for l in self.layers[::-dirv]: if no...
Basic edge routing applied only for edges with dummy points. Enhanced edge routing can be performed by using the apropriate *route_with_xxx* functions from :ref:routing_ in the edges' view. def draw_edges(self): """Basic edge routing applied only for edges with dummy points. Enhanced ed...
Main function for pRF mapping. Parameters ---------- strCsvCnfg : str Absolute file path of config file. lgcTest : Boolean Whether this is a test (pytest). If yes, absolute path of pyprf libary will be prepended to config file paths. varRat : float, default None Rati...
Makes a cURL POST request to the given URL, specifying the data to be passed in as {"method": method, "params": parameters} :param str url: URL to connect to. :param str method: The API method to call. :param dict params: Dictionary object of the parameters associated with the `method`...
Load PNGs with stimulus information for pRF model creation. Parameters ---------- varNumVol : int Number of PNG files. strPathPng : str Parent directory of PNG files. PNG files need to be organsied in numerical order (e.g. `file_001.png`, `file_002.png`, etc.). tplVslSpcSze ...
Load information from event text file. Parameters ---------- input1 : str Path to event text file Returns ------- aryEvTxt : 2d numpy array, shape [n_measurements, 3] Array with info about conditions: type, onset, duration Notes ----- Part of py_pRF_mapping library. ...
Apply status mapping to a raw API result. def adjust_status(info: dict) -> dict: """Apply status mapping to a raw API result.""" modified_info = deepcopy(info) modified_info.update({ 'level': get_nearest_by_numeric_key(STATUS_MAP, int(info['level'])), 'level2': STATU...
Return the CDC status for the provided latitude/longitude. async def status_by_coordinates( self, latitude: float, longitude: float) -> dict: """Return the CDC status for the provided latitude/longitude.""" cdc_data = await self.raw_cdc_data() nearest = await self.nearest_by_coordin...
Return the CDC status for the specified state. async def status_by_state(self, state: str) -> dict: """Return the CDC status for the specified state.""" data = await self.raw_cdc_data() try: info = next((v for k, v in data.items() if state in k)) except StopIteration: ...
Returns the Exception class and the message of the exception as string. :param exception: The exception to format :param secret_values: Values to hide in output def brief_exception_text(exception, secret_values): """ Returns the Exception class and the message of the exception as string. :param e...
Prints the exception message and the name of the exception class to stderr. :param exception: The exception to print :param secret_values: Values to hide in output def print_exception(exception, secret_values=None): """ Prints the exception message and the name of the exception class to stderr. :...
Saves the Document to the database if it is valid. Returns errors otherwise. def insert(self, **kwargs): """ Saves the Document to the database if it is valid. Returns errors otherwise. """ if self.is_valid: before = self.before_insert() if before...
Updates the document with the given _id saved in the collection if it is valid. Returns errors otherwise. def update(self, **kwargs): """ Updates the document with the given _id saved in the collection if it is valid. Returns errors otherwise. """ if self...
Deletes the document if it is saved in the collection. def delete(self, **kwargs): """ Deletes the document if it is saved in the collection. """ if self.is_valid: if '_id' in self._document: to_delete = self.find_one({'_id': self._id}) if to...
Returns one document dict if one passes the filter. Returns None otherwise. def find_one(cls, filter=None, *args, **kwargs): """ Returns one document dict if one passes the filter. Returns None otherwise. """ return cls.collection.find_one(filter, *args, **kwargs)
Returns all document dicts that pass the filter def find(cls, *args, **kwargs): """ Returns all document dicts that pass the filter """ return list(cls.collection.find(*args, **kwargs))
Returns the document dicts returned from the Aggregation Pipeline def aggregate(cls, pipeline=None, **kwargs): """ Returns the document dicts returned from the Aggregation Pipeline """ return list(cls.collection.aggregate(pipeline or [], **kwargs))
Inserts a list of documents into the Collection and returns their _ids def insert_many(cls, documents, ordered=True): """ Inserts a list of documents into the Collection and returns their _ids """ return cls.collection.insert_many(documents, ordered).inserted_ids
Updates a document that passes the filter with the update value Will upsert a new document if upsert=True and no document is filtered def update_one(cls, filter, update, upsert=False): """ Updates a document that passes the filter with the update value Will upsert a new document if upse...
Updates all documents that pass the filter with the update value Will upsert a new document if upsert=True and no document is filtered def update_many(cls, filter, update, upsert=False): """ Updates all documents that pass the filter with the update value Will upsert a new document if u...
Replaces a document that passes the filter. Will upsert a new document if upsert=True and no document is filtered def replace_one(cls, filter, replacement, upsert=False): """ Replaces a document that passes the filter. Will upsert a new document if upsert=True and no document is filtere...
Returns a Document if any document is filtered, returns None otherwise def get(cls, filter=None, **kwargs): """ Returns a Document if any document is filtered, returns None otherwise """ document = cls(cls.find_one(filter, **kwargs)) return document if document.document else Non...
Returns a list of Documents if any document is filtered def documents(cls, filter=None, **kwargs): """ Returns a list of Documents if any document is filtered """ documents = [cls(document) for document in cls.find(filter, **kwargs)] return [document for document in documents if...
Returns an iterator over all of the statements belonging to a file. def in_file(self, fn: str) -> Iterator[Statement]: """ Returns an iterator over all of the statements belonging to a file. """ yield from self.__file_to_statements.get(fn, [])
Returns an iterator over all of the statements located at a given line. def at_line(self, line: FileLine) -> Iterator[Statement]: """ Returns an iterator over all of the statements located at a given line. """ num = line.num for stmt in self.in_file(line.filename): i...
Find best pRF model for voxel time course. Parameters ---------- idxPrc : int Process ID of the process calling this function (for CPU multi-threading). In GPU version, this parameter is 0 (just one thread on CPU). vecMdlXpos : np.array 1D array with pRF model x position...
Wrap multiple paragraphs of text, returning a list of wrapped lines. Reformat the multiple paragraphs 'text' so they fit in lines of no more than 'width' columns, and return a list of wrapped lines. By default, tabs in 'text' are expanded with string.expandtabs(), and all other whitespace characters ...
Fill multiple paragraphs of text, returning a new string. Reformat multiple paragraphs in 'text' to fit in lines of no more than 'width' columns, and return a new string containing the entire wrapped text. As with wrap(), tabs are expanded and other whitespace characters converted to space. See Parag...
split(text : string) -> [string] Splits 'text' into multiple paragraphs and return a list of each paragraph. def split(cls, text): """split(text : string) -> [string] Splits 'text' into multiple paragraphs and return a list of each paragraph. """ result = [line...
wrap(text : string) -> [string] Reformat the multiple paragraphs in 'text' so they fit in lines of no more than 'self.width' columns, and return a list of wrapped lines. Tabs in 'text' are expanded with string.expandtabs(), and all other whitespace characters (including newline) are ...
팩스 전송내역 팝업 URL args CorpNum : 회원 사업자번호 UserID : 회원 팝빌아이디 return 30초 보안 토큰을 포함한 url raise PopbillException def getSenderNumberMgtURL(self, CorpNum, UserID): """ 팩스 전송내역 팝업 URL args Co...
팩스 전송 단가 확인 args CorpNum : 팝빌회원 사업자번호 return 전송 단가 by float raise PopbillException def getUnitCost(self, CorpNum): """ 팩스 전송 단가 확인 args CorpNum : 팝빌회원 사업자번호 return 전송 단가 b...
팩스 전송결과 조회 args CorpNum : 팝빌회원 사업자번호 ReceiptNum : 전송요청시 발급받은 접수번호 UserID : 팝빌회원 아이디 return 팩스전송정보 as list raise PopbillException def getFaxResult(self, CorpNum, ReceiptNum, UserID=None): """ 팩스 전...
팩스 전송결과 조회 args CorpNum : 팝빌회원 사업자번호 RequestNum : 전송요청시 할당한 전송요청번호 UserID : 팝빌회원 아이디 return 팩스전송정보 as list raise PopbillException def getFaxResultRN(self, CorpNum, RequestNum, UserID=None): """ 팩...
팩스 단건 전송 args CorpNum : 팝빌회원 사업자번호 SenderNum : 발신자 번호 ReceiverNum : 수신자 번호 ReceiverName : 수신자 명 FilePath : 발신 파일경로 ReserveDT : 예약시간(형식 yyyyMMddHHmmss) UserID : 팝빌회원 아이디 SenderName ...
팩스 전송 args CorpNum : 팝빌회원 사업자번호 SenderNum : 발신자 번호 (동보전송용) Receiver : 수신자 번호(동보전송용) FilePath : 발신 파일경로 ReserveDT : 예약시간(형식 yyyyMMddHHmmss) UserID : 팝빌회원 아이디 SenderName : 발신자명 (동보전송용) ...
팩스 단건 전송 args CorpNum : 팝빌회원 사업자번호 ReceiptNum : 팩스 접수번호 SenderNum : 발신자 번호 SenderName : 발신자명 ReceiverNum : 수신번호 ReceiverName : 수신자명 ReserveDT : 예약시간(형식 yyyyMMddHHmmss) UserID : 팝빌회...
팩스 단건 전송 args CorpNum : 팝빌회원 사업자번호 OrgRequestNum : 원본 팩스 전송시 할당한 전송요청번호 ReceiptNum : 팩스 접수번호 SenderNum : 발신자 번호 SenderName : 발신자명 ReceiverNum : 수신번호 ReceiverName : 수신자명 ReserveDT :...
팩스 전송 args CorpNum : 팝빌회원 사업자번호 OrgRequestNum : 원본 팩스 전송시 할당한 전송요청번호 SenderNum : 발신자 번호 SenderName : 발신자명 Receiver : 수신자정보 배열 ReserveDT : 예약시간(형식 yyyyMMddHHmmss) UserID : 팝빌회원 아이디 ...
팩스 발신번호 목록 확인 args CorpNum : 팝빌회원 사업자번호 UserID : 팝빌회원 아이디 return 처리결과. list of SenderNumber raise PopbillException def getPreviewURL(self, CorpNum, ReceiptNum, UserID): """ 팩스 발신번호 목록 확인 args ...
Creates the output directory if not existing. If outdir is None or if no output_files are provided nothing happens. :param outdir: The output directory to create. def prepare_outdir(outdir): """ Creates the output directory if not existing. If outdir is None or if no output_files are provided noth...
수집 요청 args CorpNum : 팝빌회원 사업자번호 Type : 문서형태, SELL-매출, BUY-매입, SDate : 시작일자, 표시형식(yyyyMMdd) EDate : 종료일자, 표시형식(yyyyMMdd) UserID : 팝빌회원 아이디 return 작업아이디 (jobID) raise Popbill...
수집 결과 조회 args CorpNum : 팝빌회원 사업자번호 JobID : 작업아이디 TradeType : 문서형태 배열, N-일반 현금영수증, C-취소 현금영수증 TradeUsage : 거래구분 배열, P-소등공제용, C-지출증빙용 Page : 페이지 번호 PerPage : 페이지당 목록 개수, 최대 1000개 Order : 정렬 방향, D-내림...
수집 결과 요약정보 조회 args CorpNum : 팝빌회원 사업자번호 JobID : 작업아이디 TradeType : 문서형태 배열, N-일반 현금영수증, C-취소 현금영수증 TradeUsage : 거래구분 배열, P-소등공제용, C-지출증빙용 UserID : 팝빌회원 아이디 return 수집 결과 요약정보 raise ...
홈택스 현금영수증 부서사용자 계정 등록 args CorpNum : 팝빌회원 사업자번호 DeptUserID : 홈택스 부서사용자 계정아이디 DeptUserPWD : 홈택스 부서사용자 계정비밀번호 UserID : 팝빌회원 아이디 return 처리결과. consist of code and message raise PopbillExceptio...
Decorates a ``schematics.Model`` class to add it as a field of type ``schematic.types.ModelType``. Keyword arguments are passed to ``schematic.types.ModelType``. Example: .. code-block:: python :emphasize-lines: 8,13 from schematics import Model, types from rafter.contrib.sch...
Calls func(filename) for every file under base_dir. :param base_dir: A directory containing files :param func: The function to call with every file. def for_each_file(base_dir, func): """ Calls func(filename) for every file under base_dir. :param base_dir: A directory containing files :param ...
Removes the write permissions for the given file for owner, groups and others. :param file_path: The file whose privileges are revoked. :raise FileNotFoundError: If the given file does not exist. def make_file_read_only(file_path): """ Removes the write permissions for the given file for owner, groups...
Load py_pRF_mapping config file. Parameters ---------- strCsvCnfg : string Absolute file path of config file. lgcTest : Boolean Whether this is a test (pytest). If yes, absolute path of this function will be prepended to config file paths. lgcPrint : Boolean Print co...
Get symptom data for the location nearest to the user's lat/lon. async def status_by_coordinates( self, latitude: float, longitude: float) -> dict: """Get symptom data for the location nearest to the user's lat/lon.""" return await self.nearest_by_coordinates(latitude, longitude)
Get symptom data for the provided ZIP code. async def status_by_zip(self, zip_code: str) -> dict: """Get symptom data for the provided ZIP code.""" try: location = next(( d for d in await self.user_reports() if d['zip'] == zip_code)) except StopIterat...
Prints a prepared request to give the user info as to what they're sending :param request.PreparedRequest request: PreparedRequest object to be printed :return: Nothing def print_request(request): """ Prints a prepared request to give the user info as to what they're sending :param request.PreparedRe...
This filter validates input data against the resource's ``request_schema`` and fill the request's ``validated`` dict. Data from ``request.params`` and ``request.body`` (when the request body is of a form type) will be converted using the schema in order to get proper lists or unique values. .. imp...
This filter process the returned response. It does 2 things: - If the response is a ``sanic.response.HTTPResponse`` and not a :class:`rafter.http.Response`, return it immediately. - It processes, validates and serializes this response when a schema is provided. That means that you can always r...
Standard workflow for creating an EPUB document. make_EPUB is used to produce an EPUB file from a parsed article. In addition to the article it also requires a path to the appropriate image directory which it will insert into the EPUB file, as well the output directory location for the EPUB file. ...
Creates the base structure for an EPUB file in a specified location. This function creates constant components for the structure of the EPUB in a specified directory location. Parameters ---------- location : str A path string to a local directory in which the EPUB is to be built def make...
Zips up the input file directory into an EPUB file. def epub_zip(outdirect): """ Zips up the input file directory into an EPUB file. """ def recursive_zip(zipf, directory, folder=None): if folder is None: folder = '' for item in os.listdir(directory): if os.path...
Write data to CSV file with validation. def _write_int(fname, data, append=True): """Write data to CSV file with validation.""" # pylint: disable=W0705 data_ex = pexdoc.exh.addex(ValueError, "There is no data to save to file") fos_ex = pexdoc.exh.addex( OSError, "File *[fname]* could not be cre...
Produces a directory description. A directory description is a dictionary containing the following information. - 'path': An array containing the paths to the specified directories. - 'debugInfo': A field to possibly provide debug information. - 'found': A boolean that indicates, if the directory exists...
Raises an DirectoryError if files or directories, given in the listing, could not be found in the local filesystem. :param base_directory: The path to the directory to check :param listing: A listing given as dictionary :raise DirectoryError: If the given base directory does not contain all of the subdirec...
Parses cwl type information from a cwl type string. Examples: - "File[]" -> {'type': 'File', 'isArray': True, 'isOptional': False} - "int?" -> {'type': 'int', 'isArray': False, 'isOptional': True} :param cwl_type_string: The cwl type string to extract information from :return: A dictionary contai...
Searches for Directories and in the cwl data and produces a dictionary containing input file information. :param cwl_data: The cwl data as dictionary :param job_data: The job data as dictionary :param input_dir: TODO :return: Returns the a dictionary containing information about input files. ...
Returns a dictionary containing information about the output files given in cwl_data. :param cwl_data: The cwl data from where to extract the output file information. :param inputs_to_reference: Inputs which are used to resolve input references. :param output_dir: Path to the directory where output files a...
Reads from the FIFO. Reads as much data as possible from the FIFO up to the specified length. If the length argument is negative or ommited all data currently available in the FIFO will be read. If there is no data available in the FIFO an empty string is returned. Args: ...
Reads data from the FIFO until a token is encountered. If no token is encountered as much data is read from the FIFO as possible keeping in mind that the FIFO must retain enough data to perform matches for the token across writes. Args: token: The token to read until. ...
Peeks a line into the FIFO. Perfroms the same function as readline() without removing data from the FIFO. See readline() for further information. def peekline(self): """ Peeks a line into the FIFO. Perfroms the same function as readline() without removing data from the ...
Peeks for token into the FIFO. Performs the same function as readuntil() without removing data from the FIFO. See readuntil() for further information. def peekuntil(self, token, size=0): """ Peeks for token into the FIFO. Performs the same function as readuntil() without remov...
:param CorpNum: 팝빌회원 사업자번호 :param UserID: 팝빌회원 아이디 :param ToGo: [PLUSFRIEND-플러스친구계정관리, SENDER-발신번호관리, TEMPLATE-알림톡템플릿관리, BOX-카카오톡전송내용] :return: 팝빌 URL def getURL(self, CorpNum, UserID, ToGo): """ :param CorpNum: 팝빌회원 사업자번호 :param UserID: 팝빌회원 아이디 :param ToGo: [PL...
플러스친구 계정관리 팝업 URL :param CorpNum: 팝빌회원 사업자번호 :param UserID: 팝빌회원 아이디 :return: 팝빌 URL def getPlusFriendMgtURL(self, CorpNum, UserID): """ 플러스친구 계정관리 팝업 URL :param CorpNum: 팝빌회원 사업자번호 :param UserID: 팝빌회원 아이디 :return: 팝빌 URL """ result = self...
알림톡 템플릿관리 팝업 URL :param CorpNum: 팝빌회원 사업자번호 :param UserID: 팝빌회원 아이디 :return: 팝빌 URL def getATSTemplateMgtURL(self, CorpNum, UserID): """ 알림톡 템플릿관리 팝업 URL :param CorpNum: 팝빌회원 사업자번호 :param UserID: 팝빌회원 아이디 :return: 팝빌 URL """ result = self....
카카오톡 전송내역 팝업 URL :param CorpNum: 팝빌회원 사업자번호 :param UserID: 팝빌회원 아이디 :return: 팝빌 URL def getSentListURL(self, CorpNum, UserID): """ 카카오톡 전송내역 팝업 URL :param CorpNum: 팝빌회원 사업자번호 :param UserID: 팝빌회원 아이디 :return: 팝빌 URL """ result = self._httpg...
알림톡 대량 전송 :param CorpNum: 팝빌회원 사업자번호 :param TemplateCode: 템플릿코드 :param Sender: 발신번호 :param Content: [동보] 알림톡 내용 :param AltContent: [동보] 대체문자 내용 :param AltSendType: 대체문자 유형 [공백-미전송, C-알림톡내용, A-대체문자내용] :param SndDT: 예약일시 [작성형식 : yyyyMMddHHmmss] :param KakaoMessages:...
친구톡 텍스트 대량 전송 :param CorpNum: 팝빌회원 사업자번호 :param PlusFriendID: 플러스친구 아이디 :param Sender: 발신번호 :param Content: [동보] 친구톡 내용 :param AltContent: [동보] 대체문자 내용 :param AltSendType: 대체문자 유형 [공백-미전송, C-알림톡내용, A-대체문자내용] :param SndDT: 예약일시 [작성형식 : yyyyMMddHHmmss] :para...
친구톡 이미지 대량 전송 :param CorpNum: 팝빌회원 사업자번호 :param PlusFriendID: 플러스친구 아이디 :param Sender: 발신번호 :param Content: [동보] 친구톡 내용 :param AltContent: [동보] 대체문자 내용 :param AltSendType: 대체문자 유형 [공백-미전송, C-알림톡내용, A-대체문자내용] :param SndDT: 예약일시 [작성형식 : yyyyMMddHHmmss] :para...
예약전송 취소 :param CorpNum: 팝빌회원 사업자번호 :param ReceiptNum: 접수번호 :param UserID: 팝빌회원 아이디 :return: code (요청에 대한 상태 응답코드), message (요청에 대한 응답 메시지) def cancelReserve(self, CorpNum, ReceiptNum, UserID=None): """ 예약전송 취소 :param CorpNum: 팝빌회원 사업자번호 :param ReceiptNum:...
전송단가 확인 :param CorpNum: 팝빌회원 사업자번호 :param MsgType: 카카오톡 유형 :param UserID: 팝빌 회원아이디 :return: unitCost def getUnitCost(self, CorpNum, MsgType, UserID=None): """ 전송단가 확인 :param CorpNum: 팝빌회원 사업자번호 :param MsgType: 카카오톡 유형 :param UserID: 팝빌 회원아이디 ...
Converts a sequence of page-partitioned revision documents into a sequence of reverts. :Params: rev_docs : `iterable` ( `dict` ) a page-partitioned sequence of revision documents radius : `int` The maximum number of revisions that a revert can reference. use_sha1...
SPM HRF function from sum of two gamma PDFs This function is designed to be partially compatible with SPMs `spm_hrf.m` function. The SPN HRF is a *peak* gamma PDF (with location `peak_delay` and dispersion `peak_disp`), minus an *undershoot* gamma PDF (with location `under_delay` and dispersion `u...
SPM canonical HRF derivative, HRF derivative values for time values `t` This is the canonical HRF derivative function as used in SPM. It is the numerical difference of the HRF sampled at time `t` minus the values sampled at time `t` -1 def dspmt(t): """ SPM canonical HRF derivative, HRF derivative va...
Convolution of time courses with HRF model. def cnvlTc(idxPrc, aryPrfTcChunk, lstHrf, varTr, varNumVol, queOut, varOvsmpl=10, varHrfLen=32, ): """ Convolution of time courses with HRF model. """ # *** prepare hrf t...
Create double gamma function. Source: http://www.jarrodmillman.com/rcsds/lectures/convolution_background.html def funcHrf(varNumVol, varTr): """Create double gamma function. Source: http://www.jarrodmillman.com/rcsds/lectures/convolution_background.html """ vecX = np.arange(0, varNumVol, ...
Old version: Convolution of time courses with one canonical HRF model. def cnvlTcOld(idxPrc, aryPrfTcChunk, varTr, varNumVol, queOut): """ Old version: Convolution of time courses with one canonical HRF model. """ # Create 'canonical' HRF ...