| getFinancials {quantmod} | R Documentation |
Download Income Statement, Balance Sheet, and Cash Flow Statements.
getFinancials(Symbol, env = parent.frame(), src = "google", auto.assign = TRUE, ...) viewFinancials(x, type=c('BS','IS','CF'), period=c('A','Q'), subset = NULL)
Symbol |
one or more valid google symbol, as a character vector or semi-colon delimited string |
env |
where to create the object |
src |
currently no sources are implemented |
auto.assign |
should results be loaded to the environment |
... |
currently unused |
x |
an object of class financials |
type |
type of statement to view |
period |
period of statement to view |
subset |
‘xts’ style subset string |
A utility to download financial statements for publicly traded companies.
Individual statements can be accessed using
standard R list extraction tools, or by
using viewFinancials
.
viewFinancials
allows for the use of
date subsetting as available in the xts
package, as well as the specification of
the type of statement to view. BS for balance
sheet, IS for income statement, and CF for cash flow
statement. The period argument is used to identify
which statements to view - (A) for annual and (Q)
for quarterly.
Six individual matrices organized in a list of class ‘financials’:
IS |
a list containing (Q)uarterly and (A)nnual Income Statements |
BS |
a list containing (Q)uarterly and (A)nnual Balance Sheets |
CF |
a list containing (Q)uarterly and (A)nnual Cash Flow Statements |
As with all free data, you may be getting exactly what you pay for. Sometimes that may be absolutely nothing.
Jeffrey A. Ryan
## Not run: getFinancials('JAVA') # returns JAVA.f to "env" getFin('AAPL') # returns AAPL.f to "env" viewFin(JAVA.f, "IS", "Q") # Quarterly Income Statement viewFin(AAPL.f, "CF", "A") # Annual Cash Flows str(AAPL.f) ## End(Not run)


LYDIA MORAGA
“Anyone out there who’s in junior high, high school, working it out, suffering — there are days you’re going to feel sad. You’re going to feel angry. You’re going to feel scared. That’s nothing you can choose. But you can make stuff. Make films. Draw. Write. It will make a world of difference.” ~ Pete Docter


|
Contiki 2.5
|
802.15.4 frame creation and parsing functions More...
Go to the source code of this file.
Data Structures | |
| struct | frame802154_fcf_t |
| The IEEE 802.15.4 frame has a number of constant/fixed fields that can be counted to make frame construction and max payload calculations easier. More... | |
| struct | frame802154_scf_t |
| 802.15.4 security control bitfield. More... | |
| struct | frame802154_aux_hdr_t |
| 802.15.4 Aux security header More... | |
| struct | frame802154_t |
| Parameters used by the frame802154_create() function. More... | |
FCF element values definitions | |
These are some definitions of values used in the FCF. See the 802.15.4 spec for details. | |
| #define | FRAME802154_BEACONFRAME (0x00) |
| #define | FRAME802154_DATAFRAME (0x01) |
| #define | FRAME802154_ACKFRAME (0x02) |
| #define | FRAME802154_CMDFRAME (0x03) |
| #define | FRAME802154_BEACONREQ (0x07) |
| #define | FRAME802154_IEEERESERVED (0x00) |
| #define | FRAME802154_NOADDR (0x00) |
| Only valid for ACK or Beacon frames. | |
| #define | FRAME802154_SHORTADDRMODE (0x02) |
| #define | FRAME802154_LONGADDRMODE (0x03) |
| #define | FRAME802154_NOBEACONS (0x0F) |
| #define | FRAME802154_BROADCASTADDR (0xFFFF) |
| #define | FRAME802154_BROADCASTPANDID (0xFFFF) |
| #define | FRAME802154_IEEE802154_2003 (0x00) |
| #define | FRAME802154_IEEE802154_2006 (0x01) |
| #define | FRAME802154_SECURITY_LEVEL_NONE (0) |
| #define | FRAME802154_SECURITY_LEVEL_128 (3) |
| uint8_t | frame802154_hdrlen (frame802154_t *p) |
| Calculates the length of the frame header. | |
| uint8_t | frame802154_create (frame802154_t *p, uint8_t *buf, uint8_t buf_len) |
| Creates a frame for transmission over the air. | |
| uint8_t | frame802154_parse (uint8_t *data, uint8_t len, frame802154_t *pf) |
| Parses an input frame. |
802.15.4 frame creation and parsing functions
This file converts to and from a structure to a packed 802.15.4 frame.
Definition in file frame802154.h.


