Coder Social home page Coder Social logo

sebasj13 / topasgraphsim Goto Github PK

View Code? Open in Web Editor NEW
16.0 1.0 2.0 1.31 MB

A GUI to simplify and streamline the plotting and analysis of medical physics simulations

Home Page: https://pypi.org/project/topasgraphsim

License: MIT License

Python 100.00%
python monte-carlo-simulation topas topasmc tkinter-gui

topasgraphsim's Issues

Line style

Add option to change line style (solid, dashed, dotted, dashdot).

Add Gamma Index Calculation

import pymedphys

gamma = pymedphys.gamma(
(data[0][0],), data[0][1], (data[1][0],), data[1][1], 1, 1
)

valid_gamma = gamma[~np.isnan(gamma)]
pass_ratio = np.sum(valid_gamma <= 1) / len(valid_gamma)
print(pass_ratio)

Nice work! plus a few comments

Firstly, this is really nice! i have been vaguely contemplating if I should do something like this given the number of how 'how do I plot...' questions on the forums. Nice to see.
The following are some comments/questions/suggestions. Feel free to ignore any that aren't helpful!

comments

  • I would move the install instructions closer to the top of the read me, because whenever I look at software on github the first thing I want to do is make sure I can install it before I start read the detailed instructions.

questions

  • what scoring geometries does this handle? or will it handle anything? e.g. I think depending on the scoring component, the coordinates might be polar or cartesian (right?), will this handle both?
  • Is it possible to run this 'headless' (no GUI?) and if not would it be difficult to add this? In many situations it would be nice to be able to script analysis...also for debugging this would be handy.

install experience

  • In ubuntu, I had to do sudo apt install python3.9-dev before this package would install. It was some issue with a package called evdev
  • In windows worked perfectly.

use experience

  • in linux the default window is very large - I can make it larger, but I can't make it smaller. weird!
  • I tried to load some .bin files from a TsBox scorer; in windows and linux I got the error "AttributeError: 'Simulation' object has no attribute 'direction'"
  • In general it looks like there are a few if, elif statements where it would be a good idea to put a final else: raise NotImplementedError

Fix Y-Axis Label

3ddose dataset shows y-axis label "mm" if not normalized. --> "Dose [Gy/history]"
Maybe add optionial or permanent label for relative dose distributions e.g. "Relative Dosis"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.