VarianAPIs / Varian-Code-Samples

Code samples for ESAPI and other Varian APIs and web services.
MIT License
112 stars 105 forks source link

Automatic analysis in Portal Dosimetry? #120

Open KasperLL opened 2 years ago

KasperLL commented 2 years ago

Hi,

Is it possible to automate the gamma-analyses in Portal Dosimetry via the Portal Dosimetry scripting interface? If have successfully code a script that retrieves analysis results, but wonder if its possible to apply several gamma-analysis-templates via the script and then retrieve the results.

Best regards Kasper

Kiragroh commented 2 years ago

I have posted this kind of script a while back.

https://github.com/Kiragroh/ESAPI_DataMiner_PortalDosimetry

But not many comments and some code will seem strange. this is often the case because the PD-API is not improved or debugged in the last years like the Eclipse API.

Extra link for similar script from someone else: https://github.com/UNLV-MedicalPhysics/PD_AdvancedAnalysis

KasperLL commented 2 years ago

Hi.

Yes of course. I have a script that is able to retrieve and print gamma analysis results. I can share that if you are interested. The question I posted earlier was concerning the possibility of executing the analyses through a script. However I have not looked further into that part.

Please let me know if I can assist.

Best regards Kasper Lind Laursen

On Tue, Feb 1, 2022 at 11:14 AM StyraxBenzoin @.***> wrote:

Hi @KasperLL https://github.com/KasperLL,

I'm interested in using a script to retrieve PD analysis results too. Would you be willing to share your code solution with me, or point me in the right direction? That would be very much appreciated if you were to be so kind.

Kind regards

— Reply to this email directly, view it on GitHub https://github.com/VarianAPIs/Varian-Code-Samples/issues/120#issuecomment-1026677090, or unsubscribe https://github.com/notifications/unsubscribe-auth/AN32YQZZP4NF4GIHH3BGMN3UY6W7NANCNFSM5KGA537A . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you were mentioned.Message ID: @.***>

StyraxBenzoin commented 2 years ago

Hi @KasperLL,

Thank for the response. Sorry I unintentionally deleted my comment. But yes, that would be great. I was just looking for a solution to pull gamma pass results from PD from the ones we've already performed, so no need for automatic analysis (yet!). I'm okay with python but very beginner C# and just working through the varian code examples. Any help or pre-made solution would be a great help, even if it's just a template to work from and get started.

Kind regards,

Ben

Kiragroh commented 2 years ago

You can find a working script on my GitHub

StyraxBenzoin commented 2 years ago

@Kiragroh Okay I thought you were saying that was for applying just the analysis automatically. I'll take a look. Thanks!

Kiragroh commented 2 years ago

Sorry. Did not realize I commented before.^^ Reading is possible too. Did not used PD-API for years but remember that both is possible but somewhat difficult to code with this old API.^^

avalgoma commented 2 years ago

Sorry. Did not realize I commented before.^^ Reading is possible too. Did not used PD-API for years but remember that both is possible but somewhat difficult to code with this old API.^^

@Kiragroh it worked nicely to me. I adapted your DataMinerPD script as a Binary Plugin DLL within my Portal Dosimetry Workspace.

Thanks for it.