dvid
dvid copied to clipboard
Can't update data instance /info
I have a grayscale dataset in a gbucket that I uploaded with incorrect /info
. Specifically the resolution isn't [8,8,8]
, it's supposed to be [12,12,12]
.
According to /api/help/uint8blk
, the /info
endpoint allows POST
, but when I tried to update that field, it seems not to make a difference. Here's a log of my attempt. It makes no difference if I restart the server.
In [38]: r = requests.get('http://emdata3:8800/api/node/d33093f0ea3240c5ae725b4655ec2ff6/grayscale/info')
In [39]: info = r.json()
In [40]: info['Extended']['VoxelSize'] = [12,12,12]
In [41]: r = requests.post('http://emdata3:8800/api/node/d33093f0ea3240c5ae725b4655ec2ff6/grayscale/info', json=info)
In [42]: r.status_code
Out[42]: 200
In [43]: r = requests.get('http://emdata3:8800/api/node/d33093f0ea3240c5ae725b4655ec2ff6/grayscale/info')
In [44]: r.json()['Extended']['VoxelSize']
Out[44]: [8, 8, 8]
This seems to be an issue with labelmap
instances, too. For instance, I can't edit the MaxDownresLevel
after the instance has been created.