John Abraham and Anil Kapoor starrer Pagalpanti has a slow start at the box-office
by Kajol MathurAnees Bazmee’s mad comedy Pagalpanti starring John Abraham, Ileana D'Cruz, Anil Kapoor, Pulkit Samrat, Kriti Kharbanda and Urvashi Rautela has finally hit the screens. The film opened to mixed reviews and is competing with the sequel of Frozen at the box-office.
Speaking of film’s box-office collections, Pagalpanti managed to collect a total of Rs. 5 crore nett on its opening day followed by 25 per cent growth and earning Rs 6.25 crore on day two at the box-office. The film’s total collection currently rests at Rs.11.25 crore
Pagalpanti is produced by Bhushan Kumar, Krishan Kumar, Abhishek Pathak and Kumar Mangat Pathak under T-Series banner and Panorama Studios.


AMAZING PEOPLE ARE MAKING AMAZING DESIGNS IN A FUN ENVIRONMENT
When you work with us you are part of a team of committed collaborators. All aspects of our software development process are integrated, interactive
and agile.
Our approach unifies design, development and product management to create exceptional products.
We start each project by understanding your business goals, the user's needs and the product requirements
then we help translate them into effective and elegant solutions.
Before we sign a contract or write a line of code our team will spend the necessary time needed to understand you product vision.
The outcome of this scoping session is proposal or high-level statement of work
based on your requirements we can provide a complete offering or just the pieces you need.
Plain studio
ONTARIO
PRISM
WEATHER
ABOUT
BUTTONS
BURNED LOGO
GIRAFFE RESTAURANT
DELANI STUDIO
2019


import { booleanContains, booleanOverlap, booleanDisjoint, booleanWithin, flatten, bbox, featureCollection, envelope, circle } from "@turf/turf"
/**
* This function takes a polygon or point and selects other features in the map that intersect this feature. It returns the features as well as an array contaiing a list of unique ids for these features based on the properties field provided.
* @param {object} map Mapbox map object
* @param {object} selectingFeatures GeoJSON FeatureCollection
* @param {Array} layers Array of Mapbox layers to query
* @param {string} field Field used to filter the features
* @param {Function} filter Function used on each feature to optionally filter out features.
* @example
* mglSelectFeatures(map, features, "field_w_unique_constraint", ["layer_1"], function(f) => {
* return f.properties.boolean === true
* });
* @returns {Number} Returns the value of x for the equation.
*/
export function mglSelectFeatures(map, selectingFeatures, layers, field, filter) {
// console.log(selectingFeatures);
var bbox0 = bbox(selectingFeatures);
var bbox1 = map.project([bbox0[0], bbox0[1]]);
var bbox2 = map.project([bbox0[2], bbox0[3]]);
var features = map.queryRenderedFeatures([
[bbox1.x, bbox1.y],
[bbox2.x, bbox2.y]
], {
layers: layers
});
//filter out any features that do not have a the field property
const cleanedFeatures = features.filter(f => {
return f.properties[field]
})
const selected = featureCollection([]);
const flattenedFeatures = featureCollection([]);
//flatten any multi* features
cleanedFeatures.forEach(f => {
if (f.geometry.type.includes("Multi")) {
f.properties._flattened = true
let flattened = flatten(f);
flattenedFeatures.features = [...flattenedFeatures.features, ...flattened.features];
}else{
flattenedFeatures.features.push(f)
}
});
//iterate through all features, skipping multi* geom features
flattenedFeatures.features.forEach(f => {
let passedFilter = false;
if (filter) {
passedFilter = filter(f)
}else{
passedFilter = true
}
if (passedFilter) {
var envelopeFeature = (f.geometry.type === "LineString") ? envelope(f) : (f.geometry.type === "Point") ? circle(f, 0.000001, {units: "degrees"}) : f;
for (let i = 0; i < selectingFeatures.features.length; i++) {
let s = selectingFeatures.features[i];
if (s.geometry.type === "Point") s = circle(s, 0.000001, {units: "degrees"});
if (
// booleanContains(envelopeFeature, s)
// ||
// booleanContains(s, envelopeFeature)
// ||
// booleanWithin(envelopeFeature, s)
// ||
// booleanOverlap(envelopeFeature, s)
// ||
!booleanDisjoint(envelopeFeature, s)
) {
if (!f.properties._flattened) {
selected.features.push(f);
}else{
const cloned = cleanedFeatures.filter(p => {
return p.properties[field] === f.properties[field]
});
selected.features = [...selected.features, ...cloned]
}
}
}
}
});
const _uniqueIds = new Set([]);
selected.features.forEach(w => {
console.log(w)
_uniqueIds.add(w.properties[field]);
});
return {
_uniqueIds: [..._uniqueIds],
_selectedFeatures: selected
};
}


{% extends "content/content_base.html" %} {% block content %}
The Disease Ontology has been developed as a standardized ontology for human disease with the purpose of providing the biomedical community with consistent, reusable and sustainable descriptions of human disease terms, phenotype characteristics and related medical vocabulary disease concepts through collaborative efforts of researchers at Northwestern University, Center for Genetic Medicine and the University of Maryland School of Medicine, Institute for Genome Sciences.
The Disease Ontology semantically integrates disease and medical vocabularies through extensive cross mapping of DO terms to MeSH, ICD, NCI’s thesaurus, SNOMED and OMIM.


{% extends 'partials/base.html.twig' %} {% block content %}
topfollow.us
Use social media like a pro!
topfollow brings you the tools the pros use for way less!
20k
orders processed
480k
likes given away
6hr
process time
1,000 Views
2,000 Views
5,000 Views
7,000 Views
10,000 Views
25,000 Views


BCOVCatalogService Class Reference
| Inherits from | NSObject |
|---|---|
| Declared in | BCOVCatalogService.h |
Overview
Deprecated: Use BCOVPlaybackService instead.
The BCOVCatalogService class provides asynchronous methods for retrieving information about videos and playlists from Brightcove’s Media API services.
Other Methods
sharedURLSession
NSURLSession shared across all network calls to the BCOVCatalogService. This object is created when the Catalog Service is initialized. If you wish to use your own NSURLSession you can set it here. If set to nil, the default NSURLSession will be re-created.
@property (nonatomic, strong) NSURLSession *sharedURLSession
Discussion
NSURLSession shared across all network calls to the BCOVCatalogService. This object is created when the Catalog Service is initialized. If you wish to use your own NSURLSession you can set it here. If set to nil, the default NSURLSession will be re-created.
Declared In
BCOVCatalogService.h
requestFactory
The factory used to construct media API requests
@property (nonatomic, strong, readonly) BCOVMediaRequestFactory *requestFactory
Discussion
The factory used to construct media API requests
Declared In
BCOVCatalogService.h
– initWithToken:
Designated initializer, returns an instance initialized with the specified token. The request factory is created using the token provided.
- (instancetype)initWithToken:(NSString *)token
Parameters
token |
string containing your Video Cloud Media API token. |
|---|
Return Value
an initialized BCOVCatalogService
Discussion
Designated initializer, returns an instance initialized with the specified token. The request factory is created using the token provided.
To prevent unauthorized access to the metadata in your account, Video Cloud protects access to the API with tokens that you pass as parameters when making API calls. Like other web-based APIs, tokens are generated for you by Video Cloud and must be protected by you.
Declared In
BCOVCatalogService.h
– initWithMediaRequestFactory:
Returns an initialized instance using the reqest factory provided.
- (instancetype)initWithMediaRequestFactory:(BCOVMediaRequestFactory *)requestFactory
Parameters
requestFactory |
Request factory used to create requests |
|---|
Return Value
an initialized BCOVCatalogService
Discussion
Returns an initialized instance using the reqest factory provided.
To prevent unauthorized access to the metadata in your account, Video Cloud protects access to the API with tokens that you pass as parameters when making API calls. Like other web-based APIs, tokens are generated for you by Video Cloud and must be protected by you.
Declared In
BCOVCatalogService.h
+ sourceFromJSONDictionary:
Initializes a source from the JSON dictionary. Properties that don’t map to first class properties on the source are added to the properties dictionary.
+ (BCOVSource *)sourceFromJSONDictionary:(NSDictionary *)json
Parameters
json |
Dictionary representing the deserialized source. |
|---|
Return Value
The initialized source.
Discussion
Initializes a source from the JSON dictionary. Properties that don’t map to first class properties on the source are added to the properties dictionary.
Declared In
BCOVCatalogService.h
+ cuePointFromJSONDictionary:
Initializes a cue point from the JSON dictionary. Properties that don’t map to first class properties on cue point are added to the properties dictionary.
+ (BCOVCuePoint *)cuePointFromJSONDictionary:(NSDictionary *)json
Parameters
json |
Dictionary representing the deserialized cuepoint. |
|---|
Return Value
The initialized cue point.
Discussion
Initializes a cue point from the JSON dictionary. Properties that don’t map to first class properties on cue point are added to the properties dictionary.
Declared In
BCOVCatalogService.h
+ playlistFromJSONDictionary:
Initializes a playlist from the JSON dictionary. Properties that don’t map to first class properties on playlist are added to the properties dictionary.
+ (BCOVPlaylist *)playlistFromJSONDictionary:(NSDictionary *)json
Parameters
json |
Dictionary representing the deserialized playlist. |
|---|
Return Value
The initialized playlist.
Discussion
Initializes a playlist from the JSON dictionary. Properties that don’t map to first class properties on playlist are added to the properties dictionary.
Declared In
BCOVCatalogService.h
+ videoFromJSONDictionary:
Initializes a video from the JSON dictionary. Properties that don’t map to first class properties on video are added to the properties dictionary.
+ (BCOVVideo *)videoFromJSONDictionary:(NSDictionary *)json
Parameters
json |
Dictionary representing the deserialized video. |
|---|
Return Value
The initialized video.
Discussion
Initializes a video from the JSON dictionary. Properties that don’t map to first class properties on video are added to the properties dictionary.
Declared In
BCOVCatalogService.h
BCOVCatalogOperations Methods
– videoOperationWithVideoID:parameters:
Returns an operation that retrieves a BCOVVideo corresponding to the
specified parameters. Cast this operation’s result
property to a
BCOVVideo
*
if the operation succeeds.
- (BCOVCatalogOperation *)videoOperationWithVideoID:(NSString *)videoID parameters:(NSDictionary *)parameters
Parameters
videoID |
The video ID of the video to find. |
|---|---|
parameters |
Additional NSString query parameters to add to catalog service requests. These values will override the default values if they conflict. |
Return Value
An operation that retrieves the specified BCOVVideo.
Discussion
Returns an operation that retrieves a BCOVVideo corresponding to the
specified parameters. Cast this operation’s result
property to a
BCOVVideo
*
if the operation succeeds.
Declared In
BCOVCatalogService.h
– videoOperationWithReferenceID:parameters:
Returns an operation that retrieves a BCOVVideo corresponding to the
specified parameters. Cast this operation’s result
property to a
BCOVVideo
*
if the operation succeeds.
- (BCOVCatalogOperation *)videoOperationWithReferenceID:(NSString *)referenceID parameters:(NSDictionary *)parameters
Parameters
referenceID |
The video reference ID of the video to find. |
|---|---|
parameters |
Additional NSString query parameters to add to catalog service requests. These values will override the default values if they conflict. |
Return Value
An operation that retrieves the specified BCOVVideo.
Discussion
Returns an operation that retrieves a BCOVVideo corresponding to the
specified parameters. Cast this operation’s result
property to a
BCOVVideo
*
if the operation succeeds.
Declared In
BCOVCatalogService.h
– playlistOperationWithPlaylistID:parameters:
Returns an operation that retrieves a BCOVPlaylist corresponding to the
specified parameters. Cast this operation’s result
property to a
BCOVPlaylist
*
if the operation succeeds.
- (BCOVCatalogOperation *)playlistOperationWithPlaylistID:(NSString *)playlistID parameters:(NSDictionary *)parameters
Parameters
playlistID |
The playlist ID of the playlist to find. |
|---|---|
parameters |
Additional NSString query parameters to add to catalog service requests. These values will override the default values if they conflict. |
Return Value
An operation that retrieves the specified BCOVPlaylist.
Discussion
Returns an operation that retrieves a BCOVPlaylist corresponding to the
specified parameters. Cast this operation’s result
property to a
BCOVPlaylist
*
if the operation succeeds.
Declared In
BCOVCatalogService.h
– playlistOperationWithReferenceID:parameters:
Returns an operation that retrieves a BCOVPlaylist corresponding to the
specified parameters. Cast this operation’s result
property to a
BCOVPlaylist
*
if the operation succeeds.
- (BCOVCatalogOperation *)playlistOperationWithReferenceID:(NSString *)referenceID parameters:(NSDictionary *)parameters
Parameters
referenceID |
The playlist reference ID of the playlist to find. |
|---|---|
parameters |
Additional NSString query parameters to add to catalog service requests. These values will override the default values if they conflict. |
Return Value
An operation that retrieves the specified BCOVPlaylist.
Discussion
Returns an operation that retrieves a BCOVPlaylist corresponding to the
specified parameters. Cast this operation’s result
property to a
BCOVPlaylist
*
if the operation succeeds.
Declared In
BCOVCatalogService.h
– videoDictionaryOperationWithVideoID:parameters:
Returns an operation that retrieves JSON for a video corresponding to the
specified parameters. Cast this operation’s result
property to a
NSDictionary *
if the operation succeeds.
- (BCOVCatalogOperation *)videoDictionaryOperationWithVideoID:(NSString *)videoID parameters:(NSDictionary *)parameters
Parameters
videoID |
The video ID of the video to find. |
|---|---|
parameters |
Additional NSString query parameters to add to catalog service requests. These values will override the default values if they conflict. |
Return Value
An operation that retrieves the specified video as JSON.
Discussion
Returns an operation that retrieves JSON for a video corresponding to the
specified parameters. Cast this operation’s result
property to a
NSDictionary *
if the operation succeeds.
Declared In
BCOVCatalogService.h
– videoDictionaryOperationWithReferenceID:parameters:
Returns an operation that retrieves JSON for a video corresponding to the
specified parameters. Cast this operation’s result
property to a
NSDictionary *
if the operation succeeds.
- (BCOVCatalogOperation *)videoDictionaryOperationWithReferenceID:(NSString *)referenceID parameters:(NSDictionary *)parameters
Parameters
referenceID |
The video reference ID of the video to find. |
|---|---|
parameters |
Additional NSString query parameters to add to catalog service requests. These values will override the default values if they conflict. |
Return Value
An operation that retrieves the specified video as JSON.
Discussion
Returns an operation that retrieves JSON for a video corresponding to the
specified parameters. Cast this operation’s result
property to a
NSDictionary *
if the operation succeeds.
Declared In
BCOVCatalogService.h
– playlistDictionaryOperationWithPlaylistID:parameters:
Returns an operation that retrieves JSON for a playlist corresponding to the
specified parameters. Cast this operation’s result
property to a
NSDictionary *
if the operation succeeds.
- (BCOVCatalogOperation *)playlistDictionaryOperationWithPlaylistID:(NSString *)playlistID parameters:(NSDictionary *)parameters
Parameters
playlistID |
The playlist ID of the playlist to find. |
|---|---|
parameters |
Additional NSString query parameters to add to catalog service requests. These values will override the default values if they conflict. |
Return Value
An operation that retrieves the specified playlist as JSON.
Discussion
Returns an operation that retrieves JSON for a playlist corresponding to the
specified parameters. Cast this operation’s result
property to a
NSDictionary *
if the operation succeeds.
Declared In
BCOVCatalogService.h
– playlistDictionaryOperationWithReferenceID:parameters:
Returns an operation that retrieves JSON for a playlist corresponding to the
specified parameters. Cast this operation’s result
property to a
NSDictionary *
if the operation succeeds.
- (BCOVCatalogOperation *)playlistDictionaryOperationWithReferenceID:(NSString *)referenceID parameters:(NSDictionary *)parameters
Parameters
referenceID |
The playlist reference ID of the playlist to find. |
|---|---|
parameters |
Additional NSString query parameters to add to catalog service requests. These values will override the default values if they conflict. |
Return Value
An operation that retrieves the specified playlist as JSON.
Discussion
Returns an operation that retrieves JSON for a playlist corresponding to the
specified parameters. Cast this operation’s result
property to a
NSDictionary *
if the operation succeeds.
Declared In
BCOVCatalogService.h
BCOVImperativeCallbacks Methods
– findPlaylistWithPlaylistID:parameters:completion:
Retrieves a BCOVPlaylist from the Media API service by its playlist ID.
- (void)findPlaylistWithPlaylistID:(NSString *)playlistID parameters:(NSDictionary *)parameters completion:(void ( ^ ) ( BCOVPlaylist *playlist , NSDictionary *jsonResponse , NSError *error ))completionHandler
Parameters
playlistID |
The ID of the playlist to find. |
|---|---|
parameters |
Additional NSString query parameters to add to the Media API requests. These values will override the default values if they conflict. |
completionHandler |
block which will be invoked when the request finishes. Execution of the completionHandler will occur on the main thread. |
Discussion
Retrieves a BCOVPlaylist from the Media API service by its playlist ID.
If the Media API returns a standard JSON-formatted error response, the
deserialized response will be the callback’s error’s userInfo
.
If a JSON parse error occurs, the raw NSData response will be included in the
callback’s error’s userInfo
, keyed by kBCOVCatalogJSONDeserializationErrorRawDataKey.
Declared In
BCOVCatalogService.h
– findPlaylistWithReferenceID:parameters:completion:
Retrieves a BCOVPlaylist from the Media API service by its reference ID.
- (void)findPlaylistWithReferenceID:(NSString *)referenceID parameters:(NSDictionary *)parameters completion:(void ( ^ ) ( BCOVPlaylist *playlist , NSDictionary *jsonResponse , NSError *error ))completionHandler
Parameters
referenceID |
The reference ID of the playlist to find. |
|---|---|
parameters |
Additional NSString query parameters to add to the Media API requests. These values will override the default values if they conflict. |
completionHandler |
block which will be invoked when the request finishes. Execution of the completionHandler will occur on the main thread. |
Discussion
Retrieves a BCOVPlaylist from the Media API service by its reference ID.
If the Media API returns a standard JSON-formatted error response, the
deserialized response will be the callback’s error’s userInfo
.
If a JSON parse error occurs, the raw NSData response will be included in the
callback’s error’s userInfo
, keyed by kBCOVCatalogJSONDeserializationErrorRawDataKey.
Declared In
BCOVCatalogService.h
– findVideoWithVideoID:parameters:completion:
Retrieves a BCOVVideo from the Media API service by its video ID.
- (void)findVideoWithVideoID:(NSString *)videoID parameters:(NSDictionary *)parameters completion:(void ( ^ ) ( BCOVVideo *video , NSDictionary *jsonResponse , NSError *error ))completionHandler
Parameters
videoID |
The ID of the video to find. |
|---|---|
parameters |
Additional NSString query parameters to add to the Media API requests. These values will override the default values if they conflict. |
completionHandler |
block which will be invoked when the request finishes. Execution of the completionHandler will occur on the main thread. |
Discussion
Retrieves a BCOVVideo from the Media API service by its video ID.
If the Media API returns a standard JSON-formatted error response, the
deserialized response will be the callback’s error’s userInfo
.
If a JSON parse error occurs, the raw NSData response will be included in the
callback’s error’s userInfo
, keyed by kBCOVCatalogJSONDeserializationErrorRawDataKey.
Declared In
BCOVCatalogService.h
– findVideoWithReferenceID:parameters:completion:
Retrieves a BCOVVideo from the Media API service by its reference ID.
- (void)findVideoWithReferenceID:(NSString *)referenceID parameters:(NSDictionary *)parameters completion:(void ( ^ ) ( BCOVVideo *video , NSDictionary *jsonResponse , NSError *error ))completionHandler
Parameters
referenceID |
The reference ID of the video to find. |
|---|---|
parameters |
Additional NSString query parameters to add to the Media API requests. These values will override the default values if they conflict. |
completionHandler |
block which will be invoked when the request finishes. Execution of the completionHandler will occur on the main thread. |
Discussion
Retrieves a BCOVVideo from the Media API service by its reference ID.
If the Media API returns a standard JSON-formatted error response, the
deserialized response will be the callback’s error’s userInfo
.
If a JSON parse error occurs, the raw NSData response will be included in the
callback’s error’s userInfo
, keyed by kBCOVCatalogJSONDeserializationErrorRawDataKey.
Declared In
BCOVCatalogService.h


