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

[WIP] Implement Matlab to Python Translator #17

Draft
wants to merge 54 commits into
base: 27-generate-unit-tests-for-cpdassignustar
Choose a base branch
from

Commits on Oct 28, 2024

  1. Configuration menu
    Copy the full SHA
    10925ba View commit details
    Browse the repository at this point in the history
  2. use ruff to fix some issues

    tztsai committed Oct 28, 2024
    Configuration menu
    Copy the full SHA
    9c442eb View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    caad22e View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    9a862ca View commit details
    Browse the repository at this point in the history
  5. add pre-commit config

    tztsai committed Oct 28, 2024
    Configuration menu
    Copy the full SHA
    326b4d4 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    dd4cf88 View commit details
    Browse the repository at this point in the history
  7. convert smop from py2 to py3

    tztsai committed Oct 28, 2024
    Configuration menu
    Copy the full SHA
    b713fc0 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    7343491 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    e80a27e View commit details
    Browse the repository at this point in the history
  10. fix array indexing translation

    tztsai committed Oct 28, 2024
    Configuration menu
    Copy the full SHA
    01c59d8 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    444c70e View commit details
    Browse the repository at this point in the history
  12. Update pre-commit hook

    tztsai committed Oct 28, 2024
    Configuration menu
    Copy the full SHA
    9b58584 View commit details
    Browse the repository at this point in the history
  13. reformat translated code

    tztsai committed Oct 28, 2024
    Configuration menu
    Copy the full SHA
    bcbff12 View commit details
    Browse the repository at this point in the history
  14. Fix all ruff linting errors

    tztsai committed Oct 28, 2024
    Configuration menu
    Copy the full SHA
    1f454bb View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    e9eac7e View commit details
    Browse the repository at this point in the history
  16. reformat

    tztsai committed Oct 28, 2024
    Configuration menu
    Copy the full SHA
    67dca87 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    e703a6e View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    c336e75 View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    00629a5 View commit details
    Browse the repository at this point in the history
  20. updates conftest

    tztsai committed Oct 28, 2024
    Configuration menu
    Copy the full SHA
    4f797bf View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    fe317da View commit details
    Browse the repository at this point in the history

Commits on Oct 29, 2024

  1. Configuration menu
    Copy the full SHA
    4d64227 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    997be86 View commit details
    Browse the repository at this point in the history

Commits on Oct 31, 2024

  1. Configuration menu
    Copy the full SHA
    84f0946 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    47b2df1 View commit details
    Browse the repository at this point in the history
  3. fix importdata in launch.m

    tztsai committed Oct 31, 2024
    Configuration menu
    Copy the full SHA
    f1a9c0a View commit details
    Browse the repository at this point in the history

Commits on Nov 1, 2024

  1. Fix colon indexing

    tztsai committed Nov 1, 2024
    Configuration menu
    Copy the full SHA
    7f3506f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1f22919 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    e1a4083 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    013da62 View commit details
    Browse the repository at this point in the history

Commits on Nov 2, 2024

  1. fix precedence issue of &, |

    tztsai committed Nov 2, 2024
    Configuration menu
    Copy the full SHA
    3fa2ed1 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ecddd6d View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    0061808 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    37a97d4 View commit details
    Browse the repository at this point in the history
  5. fix return values and variable assignments to use matlabarray where a…

    …ppropriate; fix various builtin functions
    tztsai committed Nov 2, 2024
    Configuration menu
    Copy the full SHA
    91ed73d View commit details
    Browse the repository at this point in the history

Commits on Nov 6, 2024

  1. Configuration menu
    Copy the full SHA
    49adef3 View commit details
    Browse the repository at this point in the history
  2. fix matrix element deletion

    tztsai committed Nov 6, 2024
    Configuration menu
    Copy the full SHA
    4dc2786 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    cf4771b View commit details
    Browse the repository at this point in the history
  4. update

    tztsai committed Nov 6, 2024
    Configuration menu
    Copy the full SHA
    d99a041 View commit details
    Browse the repository at this point in the history
  5. update jsonencode/jsondecode

    tztsai committed Nov 6, 2024
    Configuration menu
    Copy the full SHA
    dd765cb View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    547b33a View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    095caef View commit details
    Browse the repository at this point in the history
  8. update translation

    tztsai committed Nov 6, 2024
    Configuration menu
    Copy the full SHA
    4c9e8d3 View commit details
    Browse the repository at this point in the history

Commits on Nov 7, 2024

  1. add pytest-profiling

    tztsai committed Nov 7, 2024
    Configuration menu
    Copy the full SHA
    a431a39 View commit details
    Browse the repository at this point in the history

Commits on Nov 12, 2024

  1. refactor cpdAssignUStarTh20100901 to use exec_ for safer execution an…

    …d update variable handling for xc2
    tztsai committed Nov 12, 2024
    Configuration menu
    Copy the full SHA
    071459f View commit details
    Browse the repository at this point in the history

Commits on Nov 14, 2024

  1. Configuration menu
    Copy the full SHA
    23ddb05 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    94a690d View commit details
    Browse the repository at this point in the history
  3. refactor setup_Stats and cpdEvaluateUStarTh4Season20100901 to use try…

    …-except for Stats initialization; update import statements in smop modules
    tztsai committed Nov 14, 2024
    Configuration menu
    Copy the full SHA
    9298f6c View commit details
    Browse the repository at this point in the history
  4. Squashed commit of the following:

    commit e94a521
    Author: tztsai <[email protected]>
    Date:   Thu Nov 14 13:45:28 2024 +0000
    
        Merge branch '27-generate-unit-tests-for-cpdassignustar' into test_and_refactor_cpdFmax2pCp3
    
    commit 87e2526
    Author: James Emberton <[email protected]>
    Date:   Thu Nov 14 09:34:58 2024 +0000
    
        convert matlab to python
    
    commit e72d639
    Author: James Emberton <[email protected]>
    Date:   Thu Nov 14 09:19:29 2024 +0000
    
        modified tests
    
    commit 2cd15d3
    Author: James Emberton <[email protected]>
    Date:   Mon Nov 11 11:59:54 2024 +0000
    
        modularised function
    
    commit 1e69989
    Author: James Emberton <[email protected]>
    Date:   Mon Nov 11 11:46:48 2024 +0000
    
        added initial tests
    
    commit 44bfb80
    Author: James Emberton <[email protected]>
    Date:   Mon Oct 28 10:30:47 2024 +0000
    
        setup stats reset to original code logic
    
    commit 69afcbb
    Merge: 65aaafb 4d83e33
    Author: Dominic Orchard <[email protected]>
    Date:   Thu Oct 24 15:52:10 2024 +0100
    
        Merge pull request #41 from Cambridge-ICCS/change_ustar_cp_scope
    
        Change ustar_cp scope to 'session'
    
    commit 4d83e33
    Author: isaac <[email protected]>
    Date:   Tue Oct 22 10:58:15 2024 +0100
    
        Change ustar_cp scope to 'session'
    tztsai committed Nov 14, 2024
    Configuration menu
    Copy the full SHA
    456eeda View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    98a0d58 View commit details
    Browse the repository at this point in the history
  6. Squashed commit of the following:

    commit e94a521
    Author: tztsai <[email protected]>
    Date:   Thu Nov 14 13:45:28 2024 +0000
    
        Merge branch '27-generate-unit-tests-for-cpdassignustar' into test_and_refactor_cpdFmax2pCp3
    
    commit 87e2526
    Author: James Emberton <[email protected]>
    Date:   Thu Nov 14 09:34:58 2024 +0000
    
        convert matlab to python
    
    commit e72d639
    Author: James Emberton <[email protected]>
    Date:   Thu Nov 14 09:19:29 2024 +0000
    
        modified tests
    
    commit 2cd15d3
    Author: James Emberton <[email protected]>
    Date:   Mon Nov 11 11:59:54 2024 +0000
    
        modularised function
    
    commit 1e69989
    Author: James Emberton <[email protected]>
    Date:   Mon Nov 11 11:46:48 2024 +0000
    
        added initial tests
    
    commit 44bfb80
    Author: James Emberton <[email protected]>
    Date:   Mon Oct 28 10:30:47 2024 +0000
    
        setup stats reset to original code logic
    
    commit 69afcbb
    Merge: 65aaafb 4d83e33
    Author: Dominic Orchard <[email protected]>
    Date:   Thu Oct 24 15:52:10 2024 +0100
    
        Merge pull request #41 from Cambridge-ICCS/change_matlab_engine_scope
    
        Change matlab_engine scope to 'session'
    
    commit 4d83e33
    Author: isaac <[email protected]>
    Date:   Tue Oct 22 10:58:15 2024 +0100
    
        Change matlab_engine scope to 'session'
    tztsai committed Nov 14, 2024
    Configuration menu
    Copy the full SHA
    0d5ce35 View commit details
    Browse the repository at this point in the history
  7. translate cpdFmax2Cp3

    tztsai committed Nov 14, 2024
    Configuration menu
    Copy the full SHA
    5fab6a9 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    d5a20c2 View commit details
    Browse the repository at this point in the history
  9. fix interpolation function and integrate MATLAB type handling in the …

    …`function` decorator
    tztsai committed Nov 14, 2024
    Configuration menu
    Copy the full SHA
    df3e88a View commit details
    Browse the repository at this point in the history