Fix for large PSF Data#2
Conversation
|
Hi, I want to take a better look at what you are changing. I don't quite understand what the patch does - and I noticed you did not merge your patch into Henrik's stream (though he doesn't appear to have changed much since 2014). I also noticed your C++ solution appears much more elegant. I wonder if I can get the Julia changes to look as good. It might be a bit easier for me to if I knew what I was fixing. For example:
I do appreciate the fix and will try to get it integrated when I get some time. |
|
I think I understood what you were trying to do, and added a similar solution to the Notes:
Please verify that this solution works for you. I will create a new release if it does. |
|
Hey, |
|
Sorry, I was unavailable for a few days. Hmm.. True, but the new function does differentiate between the two chunks. It does so through definitions that result in the following: It is just better form to not hard-code these values in. -> But I might have made a mistake reverse-engineering your solution. There appeared to be a fair amount of unused code. The solution you proposed to henjo's stream was much more setreamlined. Questions
Sample fileIf I understand correctly, this issue is not really about total file size. I suspect that your file writer leaves zero padding for no good reason. My own file writer (PSFWrite.jl) never puts zero padding for Maybe try to generate a dataset (run a simulation?) where the number of data points is no more than 2 or 3 of the window sizes ( |
|
I'm pretty sure I tested the correct master branch as the error is different than before, but here is a sample file to test for my case (https://drive.google.com/open?id=12MbQNTL5VRCsUhsmZm3I1nwhp99S91pE). The error occurs while reading out the timing (readsweep()) or one net (read('',"CK")). I think now something is wrong with the pointer. About the situation, with the very first chunk, I'm not sure. The data is directly generated from a SPICE simulation and I think that there is unnecessary zero patting. |
|
Ok. I can now read your file no problem. It seems like you must re-read the chunkid after skipping over the padded data. Can you confirm everything is ok at your end? I initiated the process of tagging a new version, but it might take a while to make it into Julia's Registry. Sorry for the delay. |
|
Ok. Everything should be properly tagged now. |
Hey,
I found an error if you try to read large PSF data. Tried to fix it the same way as explained in henjo/libpsf@61d8c0f . For me it worked.
Best regards
Yannick