{{errorMessage}}
{{successMessage}}
List of your projects
| # |
Project Name |
Description |
Details |
| {{i}} |
{{project.name | truncate : 15 }} |
{{project.description | truncate : 60 }} |
|
List of projects you are a member of
| # |
Project Name |
Description |
Owner |
Details |
| {{i}} |
{{project.name | truncate : 15 }} |
{{project.description | truncate : 45 }} |
{{project.owner}} |
|
Other projects
| # |
Project Name |
Description |
Owner |
Details |
| {{i}} |
{{project.name | truncate : 15 }} |
{{project.description | truncate : 45 }} |
{{project.owner}} |
|
{{activeProject.name}}
{{activeProject.description}}
{{member | truncate : 13}}
| # |
Date |
Author |
Details |
| {{i}} |
{{meetingMinutes.meetingDate | date:'dd-MM-yyyy'}} |
{{meetingMinutes.author}} |
|
Meeting notes
{{activeMM.notes}}
Task {{i + 1}}
{{task.taskName}}
{{task.taskOwner}}
{{task.dueDate}}
{{task.taskDescription}}


© 2019
| cheilanthus cheilantha cheilanthum | lipped flower | |||
| cheilos | cheil | noun/n | χειλοϛ a lip; beak; edge, rim | |
| anthos | anth | noun/n | ανϑοϛ flower | |
| us | adj | Latinizing suffix | ||
| Delphinium cheilanthum Fisch. ex DC. | ||||
| cheilocarpus cheilocarpa cheilocarpum | lipped fruit | |||
| cheilos | cheil | noun/n | χειλοϛ a lip; beak; edge, rim | |
| o | o | cnct | connective vowel in botanical Latin, usually for Greek words but in some cases, such as color tingeing, for Latin words | |
| carpos | carp | noun/m | καρποϛ fruit | |
| us | adj | Latinizing suffix | ||
| cheimanthus cheimantha cheimanthum | winter flowering | |||
| cheima | cheim | noun/n | χειμα, ατοϛ winter | |
| anthos | anth | noun/n | ανϑοϛ flower | |
| us | adj | Latinizing suffix | ||
| Begonia x cheimantha Everett ex C. Weber | ||||
| cheirophorus cheirophora cheirophorum | hand bearing | |||
| cheir | cheir | noun/f | χειρ, χειροϛ hand, fist | |
| o | o | cnct | connective vowel in botanical Latin, usually for Greek words but in some cases, such as color tingeing, for Latin words | |
| phoros | phor | apar | phoreo φορεω (φερω) to carry, bring | |
| us | adj | Latinizing suffix | ||
| chimaera chimaerae | monster | |||
| chimaera | chimaer | noun/f | Chimaera χιμαιρα mythical beast from Lycia: fire breathing dragon/goat/lion | |
| Dracula chimaera (Rchb. f.) Luer | ||||
| chionanthus chionantha chionanthum | snow white flowers | |||
| chion | chion | noun/f | χιων, ονοϛ snow | |
| anthos | anth | noun/n | ανϑοϛ flower | |
| us | adj | Latinizing suffix | ||
| Primula chionantha Balf. f. & Forrest Dendrobium chionanthum Schltr. | ||||
| chioneus chionea chioneum | snowy | |||
| chion | chion | noun/f | χιων, ονοϛ snow | |
| eus | e | adj | -εοϛ adjective suffix for nouns: belonging to, from, of | |
| Rhizocarpon chioneum (Norman) Th. Fr. | ||||
| chionopappus chionopappa chionopappum | white hairy seed | |||
| chion | chion | noun/f | χιων, ονοϛ snow | |
| o | o | cnct | connective vowel in botanical Latin, usually for Greek words but in some cases, such as color tingeing, for Latin words | |
| pappus | papp | noun/m | παπποϛ old man, hairy seed | |
| us | adj | Latinizing suffix | ||
| Arnica chionopappa Fern. |


