Statistics with python, Part 1

Hello everyone! Sorry for the 2 month break from posts, been busy finishing the residency!!

Photo by Christopher Burns on Unsplash

Statistics is the main framework we have to test our hypothesis about data!

Most of the time we want to test if our new way to do something is really working.

When applying a new strategy in the clinic, we begin by testing once, twice, three times, and then we agree if it is worthy to test some more or not.

But how many times we have to test, which test should we perform and how should we display the…

Hey guys, hope you’re doing great!

Photo by Kevin Ku on Unsplash

In this post I want to share with you a simple UI that I’ve started to develop a few days ago.

This script is just for testing, it is not supposed to be used in clinic.

It is a simple WPF app to ease the exporting process of Portal Dosimetry images.

Before all that, I’ll share 4 main aspects of Portal Dosimetry Scripting API.

Where to find Portal Dosimetry dlls?

They are located in the computer in which Eclipse is installed:

Hey guys!

Today I will write about some shortcuts and interesting things I’ve learned when playing with structures and VVectors in ESAPI.

All the code will be shared at my GitHub page! So don’t worry about copy and paste today!

What are VVectors?

The VVector class is a recipient to the coordinates in the X, Y and Z direction in the CT DICOM. You can perform the usual vector operations, such as dot product, vector product, scalar product, addition, subtraction.

How do I access the coordinates:

You can access via vVector.x, vVector.y and vVector.z

It’s interesting that you can also treat it like a C# array…

Hey guys!

This is the first article of the blog about an interesting feature that most of us always wanted, using the writing capacities of ESAPI.

Everything I’m sharing here is for educational purposes, I advise you to learn first and then implement any script on the clinical environment. This is not a recommendation or a clinical validated script.

Photo by Roman Synkevych on Unsplash

It is important to acknowledge that, in the clinical environment, writing via ESAPI is allowed in versions of Eclipse above 15.1.1.

Script Approvals and TBOX:

Varian Testing Station, also known as TBOX, has a mimic of the clinical environment, in which you can test your…

Hey guys!

In this article, I’ll show what in my experience are the basics to start writing and running your scripts with ESAPI (Eclipse Scripting API). The following lines are coded for Eclipse v15.6 libraries, but they should be reusable in most versions above 11.0
All items are based on simple read only projects covering how to write and run:

  1. Hello World in Visual Studio.
  2. A Single file script in Eclipse for single patient running in Eclipse user interface;
  3. A Compiled script as library (a.k.a Binary Plugin) for single patient in Eclipse UI;
  4. An Executable that iterate in multiple patients

Photo by Luca Bravo on Unsplash

Hello!

Often we are caught up with an executable script that should work with the context of some patient.

Carlos Anderson came up with a solution to this problem when he created the ESAPI Essentials Package.

However there’s some limitation of the extent of the StandaloneContext library. One would need to perform the same code over and over to launch the executable that should be the first in the folder that you are launching the binary plugin.

Fala pessoal tudo bem ?
Vou tentar explicar o mínimo para começar a fazer seus scripts no ESAPI (Eclipse Scripting API). Estarei usando o Eclipse v15.6 , mas todos os scripts neste artigo serão reutilizáveis na maior parte das versões acima da 11, pois não iremos editar informações, apenas pegá-las.

Todas as explicações serão baseadas projetos simples cobrindo como fazer e rodar :

Rodar um hello world no Visual Studio.

Scripts de arquivo único direto no eclipse para usar em um paciente por vez;

Scripts compilados em biblioteca para um paciente por vez (direto do Eclipse).

Executáveis para rodar todo…

Hello!

In this article, I’ll show you how to plot data using simple HTML and JavaScript, then how to implement this pattern in C# to plot your ESAPI data.

Why are we using the browser?

Unfortunately 😓 there is nothing close to this in C#:

www.desmos.com
var x = new List<double>{1,2,3,4,5};
var y = new List<double>{2,4,6,8,10};
PlotLib.Plot(x,y);

WPF and Oxyplot would be the choices to plot in C#, however it is not recommended to use this pattern in a single file. …

João Castelo

Radiation Therapy Medical Physicist and Programmer

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store