Skip to content
Snippets Groups Projects
  1. Jul 16, 2015
    • Jan Caron's avatar
      Phase offset and ramp can now be fitted! Many updates and fixes to plotting! · 622c59d8
      Jan Caron authored
      colormap: New module with colormap subclass which has special functions to
                calculate directional rgb-colors, now used in many plots!
      __init__: On star import now also has abbreviations for a few modules.
      fwd_model: Now has flags for fitting an offset and/or ramp.
                 CAUTION: will be moved next update to new class!
      magdata: Removed colorwheel stuff (all moved to 'colormap'). Overhaul of quiver
               plot in 2D and 3D. Now shows mask and uses new colormap for angular
               color coding.
      phasemap: Now uses the new colormap for holo plots. Removed color wheel (moved
                to the new class). Added function to add ramps.
      phasemapper: Now handles also offsets and ramps in the phase.
                   CAUTION: will be moved next update to new class!
      projector: Fixed bugs in SimpleProjector. 1) leftmost pixels are no longer moved
                 moved to left corner of padded projection (when dim_uv is not None).
                 2) odd padding when using dim_uv are now handled properly (one more
                 pixel on top and right if necessary).
      costfunction: n is now taken from the fwd_model instead of the data_set.
      dataset: Introduced the count variable which gives the number of images.
      magcreator: In the process of updating, more on next commit.
      reconstruction: Also handles ramps and offsets now, properly extracts them after
                      reconstruction.
      regularisator: New argument 'add_params' is used to cut off input (for offset
                     and ramp) which are not used in the regularisation.
      scripts: several small changes...
      622c59d8
  2. Jun 02, 2015
    • Jan Caron's avatar
      Smaller changes, cleanup and script structure changes! · 42f8bc5f
      Jan Caron authored
      Phase maps now also have a mask and a confidence matrix.
      Began new script structure (temporary folders created).
      Cleanup, logging and documentation done.
      config: NTHREADS is now set here.
      dataset: Method for creating 3D masks added.
      phasemap: Mask and confidence matrix added. Padding and cropping supported.
      forwardmodel: Stubs for multiprocessing added (next TODO!).
      kernel: Added support for perturbed reference wave.
      magdata: Padding and cropping supported.
      projector: New property 'sparsity' introduced.
      regularisator: Stub for ComboRegularisator added (next TODO!).
      tests: Changed accordingly.
      42f8bc5f
  3. Feb 19, 2015
  4. Feb 03, 2015
    • Jan Caron's avatar
      Mainly implementation of diagnostics class! ... And stuff! · fc55842d
      Jan Caron authored
      docstrings: updated!
      costfunction: CFAdapterScipyCG obsolete, deleted estimate_lambda()
      dataset: use_fftw and threads obsolete
      diagnostics: implemented stuff... much stuff...
      fft: Docstrings and implementation of threads
      magcreator: fixed bug in slab (dimension mix-up)
      phasemap: plot now also returns colorbar
      reconstruction: PrintIterator and optimize_simple_leastsq obsolete
      regularisator: Docstrings
      scripts: minor modifications
      scripts - reconstruct_random_pixels: now use optimize_linear
      testcases: analytic, compliance, kernel, magcreator, magdata, projector
      fc55842d
  5. Dec 30, 2014
  6. Dec 09, 2014
  7. Nov 28, 2014
    • Jan Caron's avatar
      Implementation of FFTW and covariance matrix functionality added · cfea0d77
      Jan Caron authored
      Se_inv: is now handled differently, defaults to eye-matrix, but can be set
              later (added a few convenience functions to DataSet)
      utility: (re-)added utility module for index conversion
      kernel/phasemapper: can now use FFTW library and operate on pre-allocated
              arrays
      dtype: set dtype of arrays to np.float32/np.complex64 (halves memory size),
             also applied to numcore routines!
      magdata: quiver_plot can now plot every n-th arrow (yet untested!)
      reconstruction scripts: modified several reconstruction scripts.
      cfea0d77
  8. Nov 24, 2014
    • Jan Caron's avatar
      Big Bunch of small updates! · 4ab7bc63
      Jan Caron authored
      setup: Changes to setup.py, pyramid.version to fit to numpy and jutil
             now uses __all__ magic and supports from pyramid import *
      tests: changes to test_compliance/magcreator/analytic (should now work)
      collaborations: added several scripts for Patrick
      reconstruction: added batch file for the reconstruction of several configs
      test methods: (unfinished) scripts for fftw tests and kernel comparisons
      paper 1: ch5-4 changed padding values to 0, 1, 3 and 7
      plotting: deleted plt.show() lines (have to be done manually now or via Spyder)
      logging: now named _log instead of LOG (private variable instead of constant)
               also some logs were disabled, because Pylint says they are slow...
      reconstruction: now has info argument (pass a list in which cost info is copied)
      phasemapper: changed sign of constant PHI_0, is now correctly positive (instead
                   the negative z-integration is taken into account which was not done
                   before!)
      kernel: now uses FFTW, numpy code was changed accordingly and is still available
      phasemapper: also uses FFTW now, work in progress: FFTW for jac_T_dot
      4ab7bc63
  9. Oct 28, 2014
  10. Sep 01, 2014
    • Jan Caron's avatar
      Quality of life improvements, docstrings, and new gui-based method! · de58b03c
      Jan Caron authored
      Many Doctring corrections, all plots now have a "show" parameter to not show a
      plot at the end of the method (needed for guis and such).
      magdata: quiver_plot: axis switch for x-projection, implemented logarithmic
               arrows and scaling feature.
      projector: added to_mag_data() method to directly produce a projected
                 magnetization distribution.
      gui/create_logo: removed (obsolete and unuseful).
      gui/mag_slicer: added!
      de58b03c
  11. Aug 19, 2014
    • Jan Caron's avatar
      Implementation of the Regularisator class · 325ea464
      Jan Caron authored
      regularisator: new module to represent different regularisation strategies
      costfunction: changed to use the new Regularisator classes, changed arguments!
      dataset: fixed bug that always displayed the own phase maps instead of provided
      reconstruction: changed to use the new Regularisator classes, changed arguments!
      scripts/rueffner_file: tried to avoid Memory Error (no success)
      scripts/zi_an: added holographic contour plots with overlayd magnetization
      scripts/reconstruction_sparse_cg_test: now uses Regularisator classes and plots
                                             phase differences (original - reconstr.)
      325ea464
  12. Aug 06, 2014
    • Jan Caron's avatar
      Small stuff, collaborations and processing scripts · 3f460d45
      Jan Caron authored
      magdata: implemented save_to_x3d (Bielefeld collaboration)
      template.x3d: template for the x3d output (header file with spin-blueprints)
      numcore.kernel_core: implemented multiply_jacobi_T_core
      scripts: added vtk scripts for full nanowires and segments
               script to process file by Daniel Rüffner
      3f460d45
  13. May 15, 2014
    • Jan Caron's avatar
      Further optimization · ce62f949
      Jan Caron authored
      pep8: optimizations
      phasemapper_core: numcore module for phasemapper
      scripts: compatibility with new structure
      reconstruction: new scripts
      ce62f949
  14. Apr 17, 2014
    • Jan Caron's avatar
      Further optimization of the new structure and scripts. · 838fb104
      Jan Caron authored
      package: some minor corrections (mainly import statements), some old functions
               were revived (e.g. in MagData)
      
      scripts: adaption to the new structure and sorting (more work is to do here...)
      
      _version: __version__ string is now imported from this file
      
      phasemapper_core.pyx: added to separate the corresponding numcore_functions
                            from kernel_core.pyx
      838fb104
  15. Dec 05, 2013
  16. Dec 03, 2013
  17. Nov 23, 2013
    • Jan Caron's avatar
      Jacobi-matrix calculation via new Kernel helper class! · ebd9398e
      Jan Caron authored
      phasemapper: added Kernel helper class with methods to calculate the jacobi
      matrix or to multiply a vector with the (transposed) jacobi matrix without
      explicitly calculating the full matrix
      magcreator: added Shape.ellipsoid
      numcore: added (experimental) speed-up for jacobi-matrix (not faster)
      scripts: modified get_jacobi to test the new Kernel class,
      tests: test_compliance now also searches and creates a list of TODOs
      ebd9398e
  18. Nov 18, 2013
    • Jan Caron's avatar
      holoimage, magdata, phasemap: Made plotting more flexible (now return axes) · 27f46b6f
      Jan Caron authored
      phasemapper: new function get_kernel() for convenience, mag_real_fast() for
      calculation of the phase with pre-computed lookup-tables
      projector: single_tilt_projection() now works as intended
      Added scripts for the creation of core-shell-structures
      Added script for charge calculation by contour integration
      Added script for creating tilt series of core-shell-structure for reconstruction
      Various minor modifications, mostly nomenclature and streamlining
      27f46b6f
  19. Aug 25, 2013
    • Jan Caron's avatar
      Sphinx and NetCDF4 support implemented, new features for pyramid objects · c1d56ac8
      Jan Caron authored
      pyramid: all docstrings in numpydoc (package installed) format (used by spinx)
      holoimage: removed error, phase was falsely multiplied by pi/2
      magcreator: removed create_mag_dist_comb, renamed functions for disc and vortex
      magdata: Allows creation of empty MagData objects and easy adding of magnitudes
      phasemap: Allows units to be set for plots, added 3D plot
      phasemapper: Electrostatic component implemented
      projector: Projection now includes thickness profile
      docs: support for html, latex and pdf (experimental), use "make *" in shell
      scripts: new structure, deleted some compare_* functions, added test_methods
      .hpignore: now also ignores *.c and _* files (_build used in docs)
      c1d56ac8
Loading