GithubHelp home page GithubHelp logo

conrad's People

Contributors

anqif avatar bungun avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

conrad's Issues

AttributeErrors when calling the plot function

After installing appropriate versions of the python libraries there are still occurring some errors when executing the example files with both Python 2.7 and 3.5.
The remaining errors concern the plotting parts and are caused by missing attributes. I'm not a Python expert, but indeed these attributes seem not to be defined inside the respective class definitions.

1.) branch 'main'
In hello_world.py, Basic.py, DVH_Constraints.py and Prescription_based.py with Python 2.7

    graphics.plot(run)
  File "/home/xxx/.local/lib/python2.7/site-packages/conrad-0.0.2-py2.7.egg/conrad/visualization/plot/plotter.py", line 301, in plot
    if second_pass and data['exact'] is not None:
TypeError: 'RunRecord' object has no attribute '__getitem__'

In hello_world.py, Basic.py, DVH_Constraints.py and Prescription_based.py with Python 3.5

    graphics.plot(run)
  File "/home/xxx/conrad/conrad-env/lib/python3.5/site-packages/conrad-0.0.2-py3.5.egg/conrad/visualization/plot/plotter.py", line 301, in plot
    if second_pass and data['exact'] is not None:
TypeError: 'RunRecord' object is not subscriptable

In plotting_demo.py with both Python 2.7 and 3.5

Traceback (most recent call last):
  File "plotting_demo.py", line 131, in <module>
    demo(basepath=basepath)
  File "plotting_demo.py", line 14, in demo
    graphics.dvh_plot.autoset_series_colors(colormap='rainbow')
AttributeError: 'DVHPlot' object has no attribute 'autoset_series_colors'

Another attribute error occuring in Basic.py can be solved by introducing an auxilliary matrix valued variable before the for loop and saving the result in the DoseMatrix type matrix dose_matrix after the iteration, like in hello_world.py:

Basic.py with Python 2.7

Traceback (most recent call last):
  File "Basic.py", line 49, in <module>
    case.physics.dose_matrix[i, :] *= FACTOR
TypeError: 'DoseMatrix' object has no attribute '__getitem__'

Basic.py with Python 3.5

Traceback (most recent call last):
  File "Basic.py", line 49, in <module>
    case.physics.dose_matrix[i, :] *= FACTOR
TypeError: 'DoseMatrix' object is not subscriptable

2.) branch 'cvxpy_1.0'
Basic.py with Python 3.7

Traceback (most recent call last):
  File "Basic.py", line 71, in <module>
    graphics.plot(run)
  File "/home/sebastian/conrad/conrad-env/lib/python3.7/site-packages/conrad-0.0.2-py3.7.egg/conrad/visualization/plot/plotter.py", line 309, in plot
    self.dvh_set = data
  File "/home/sebastian/conrad/conrad-env/lib/python3.7/site-packages/conrad-0.0.2-py3.7.egg/conrad/visualization/plot/plotter.py", line 105, in dvh_set
    self.__dvh_set = PlanDVHGraph(self.filter_data(data))
  File "/home/sebastian/conrad/conrad-env/lib/python3.7/site-packages/conrad-0.0.2-py3.7.egg/conrad/visualization/plot/plotter.py", line 192, in filter_data
    iterator = data if isinstance(data, PlanGraphBase) else list(data.items())
AttributeError: 'numpy.ndarray' object has no attribute 'items'

Can't install it

Hello, I'd very much like to use your work in a project of mine but I can't use it because when I git clone it and then import it
on Colab, I cannot use the class Case() for example.
Could you help me ? i searched a lot on StOf but I didn't find an appropriate response
I'm a beginner ...

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.