Comments (7)
Thanks for reporting this Nico. Initially I was torn on this, since it encourages you to fix the provenance file, but it might make more sense to issue a warning.
from cloud-volume.
On second thought, the warning should be better, but this should be an irrecoverable error, and not only for motivational purposes. If we continue to allow processing, say using an empty version of the provenance file, it's likely that it will get committed and overwrite the extremely useful but ill formatted notes already existing.
Alternatively, we could ban editing the provenance file from CloudVolume in cases where the JSON is corrupted. What do you think @nkemnitz?
from cloud-volume.
I have another idea that I think I'm just going to go with. We should use json5 (http://json5.org/) instead to make it easier to write the provenance files and make them accept things like trailing commas.
from cloud-volume.
I am not sure if I understand: Why is the provenance
file loaded? I thought that is a human-readable info file with contact information. For running tasks, I should only need the info
file, right?
If it is necessary to return an error message, then I would say it should go to the maintainers of the dataset/layer, not to the end-user :P
from cloud-volume.
You can also use the provenance file to detail how the dataset is being modified and, yes, send messages to maintainers. I'm including a way to override the provenance file in the constructor in another PR.
from cloud-volume.
The json5 solution is definitely a suitable workaround for the specific issue I had - thanks.
But I think it does not fix the underlying design flaw: If someone wants to work with the data alone (e.g. getting cutouts), then there is no need to download and parse the (possibly invalid) provenance file.
from cloud-volume.
No one has complained about this since this issue was opened, so I'm going to consider my solution a success. :) Only valid provenance files are written!
from cloud-volume.
Related Issues (20)
- save meshes in sharded neuroglancer precomputed HOT 2
- relax simplejpeg and pyspng-seunglab requirements HOT 4
- Relax uint64 casting of root ids HOT 2
- cloudvolume.exceptions.EmptyVolumeException after move to GCP bucket HOT 3
- cv.download and cv.download_point shift to the next full multiple of 128 HOT 2
- Problem with Downloading Graphene Meshes HOT 2
- Cloud volume that is made on linux machine does not open in neuroglancer in safari HOT 13
- Downloading H01's 4nm_raw Retrieves Only Zeros, Despite Non-Zero Contents in NG HOT 11
- Numpy incompatibility across required packages on python 3.10/OS X HOT 2
- How to get the segments and segment query from volumes for mesh? HOT 1
- Is there a way to rotate a volume on the XZ axis? HOT 1
- Using frangi filter SimpleItk results in empty segmentation HOT 2
- bug in saving precomputed meshes: unexpected keyword argument 'fuse'
- Is there a way to get points from a segmentation HOT 2
- is there a way to remove parts of a mesh where the skeleton is not fully connected HOT 2
- Load BossDB S3 URI Error HOT 3
- How to void the cloudvolume.exceptions.EmptyVolumeException
- Incompatible with python 3.12 HOT 11
- Installing on mac M1 - fastremap HOT 2
- Installing cloudvolume from an environment fails because of greenlet HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cloud-volume.