"""
Fitting parameter sets configuration.

By default, unspecified options are taken from a previous set. In case of the
first set, defaults are provided in the code. Command-line options can be used
to override the settings below.
"""

parameter_sets = [
    {
        'n_components' : 1,
        'parameters' : [2.0, 0.0], # Starting values.
        'solver' : ('bfgs', {'gtol' : 1e-8}),
        'output_dir' : 'output/1',
    },
    {
        'n_components' : 2,
        'parameters' : 'previous', # Starting value from the previous run.
        'output_dir' : 'output/2',
    },
    {
        'n_components' : 3,
        'output_dir' : 'output/3',
    },
]

@@ -1,17 +1,9 @@
 %22%22%22%0A
-Fitting p
+P
 aram
@@ -16,21 +16,62 @@
 ets 
-configuration
+with a changing number of von Mises mixture components
 .%0A%0AB
@@ -266,33 +266,130 @@
 %22%22%22%0A
-%0Aparameter_sets = %5B%0A    %7B
+import dist_mixtures.mixture_von_mises as mvm%0A%0Aparameter_sets = %5B%0A    %7B%0A        'model_class' : mvm.VonMisesMixtureBinned,
 %0A   
@@ -544,17 +544,28 @@
 'output/
-1
+n_components
 ',%0A    %7D
@@ -683,113 +683,43 @@
     
-    'output_dir' : 'output/2',%0A    %7D,%0A    %7B%0A        'n_components' : 3,%0A        'output_dir' : 'output/3'
+%7D,%0A    %7B%0A        'n_components' : 3
 ,%0A  

update examples/psets/n_components.py to use binned fitting