New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Backwards compatibility of annotations #247
Comments
Unfortunately, yes, the latest changes we have made to support multi-track annotations have led to a break in back-compatibility. One solution might be to use the old version to export the annotations to some other readable format that contains all the pertinent information (start and end times of annotations, values for each attribute, etc), and then have an app using the new psi version to read the exported file and generate a stream of |
Thank you for your assistance. This is the old schema file: |
So the sketch of the solution to migrate the annotations would look like this: Step 1. Write a \psi application (using the old version of psi) that reads the annotation stream and writes it (perhaps via some Step 2. Create a new annotation schema file. Based on the schema you have sent above, I think the new annotation schema file should probably look something like this:
Save this file under a name like LevelsOfNeed.schema.json Step 3. Write a new \psi application (using the new version of psi) that reads all the information about your annotations from the text file you wrote at step 1, and creates a new stream with messages of type var annotationSchema = AnnotationSchema.LoadFrom(path + "LevelsOfNeed.schema.json"); To create a stream of Either way, once you have the stream, you need to write it to a psi store, like this: annotationsStream.Write(annotationSchema, $"Objects", outputStore); Note that this is a bit different than the regular operator for writing psi streams to a store, in that the first parameter will be the annotationSchema object, then followed by the stream name and the output store. Hope this helps, but if you go down this path and get stuck/have concrete questions, please continue posting to the issue. |
We used a generator and wrote the stream to a new store. We can visualize the new annotation stream in PsiStudio and it appears to align with the audio stream. However, we are having difficulty reading from the store in a new \psi application. When comparing the metadata of the annotations generated from the CSV file and new annotations we created in PsiStudio using the same schema, it appears that the creation times are different. Could the creation time be a possible source of the problem and if so how can we change the creation time? |
To better understand the problem, could you provide a bit more details regarding:
|
I am having difficulty reading in annotations on 0.17.52.1 that were created in 0.15.49.1. It seems that there were changes to
TimeIntervalAnnotation
andTimeIntervalAnnotationSet
that prevent the data from being deserialized. Is there a recommend workaround?The text was updated successfully, but these errors were encountered: