Feature #1562
Feature #1290: === Core: framework ===
Feature #1572: == Python ==
Provide ISample with possibility to export parameter tree in Python dictionary
Status: | Resolved | Start date: | 03 Aug 2016 | |
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | pospelov | % Done: | 0% | |
Category: | - | |||
Target version: | Sprint 33 |
Description
Request from Dominique Dresen:
Print / Retrieve All Possible Fitting Parameters, including Beam Properties.
Within this item:After having initialized a sample and beam I would like to print out all fittable parameters in a readable way. The printParameters method of a GISASSimulation (inherited from IParamterized) does this by calling the print method of the ParameterPool class but it's hardly readable. For my purpose I removed the if clause which makes the print only write in seperate lines if the number of parameters is >= 12, otherwise it is all crammed into a single line. Is there some reason to have it this way?
- beautify output of printParameters
- introduce method getParameterTreeMap returning ordered map
- learn which python container is the best match, and provide automatic conversion into it
History
#1 Updated by wuttke over 4 years ago
- Assignee set to wuttke
- Parent task set to #1290
this sounds very close to what I am working on right now
#2 Updated by wuttke over 4 years ago
- Parent task changed from #1290 to #1572
#3 Updated by wuttke over 4 years ago
- Description updated (diff)
#4 Updated by wuttke over 4 years ago
- Status changed from Sprint to Backlog
- Assignee deleted (
wuttke) - Target version deleted (
Sprint32)
(Manual revision has higher priority for me)
#5 Updated by pospelov about 4 years ago
- Status changed from Backlog to Sprint
- Target version set to Sprint 33
#6 Updated by pospelov about 4 years ago
- std output generated by IParameterized::printParameters doesn't appear in ipython notebook
- all std::cout usage in BornAgain should be revised and replaced with functions returning std::string
- Rename ISample::to_str to ISample::sampleTreeToString
- replace IParameterized::printParameters with ::parametersToString.
- Modify SampleParameterIntro example accordingly.
#7 Updated by pospelov almost 4 years ago
- Assignee set to pospelov
#8 Updated by pospelov almost 4 years ago
- Status changed from Sprint to Resolved