Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test genmagstr #97

Merged
merged 42 commits into from
Aug 17, 2022
Merged

Test genmagstr #97

merged 42 commits into from
Aug 17, 2022

Commits on Jul 27, 2022

  1. Configuration menu
    Copy the full SHA
    5c3c984 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    bd3b149 View commit details
    Browse the repository at this point in the history
  3. Add zero nExt test

    rebeccafair committed Jul 27, 2022
    Configuration menu
    Copy the full SHA
    d69bc37 View commit details
    Browse the repository at this point in the history
  4. Add afm chain test

    rebeccafair committed Jul 27, 2022
    Configuration menu
    Copy the full SHA
    c526f52 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    edc54de View commit details
    Browse the repository at this point in the history
  6. Check mag_str not magstr

    rebeccafair committed Jul 27, 2022
    Configuration menu
    Copy the full SHA
    4ef8e4c View commit details
    Browse the repository at this point in the history
  7. Add random test with k

    rebeccafair committed Jul 27, 2022
    Configuration menu
    Copy the full SHA
    c13a776 View commit details
    Browse the repository at this point in the history
  8. Add test with existing k

    rebeccafair committed Jul 27, 2022
    Configuration menu
    Copy the full SHA
    06839c9 View commit details
    Browse the repository at this point in the history
  9. Add multiatom direct test

    rebeccafair committed Jul 27, 2022
    Configuration menu
    Copy the full SHA
    953ce0e View commit details
    Browse the repository at this point in the history
  10. Add helical tests, fix multi-k bug

    In the if ~cmplxS... conditional any(k) returns a vector for multi-k
    structures, causing a MATLAB:nonLogicalConditional error, fix this
    by flattening k first
    rebeccafair committed Jul 27, 2022
    Configuration menu
    Copy the full SHA
    cfdcdfe View commit details
    Browse the repository at this point in the history
  11. Add to helical tests

    - Add test with multiple k and n
    - Add test with nSpin = nMagAtom
    - Add test with nSpin = nMagExt
    rebeccafair committed Jul 27, 2022
    Configuration menu
    Copy the full SHA
    bf4105c View commit details
    Browse the repository at this point in the history
  12. Add fourier tests

    rebeccafair committed Jul 27, 2022
    Configuration menu
    Copy the full SHA
    39150eb View commit details
    Browse the repository at this point in the history
  13. Add tile tests

    rebeccafair committed Jul 27, 2022
    Configuration menu
    Copy the full SHA
    04e8b7b View commit details
    Browse the repository at this point in the history
  14. Add rotate tests

    rebeccafair committed Jul 27, 2022
    Configuration menu
    Copy the full SHA
    a723f49 View commit details
    Browse the repository at this point in the history
  15. Add custom func test

    rebeccafair committed Jul 27, 2022
    Configuration menu
    Copy the full SHA
    61f7722 View commit details
    Browse the repository at this point in the history

Commits on Aug 1, 2022

  1. Add default func test

    rebeccafair committed Aug 1, 2022
    Configuration menu
    Copy the full SHA
    8189295 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4764b46 View commit details
    Browse the repository at this point in the history
  3. Remove unreachable code

    Test for number of magnetic atoms is already performed at beginning
    of function
    rebeccafair committed Aug 1, 2022
    Configuration menu
    Copy the full SHA
    c8b2454 View commit details
    Browse the repository at this point in the history
  4. Add scalar nExt test

    rebeccafair committed Aug 1, 2022
    Configuration menu
    Copy the full SHA
    754455b View commit details
    Browse the repository at this point in the history
  5. Add more error tests

    rebeccafair committed Aug 1, 2022
    Configuration menu
    Copy the full SHA
    7a56c94 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    7d8d56f View commit details
    Browse the repository at this point in the history

Commits on Aug 9, 2022

  1. Configuration menu
    Copy the full SHA
    016254d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0383fd6 View commit details
    Browse the repository at this point in the history

Commits on Aug 11, 2022

  1. Configuration menu
    Copy the full SHA
    ce776b9 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f6add2d View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    b5bbb72 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    1f2677a View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    f6d86c0 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    13ac152 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    f4d907f View commit details
    Browse the repository at this point in the history

Commits on Aug 12, 2022

  1. Configuration menu
    Copy the full SHA
    8c2a818 View commit details
    Browse the repository at this point in the history

Commits on Aug 16, 2022

  1. Configuration menu
    Copy the full SHA
    9cfdd15 View commit details
    Browse the repository at this point in the history
  2. Small upates from review comments

    - Specify n is converted to a unit vector in docstring
    - Remove unreachable n/k size error check
    rebeccafair committed Aug 16, 2022
    Configuration menu
    Copy the full SHA
    4bee789 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    4e161d9 View commit details
    Browse the repository at this point in the history

Commits on Aug 17, 2022

  1. Warn on unused inputs

    - Also move 'extend' -> 'tile' to the top so tile can be used in unused
      input checks
    - Also move valid mode check to in unused warning checks so an invalid
      mode isn't searched for in the struct
    rebeccafair committed Aug 17, 2022
    Configuration menu
    Copy the full SHA
    d8d54f3 View commit details
    Browse the repository at this point in the history
  2. Raise error if nonsensical complex values are provided

    - Also move errors before warnings
    rebeccafair committed Aug 17, 2022
    Configuration menu
    Copy the full SHA
    ca2c7af View commit details
    Browse the repository at this point in the history
  3. Add test with epsilon

    rebeccafair committed Aug 17, 2022
    Configuration menu
    Copy the full SHA
    65cfb42 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    aac29ed View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    e8afe01 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    4b57897 View commit details
    Browse the repository at this point in the history
  7. Only test for complex n

    Inspecting varargin is more complex than initially thought,
    sometimes it can be a struct (e.g. when called from optmagk)
    rebeccafair committed Aug 17, 2022
    Configuration menu
    Copy the full SHA
    cf1060b View commit details
    Browse the repository at this point in the history
  8. Account for varargin being a struct

    When called from places like optmagstr, varargin is actually a struct.
    Also, the struct contains many other additional parameters to do with
    fitting, so before calling genmagstr in optmagstr,
    warning('off','sw_readparam:UnreadInput') is called. This stops
    sw_readparam from issuing warnings. This also stops the
    `spinw:genmagstr:UnreadInput` warning from being triggered, which
    is why its name has been changed to UnreadInput, to avoid ugly
    unecessary warnings.
    rebeccafair committed Aug 17, 2022
    Configuration menu
    Copy the full SHA
    f3c8aa2 View commit details
    Browse the repository at this point in the history