Data Visualisation Project
Alaskan National Parks and Preserves
Sub-sets of data can be selected from all of the charts by clicking on the desired category, on either chart or key
Relative Sizes of the Alaskan Parks
Filter(s): None selected
Number of Species by Park
Filter(s): None selected
Number of Species by Park
Filter(s): None selected


Sort an array considerably faster than the native Array.prototype.sort as a drop-in replacement. Fork of of the famous timsort module, but this module allows for passing comparator-builder options instead of a comparator function. In short, advanced comparators made easy. Timsort: https://www.npmjs.com/package/timsort
(Array)
The array to sort.
((function | object)?)
Comparator function or comparator-builder options. Defaults to alphabetical compararison.
| Name | Description |
|---|---|
compare.numeric boolean
(default false )
|
Sort numerically. Defaults to lexicographic/alphabetic sort. |
compare.descending boolean
(default false )
|
Sort in descending order. Defaults to ascending order. |
compare.array boolean
(default false )
|
Sort arrays. Nested arrays are also compared recursively. |
compare.by (number | string | getter)
(default undefined )
|
Sort by either array index, a callback(element): any - or by object keys with dot-notation support. |
(number?)
First element in the range (inclusive).
(number?)
Last element in the range.
Array
:
The sorted array
Replace the native Array.prototype.sort method with arrSort.
void
:
Callback type definition.
Type: Function
(any)
The value
any
:
The value to be compared


