How to use the ck.kernel.load_json_file function in ck

To help you get started, we’ve selected a few ck examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ctuning / ctuning-programs / program / convert3.py View on Github external
import ck.kernel as ck

r=ck.access('list #* out=none')
if r['return']>0: 
   print 'Error: '+r['error']
   exit(1)

lst=r['lst']

r=ck.load_json_file({'json_file':'convert2.json'})
if r['return']>0:
   print 'Error: '+r['error']
   exit(1)
d1=r['dict']

dtags={}

for q in lst:
    m=q['module_uoa']
    d=q['data_uoa']

    print ('***********************************')
    print (d)

    r=ck.access({'action':'load',
                 'module_uoa':m,

ck

Collective Knowledge - a lightweight knowledge manager to organize, cross-link, share and reuse artifacts and workflows based on FAIR principles

Apache-2.0
Latest version published 4 months ago

Package Health Score

78 / 100
Full package analysis

Similar packages