Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
BornAgain
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mlz
BornAgain
Commits
79ec1d9a
Commit
79ec1d9a
authored
4 years ago
by
Wuttke, Joachim
Browse files
Options
Downloads
Patches
Plain Diff
rm default fit monitor
parent
526bc1f5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!12
Repair fit examples
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CHANGELOG
+1
-0
1 addition, 0 deletions
CHANGELOG
Wrap/Swig/libBornAgainCore.i
+1
-9
1 addition, 9 deletions
Wrap/Swig/libBornAgainCore.i
auto/Wrap/libBornAgainCore.py
+1
-9
1 addition, 9 deletions
auto/Wrap/libBornAgainCore.py
with
3 additions
and
18 deletions
CHANGELOG
+
1
−
0
View file @
79ec1d9a
...
...
@@ -9,6 +9,7 @@ BornAgain-1.19.0, released 2021.01.xx
* Remove old R&T computations from API (now in Code/Legacy and Tests)
* Make Python plot API entirely keyword based
* Add support for q offset in QSpecScan (redmine 2496)
* Remove default Python fit monitor, user must choose between GISAS and specular plotter
> GUI changes:
* Add top-level menu View, with functionality moved in from other places
* Add accelerator keys to menus
...
...
This diff is collapsed.
Click to expand it.
Wrap/Swig/libBornAgainCore.i
+
1
−
9
View file @
79ec1d9a
...
...
@@ -242,15 +242,7 @@ class ObserverCallbackWrapper(PyObserverCallback):
def finalize(self, minimizer_result):
return self.finalize_cpp(self.convert_result(minimizer_result))
def create_default_plotter(self):
import ba_fitmonitor as bafim
self.m_plotter = bafim.PlotterGISAS()
return self.m_plotter.plot
def initPlot(self, every_nth, callback = None):
if not callback:
callback = self.create_default_plotter()
def initPlot(self, every_nth, callback):
self.wrp_plot_observer = ObserverCallbackWrapper(callback)
return self.initPlot_cpp(every_nth, self.wrp_plot_observer)
...
...
This diff is collapsed.
Click to expand it.
auto/Wrap/libBornAgainCore.py
+
1
−
9
View file @
79ec1d9a
...
...
@@ -3045,15 +3045,7 @@ class FitObjective(object):
def
finalize
(
self
,
minimizer_result
):
return
self
.
finalize_cpp
(
self
.
convert_result
(
minimizer_result
))
def
create_default_plotter
(
self
):
import
ba_fitmonitor
as
bafim
self
.
m_plotter
=
bafim
.
PlotterGISAS
()
return
self
.
m_plotter
.
plot
def
initPlot
(
self
,
every_nth
,
callback
=
None
):
if
not
callback
:
callback
=
self
.
create_default_plotter
()
def
initPlot
(
self
,
every_nth
,
callback
):
self
.
wrp_plot_observer
=
ObserverCallbackWrapper
(
callback
)
return
self
.
initPlot_cpp
(
every_nth
,
self
.
wrp_plot_observer
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment