-
Notifications
You must be signed in to change notification settings - Fork 40
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
supports upload task with gz #999
Conversation
da5934e
to
5371b8a
Compare
Currently, we only use hdf5 when there are custom datasets in the simulation, otherwise we upload the json version. With this change, we'll always use a compressed hdf5, is that correct? Are there any downsides to this option? Other than that, the use of |
3d6e077
to
d121071
Compare
I forget why we decided to upload the json if no data was present (instead of just all hdf5). There must have been some reason, maybe @momchil-flex remembers. Anyway, what is the main advantage of this PR? I'm reluctant to make potentially breaking changes to the webapi so want to make sure it is worth changing things. Also I think it would be helpful for @lei-flex to take a look because I'm not sure how this affects our backend pipeline |
GUI is transitioning to working with We need to remove or modify the Lines 464 to 513 in d121071
Modifying would mean e.g. trying to download the file directly, and if failing trying to donwload the Currently the mode solver does not support hdf5.gz. In general I think we will wait a little with merging this PR. |
3afe5a3
to
e5a6740
Compare
|
6f064fe
to
4ec5d8a
Compare
Actually, looking at the code again, I propose something else: modifying Note that there are two pylint errors in the tests. The one about protected access can be avoided by placing a comment |
4ec5d8a
to
f52bb7a
Compare
|
09c2978
to
27a356d
Compare
9e917aa
to
a6cb324
Compare
2b9105a
to
52a0e89
Compare
Ok, actually I see that there is a bit of a mess that needs to be cleaned up. There are two different HDF5 files. The @magiWei I can help take care of this part once SimulationTask is updated properly. However, I think some changes are still needed there. Currently, it seems that you continue to upload both a
Does that make sense? |
b64c87f
to
c0c16ed
Compare
Changed!And there is a unit test failure, I don't know the specific reason, can you help fix it? |
Looks like tests fail but this time due to an issue related to this PR |
c0c16ed
to
54df709
Compare
Fixed. |
Thanks @magiWei I think this looks good now. I will just make a few cosmetic changes before merging (next week). |
84c9f15
to
90c1252
Compare
@tylerflex this is the last frontend PR apart from the pydantic one. I rebased it and fixed eveyrthing up as it was somewhat stale, and tested and it seems to work. Note that with this, hdf5.gz will always be uploaded instead of json/hdf5. The solver already supports that and GUI team is working on supporting this when they switch to 2.4. The one thing I'm wondering about is these types of statements where a regular "print" is used. https://github.com/flexcompute/tidy3d/pull/999/files#diff-9ef8b43458a5c52262aae2f54d04b0ca7d2f8e141fded282948a9f2413cc3f80R328-R329 Is this handled correctly or should it be some sort of e.g. console.log? |
It should be like this
|
90c1252
to
0b077fb
Compare
No description provided.