Bug #1436

Feature #861: === Website & Examples ===

repair ex06_Miscellaneous/AccessingSimulationResults.py: type object 'IHistogram' has no attribute 'AVERAGE'

Added by wuttke over 3 years ago. Updated about 3 years ago.

Status:ArchivedStart date:30 May 2016
Priority:NormalDue date:
Assignee:pospelov% Done:

0%

Category:-
Target version:Sprint 31

Description

broken after past refactoring

$ p2 AccessingSimulationResults.py
Traceback (most recent call last):
File "AccessingSimulationResults.py", line 184, in <module>
run_simulation()
File "AccessingSimulationResults.py", line 180, in run_simulation
plot_results(result)
File "AccessingSimulationResults.py", line 161, in plot_results
plot_slices(result)
File "AccessingSimulationResults.py", line 118, in plot_slices
plt.semilogy(proj3.getBinCenters()/deg, proj3.getArray(IHistogram.AVERAGE), label=r'$<\phi>=0.5^{\circ}$')
AttributeError: type object 'IHistogram' has no attribute 'AVERAGE'

History

#1 Updated by pospelov about 3 years ago

  • Status changed from New to Sprint
  • Assignee set to pospelov
  • Target version set to Sprint 31

#2 Updated by pospelov about 3 years ago

  • Status changed from Sprint to Resolved

Replaced "enum class DataType" to "enum DataType" in IHistogram. We have to be careful with enums which are intended for Python. Apparently, if we want to use "enum class", than some additional work has to be done. Simple enum are propagated without problems.

#3 Updated by herck about 3 years ago

  • Status changed from Resolved to Archived

Also available in: Atom PDF