wut-web-dev cruft inputish outputish
parent
70954759d2
commit
82d7902d04
|
@ -12,7 +12,7 @@
|
|||
"#\n",
|
||||
"# GPLv3+\n",
|
||||
"\n",
|
||||
"import simplejson as json\n",
|
||||
"import json\n",
|
||||
"import os\n",
|
||||
"import random\n",
|
||||
"import tempfile\n",
|
||||
|
@ -207,8 +207,8 @@
|
|||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"import pandas as pd\n",
|
||||
"from pandas.io.json import json_normalize"
|
||||
"#import pandas as pd\n",
|
||||
"#from pandas.io.json import json_normalize"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
@ -220,18 +220,12 @@
|
|||
"def wutObs(datObs):\n",
|
||||
" if int(datObs) > ( minobsid - 1 ) and int(datObs) < maxobsid:\n",
|
||||
" obsjsonfile=('/srv/satnogs/download/' + format(datObs) + '/' + format(datObs) + '.json')\n",
|
||||
" !cat $obsjsonfile\n",
|
||||
" #!cat $obsjsonfile\n",
|
||||
" print('observation json file: ', obsjsonfile )\n",
|
||||
" data=pd.read_json(obsjsonfile, orient='values')\n",
|
||||
" with open(obsjsonfile) as f:\n",
|
||||
" data = json.load(f)\n",
|
||||
" print(data)\n",
|
||||
" obsstart=data['start']\n",
|
||||
" obswaterfall=data['waterfall']\n",
|
||||
" print('obswaterfall', obswaterfall)\n",
|
||||
" waterfallurl=pd.Series.to_string(obswaterfall, index=False)\n",
|
||||
" print(waterfallurl)\n",
|
||||
" waterfallstring=os.path.basename(waterfallurl)\n",
|
||||
" print(waterfallstring)\n",
|
||||
" # print('waterstring:', waterstring)"
|
||||
" print(type(data))"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue