forked from KxSystems/ml
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathml.q
25 lines (20 loc) · 732 Bytes
/
ml.q
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// ml.q - Setup for ml namespace
// Copyright (c) 2021 Kx Systems Inc
//
// Define version, path, and loadfile
\l p.q /embedPy
\d .ml
version:@[{TOOLKITVERSION};`;`development]
path:{string`ml^`$@[{"/"sv -1_"/"vs ssr[;"\\";"/"](-3#get .z.s)0};`;""]}`
loadfile:{$[.z.q;;-1]"Loading ",x:_[":"=x 0]x:$[10=type x;;string]x;system"l ",path,"/",x;}
// The following functionality should be available for all initialized sections of the library
// @private
// @kind function
// @category utility
// @fileoverview If set to `1b` deprecation warnings are ignored
i.ignoreWarning:0b
// @private
// @kind function
// @category utilities
// @fileoverview Change ignoreWarnings
updateIgnoreWarning:{[]i.ignoreWarning::not i.ignoreWarning}