-
Notifications
You must be signed in to change notification settings - Fork 4
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
Results gets wrong label #1927
Comments
Backend DB status: ubuntu@yaptide:~$ docker exec -it yaptide_flask bash -c "flask --app yaptide.application db show"
Rev: 5003b9acb1f4 (head)
Parent: 41149fa64bd2
Path: /usr/local/app/migrations/versions/5003b9acb1f4_.py
empty message
Revision ID: 5003b9acb1f4
Revises: 41149fa64bd2
Create Date: 2024-12-10 22:51:14.262553
ubuntu@yaptide:~$ docker exec -it yaptide_flask bash -c "flask --app yaptide.application db check"
INFO [alembic.runtime.migration] Context impl PostgresqlImpl.
INFO [alembic.runtime.migration] Will assume transactional DDL.
INFO [alembic.ddl.postgresql] Detected sequence named 'Estimator_id_seq' as owned by integer column 'Estimator(id)', assuming SERIAL and omitting
INFO [alembic.ddl.postgresql] Detected sequence named 'Cluster_id_seq' as owned by integer column 'Cluster(id)', assuming SERIAL and omitting
INFO [alembic.ddl.postgresql] Detected sequence named 'Logfiles_id_seq' as owned by integer column 'Logfiles(id)', assuming SERIAL and omitting
INFO [alembic.ddl.postgresql] Detected sequence named 'Page_id_seq' as owned by integer column 'Page(id)', assuming SERIAL and omitting
INFO [alembic.ddl.postgresql] Detected sequence named 'Input_id_seq' as owned by integer column 'Input(id)', assuming SERIAL and omitting
No new upgrade operations detected.
ubuntu@yaptide:~$ date
Thu Jan 2 10:44:59 UTC 2025 |
@grzanka. Json with project would be helpful to recreate issue. |
Here is the results JSON - is it enough ? |
I meant json saved from 3d editor |
Something is weird, once I click "Load to Editor" I get nothing in the editor pane. Then if I save this to a hard drive I get following, almost empty file: You can find all necessary data (bodies, zones, filters, scorers) in the JSON from this comment: I will try to recreate from scratch a smaller example to reproduce this issue. |
Here is a new one. Check results for "ZPROFILE" Results.-.Google.Chrome.2025-01-02.16-51-01.mp4 |
So far i noticed that something wrong is with customMaterial when loading project from results |
Yup. Seems like AIR, DRY (NEAR SEA LEVEL) has no entry in materials unlike WATER, LIQUID does. |
Why not ? Air is here: ui/src/ThreeEditor/Simulation/Materials/materials.ts Lines 170 to 175 in 1df3e53
|
I'm talking about this file, the customMaterial has originalMaterialUuid field which refers to material in materialManager>materials which is not there. |
Can you check as well this one ? These results correspond to #1927 (comment) When I open this JSON file in https://yaptide.github.io/web_dev/ then the results are loaded correctly: The same simulation card on which I clicked "Save to file" on https://yaptide.c3.plgrid.pl/ loads them incorrectly. Main difference between https://yaptide.github.io/web_dev/ and https://yaptide.c3.plgrid.pl/ is that the latter one doesn't have access to the backend. |
What I suspect is that there was a nice fix by @SzymanskiBartlomiej in #1898 , merged on 12.12 Then same day, but later, then came a feature by @matuszsmig in #1884, merged same day, but after the "filter-fix". Both PRs modified Can you check if after changes by @matuszsmig |
After digging a bit I see a difference:
Previously used method to fetch the result (prior to #1884), used From quick look on See ui/src/services/ShSimulatorService.tsx Lines 118 to 135 in e534ac2
And ui/src/services/ShSimulatorService.tsx Lines 93 to 102 in e534ac2
|
Related to #1927 --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/yaptide/ui/issues/1927?shareId=XXXX-XXXX-XXXX-XXXX).
* Fix results label in simulation Related to #1927 --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/yaptide/ui/issues/1927?shareId=XXXX-XXXX-XXXX-XXXX). * Modify `getEstimatorsPages` callback to log `inputJsonForThisEstimator` and its `outputs` field * Add console logs for `inputJsonForThisEstimator` and its `outputs` field * Modify `getEstimatorsPages` callback to handle `inputJson` and `outputs` field * **Recreate references functions** - Document `recreateRefsInResults`, `recreateRefToFilters`, and `recreateRefToScoringManagerOutputs` functions * **Error message** - Fix typo in error message from "esitamtors" to "estimators" * **Input JSON handling** - Make a copy of `jobInputs.input.inputJson` and assign it to `inputJsonForThisEstimator` - Ensure `inputJsonForThisEstimator` contains a field called `outputs` - Pass a single-element list as `outputs` to `recreateRefsInResults` - Dump `inputJsonForThisEstimator` to the console, particularly its `outputs` field * Modify `getEstimatorsPages` callback to handle `inputJson` copy and pass filtered outputs * Make a copy of `jobInputs.input.inputJson` and assign it to `inputJsonForThisEstimator` * Ensure `inputJsonForThisEstimator` contains a field called `outputs` * Pass a single-element list as `outputs` to `recreateRefsInResults` * Update `data` object and `resolve` logic to handle the new `inputJsonForThisEstimator` * Modify `getEstimatorsPages` callback to handle `inputJson` and add logging * Make a copy of `jobInputs.input.inputJson` and assign it to `inputJsonForThisEstimator` * Ensure `inputJsonForThisEstimator` contains a field called `outputs` * Pass a single-element list as `outputs` to `recreateRefsInResults` * Add logging for `inputJsonForThisEstimator` in the console * Add debugging logging to console in `recreateRefToScoringManagerOutputs`, `recreateRefToFilters`, and `recreateRefsInResults` * Add comments explaining code logic in `recreateRefToScoringManagerOutputs`, `recreateRefToFilters`, and `recreateRefsInResults` * fixes * cleaning * more comments * Update src/services/ShSimulatorService.tsx
I've defined a simulation from scrach, loosely based on "Treatment plan example".
Then I've executed it on yaptide.c3.plgrid.pl (which runs now on master branches from ui and yaptide).
Results gets wrong labels. First plot should be titled dose, not fluence:
Grouping doesn't work:
Here is the output JSON, saved with the button in upper right corner:
I was able to load the results into https://yaptide.github.io/web_dev/ instance:
The results seemed to be loaded correctly, but the editor project state is missing:
The text was updated successfully, but these errors were encountered: