Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Michaelgemmell/bayes workflow (#262)
* initial commit * magnetic recon tests * use error attribute if it is given * Added poisson noise and adjusted calibration factor * changed name magnetic_recon -> equilibrium_reconstruction * diagnostic data with channel dim are treated as individual measurements * added function of example LOS * refactoring * refactoring * refactoring * initial commit * removed obsolete attributes * Setting up testflow * more tests * more test stubs * small fix * cosmetic changes * changed marker style * small fix * adjusting alpha * black reformatting * fixing formatting * flake8 fix * flake8 fix * boolean indexing -> xarray.where in call * fixing tests * removing import * precommit fixes * stashing for quick result * added calc_impurity for generating profiles from concentrations to update profiles method * added conditional handling of diagnostics in data pipeline * moved calc_impurity to plasma method * tweaking calibration factor * tweaking calibration factor * tweaking calibration factor * changed burn_in to burn_in_fraction * added violinplots * removed comment * included dictionary logic for fitting impurities scaled by concentrations and electron density * changed name cxff_pi.ti_0d to cxff_pi.ti0 * new option for initialising at maximum-likelihood estimate * added xlim for violin plot * tweaking calibration * fixed neutral density units * added set plot functions * added center mass sampling and Ti/Te y0_ref options * plot formatting changed * black formatting * deleted example bayes_opt * moved sample with autocorr function to bayes_dev_workflow * renamed bayesworkflow * stashing * multiplot formatting * generalised writing kinetic profiles to blobs * function autocorr plot added * ion density added to kinetic profiles saved * inital commit of abstract workflow and example of usage * doc strings * renaming workflow * Ti_ref as default * abstract methods added * Changed to new MDSPlus structure * Adding default methods * moved sampling to it's own function in abstract class * moved sampling to it's own function in abstract class * renamed abstract class to AbstractBayesWorkflow * comments * added high density sampling as method * added attributes to __init__ * error handling __init__ * error handling __init__ * moved read data to abstract class * initial commit * kwargs added * xrcs wavelength units corrected * background to int * stash * renamed impurities * stashing * stashing * stashing * fixing key names * updating and testing example * added background as attribute of helike model * fixed phantom methods * rearranged methods * moved background to call kwarg * params and kwargs now are given as model_{var} and model prefix is removed before model call * adding _phantom_data and _exp_data abstract methods * renaming to BayesWorkflowExample * initial commit * renamed phantom_params to profile_params * renamed bayesopt -> bayesmodel * renamed bayesopt -> bayesmodel * moved start point sampling to its own method _sample_start_points * fixed variable name * fixed bug with start_points being overwritten * removed workflow_dev * moving equilibrium to workflow object * when reading raw data save transforms to their own attribute * transforms saved to workflow class * fixed name * renamed example transform * made example los function * minor name fix * made read_test_data function * made example los function * minor type * added reader to read_test_data method * fixed copying workflow object states * updated example to work with assign_profiles * can now run with pulse = None and synthetic transforms/equilibrium * formatting * refactoring names * deleted old bayes_models tests * reformatted _build_bckc for readability * moved percentage error to class attribute * fixing init percent error * black formatting * renamed kin_prof -> plasma_profiles * refactored window handling * replaced doppler_broaden with physics.ev_doppler * removed methods from __init__ * stashing * setup_plasma now takes kwargs * adding plasma to models now happens in setup_opt_data * workflow broken up into methods * removed redundant kwargs * fixed non_plasma call option * fixed plasma_initialisation * fixing violin plotting * units for xrcs.spectra.wavelength fixed * nchannels added to example_los * adding print message for fake data reading * adjusting example los * bckc method not printing spectra/fit not available everytime * adjusting priors * moved kwargs to sample function * nsamples kwarg added to sample_from_high_density_region * mocked bda_tree module * fixed import * fixed import * black formatting * precommit
- Loading branch information