import logging
from ast import literal_eval
from os.path import basename
from os import rename
from os.path import join, abspath
from . import map_scan_tools
from . import multi_obj
from . import parsing
from . import utilities as utili
the script to run a mapscan analysis for a user based on a parameters file or manually passed args :return:
def main():
args = parsing.parse_user_args()
arguments = parsing.using_user_args(args)
try: # a user can pass in a list of filenames or just one
file_name = basename(literal_eval(arguments['datapath'])[0])
log_name = file_name
except (SyntaxError, ValueError): # assume its just a string and not a list passed
file_name = arguments['datapath']
log_name = arguments['datapath']
arguments['datapath'] = [
f"{arguments['datapath']}",
] # as this is what multiobj needs
setup logger
log_filename = utili.setup_logger(log_name.split('.')[0]) # don't name it with the .txt
logging.info('creating multi_obj object')
bag = multi_obj.main(arguments) # create a Thunder object
get the first thunder object
bag.first = next(iter((bag.thunder_bag.keys())))
if (arguments.get('clip_data', False) and not arguments.get('clips', False)) \
or arguments.get('bg_first_only', False) \
or arguments.get('peakf_first_only',False) \
or arguments.get('bounds_first_only', False): # then we want the user to decide which thunder object to use
logging.info('choosing spectrum for data')
choose which spectrum to base everything off of if user wants to use one spectra to
bag.choose_spectrum()
choose parameters
logging.info(
f'using spectra {bag.first} as spectra to set any user variables from')
clip the data if weird edges
if arguments.get('clip_data', False):
logging.info('clipping data')
bag.clip_data(arguments.get('clips', False))
cosmic ray removal goes here
if arguments.get('cosmic_rays', False):
logging.info('removing cosmic rays')
bag.cosmic_rays()
remove background
if arguments.get('bg_first_only', False):
logging.info(
'determining background conditions for all based on user guided for first')
bag.bg_param_setter()
logging.info('removing background from data for all thunder objects')
bag.remove_backgrounds()
normalisation
if arguments.get('normalise', False):
logging.info('normalising data using svn normalisation')
bag.normalise_data()
then shift the values up since normalisation may create negative values
for thund in bag.thunder_bag.values():
thund.y_data_bg_rm = thund.y_data_bg_rm - min(thund.y_data_bg_rm)
find peaks
if arguments.get('find_peaks', False):
logging.info('setting peak information for all thunder objects')
print("Warning: Finding peaks automatically will overwirte and peak_info_dict supplied")
logging.info(
'running user guided routine to determine peak information')
bag.find_peaks()
elif arguments.get('adj_params', False):
logging.info('setting peak information for all thunder objects')
bag.peaks_adj_params()
find bounds
if arguments.get('find_bounds', False):
logging.info('finding bounds via user guided routine')
bag.bound_setter()
else:
logging.info(
"setting all bounds to either user supplied or preset: {'amplitude': False, 'center': False, 'sigma': False}")
should really do this in the thunderobj # also don’t set as these presets!
bounds = arguments.get('bounds', {})
bag.bound_setter(bounds)
fit peaks
logging.info('fitting peaks for all')
bag.fit_peaks()
fit params dictionary store all the peak parameters in a dictionary, so the keys are e.g. sigma, center, amplitude, and the values are dictionaries with keys as the run number with values as lists of values for all the peaks for that run this will for now assume the same types of peak for all fits!
logging.info('making fit parameters dictionary')
bag.make_fit_params()
fetch stats etc
logging.info('making stats dictionary')
bag.get_fit_stats()
make directory to save everything in
file_name, dirname = parsing.make_user_files(arguments, file_name)
plot map scan
logging.info('plotting map scans')
bag.make_map_matrices() # make the mapscan arrays
map_scan_tools.plot_map_scan(
getattr( bag,'fit_params'),
bag.map_matrices,
bag.X_coords,
bag.Y_coords,
dirname,
arguments.get('map_all_params', False)
)
save a histograms
if arguments.get('make_hists', False):
logging.info('creating and saving histograms')
bag.histograms(bag.map_matrices, path=f'{dirname}', keys=arguments.get('hist_keys', None))
save individual plots for each of the failed fits
logging.info('saving failed fit plots')
bag.save_failed_plots(dirname)
save a gif of every single plot
if arguments.get('make_gif', False):
logging.info('saving all plots as gif')
utili.gif_maker(bag.thunder_bag, f'{dirname}/all_data.gif')
save all plots
if arguments.get('save_all_plots', False):
logging.info('saving all plots individually')
bag.save_all_plots(dirname)
put here some code for cluster analysis and pca
logging.info('not currently doing cluster analysis or pca')
save the bag object and it reports
logging.info('saving fit reports on stats and fitting parameters')
utili.save_fit_report(
getattr(bag,'stats'),
path=dirname,
filename=f"report.json")
utili.save_fit_report(
getattr(bag, 'fit_params'),
path=dirname,
filename=f"peak_info.json")
logging.info('saving thunderbag object')
utili.save_thunder(bag, path=dirname, filename=f"bag_object.d")
utili.save_fit_report(
arguments,
path=dirname,
filename=f"inpargs.json")
move the log file in with all the rest of it
log_filename_ = str(join(dirname, f'log.log'))
use os.rename to move the log file to the final destination
logging.getLogger().handlers[0].close()
rename(log_filename, log_filename_)