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

New CLI Options #364

Merged
merged 31 commits into from
Mar 7, 2024
Merged

New CLI Options #364

merged 31 commits into from
Mar 7, 2024

Commits on Mar 7, 2024

  1. Added utility copy and info commands.

    markspec authored and tasansal committed Mar 7, 2024
    Configuration menu
    Copy the full SHA
    c9d571d View commit details
    Browse the repository at this point in the history
  2. Improve formating

    markspec authored and tasansal committed Mar 7, 2024
    Configuration menu
    Copy the full SHA
    92e15e6 View commit details
    Browse the repository at this point in the history
  3. Updates to pass pre-commit.

    markspec authored and tasansal committed Mar 7, 2024
    Configuration menu
    Copy the full SHA
    2a6f039 View commit details
    Browse the repository at this point in the history
  4. Add access pattern to info.

    markspec authored and tasansal committed Mar 7, 2024
    Configuration menu
    Copy the full SHA
    2f18427 View commit details
    Browse the repository at this point in the history
  5. Add tests.

    markspec authored and tasansal committed Mar 7, 2024
    Configuration menu
    Copy the full SHA
    45a764d View commit details
    Browse the repository at this point in the history
  6. Move utility commands to root level.

    markspec authored and tasansal committed Mar 7, 2024
    Configuration menu
    Copy the full SHA
    71c1ec9 View commit details
    Browse the repository at this point in the history
  7. Update linting and tests.

    markspec authored and tasansal committed Mar 7, 2024
    Configuration menu
    Copy the full SHA
    0565708 View commit details
    Browse the repository at this point in the history
  8. Resolve PR comments.

    ments.
    
    # Please enter the commit message for your changes. Lines starting
    # with '#' will be ignored, and an empty message aborts the commit.
    #
    # interactive rebase in progress; onto 2fa8069
    # Last commands done (3 commands done):
    #    pick 7db1c77 Updates to pass pre-commit.
    #    pick 9197e4e Bug fix and log statements.
    # Next commands to do (2 remaining commands):
    #    pick f382208 Updatest to resolve conflicts with changes related to floating point headers for indexing.
    #    pick 6961e1d Fix pre-commit linting.
    # You are currently rebasing branch 'main' on '2fa8069'.
    #
    # Changes to be committed:
    #	modified:   src/mdio/segy/utilities.py
    #	modified:   tests/integration/test_segy_import_export.py
    #
    # Untracked files:
    #	.devcontainer_bck/Dockerfile
    #	.devcontainer_bck/devcontainer.json
    #	.devcontainer_bck/post-install.sh
    #	.gitignore_bck
    #	TEST.md
    #	debugging/0__6372_PREPNODMLT.LIBRARY_2.mdio.jpg
    #	debugging/6372_export.py
    #	debugging/6372_ram_usage.csv
    #	debugging/6372_ram_usage.csv_bck
    #	debugging/Debug.md
    #	debugging/None
    #	debugging/docker_env/bin/Activate.ps1
    #	debugging/docker_env/bin/activate
    #	debugging/docker_env/bin/activate.csh
    #	debugging/docker_env/bin/activate.fish
    #	debugging/docker_env/bin/dask
    #	debugging/docker_env/bin/dask-scheduler
    #	debugging/docker_env/bin/dask-ssh
    #	debugging/docker_env/bin/dask-worker
    #	debugging/docker_env/bin/doesitcache
    #	debugging/docker_env/bin/dul-receive-pack
    #	debugging/docker_env/bin/dul-upload-pack
    #	debugging/docker_env/bin/dulwich
    #	debugging/docker_env/bin/easy_install
    #	debugging/docker_env/bin/easy_install-3.8
    #	debugging/docker_env/bin/f2py
    #	debugging/docker_env/bin/f2py3
    #	debugging/docker_env/bin/f2py3.8
    #	debugging/docker_env/bin/fonttools
    #	debugging/docker_env/bin/jsonschema
    #	debugging/docker_env/bin/keyring
    #	debugging/docker_env/bin/pip
    #	debugging/docker_env/bin/pip3
    #	debugging/docker_env/bin/pip3.8
    #	debugging/docker_env/bin/pkginfo
    #	debugging/docker_env/bin/poetry
    #	debugging/docker_env/bin/py-spy
    #	debugging/docker_env/bin/pyftmerge
    #	debugging/docker_env/bin/pyftsubset
    #	debugging/docker_env/bin/pyproject-build
    #	debugging/docker_env/bin/python
    #	debugging/docker_env/bin/python3
    #	debugging/docker_env/bin/ttx
    #	debugging/docker_env/bin/virtualenv
    #	debugging/docker_env/lib64
    #	debugging/docker_env/share/man/man1/ttx.1
    #	debugging/docker_env/share/python-wheels/CacheControl-0.12.6-py2.py3-none-any.whl
    #	debugging/docker_env/share/python-wheels/appdirs-1.4.3-py2.py3-none-any.whl
    #	debugging/docker_env/share/python-wheels/certifi-2019.11.28-py2.py3-none-any.whl
    #	debugging/docker_env/share/python-wheels/chardet-3.0.4-py2.py3-none-any.whl
    #	debugging/docker_env/share/python-wheels/colorama-0.4.3-py2.py3-none-any.whl
    #	debugging/docker_env/share/python-wheels/contextlib2-0.6.0-py2.py3-none-any.whl
    #	debugging/docker_env/share/python-wheels/distlib-0.3.0-py2.py3-none-any.whl
    #	debugging/docker_env/share/python-wheels/distro-1.4.0-py2.py3-none-any.whl
    #	debugging/docker_env/share/python-wheels/html5lib-1.0.1-py2.py3-none-any.whl
    #	debugging/docker_env/share/python-wheels/idna-2.8-py2.py3-none-any.whl
    #	debugging/docker_env/share/python-wheels/ipaddr-2.2.0-py2.py3-none-any.whl
    #	debugging/docker_env/share/python-wheels/lockfile-0.12.2-py2.py3-none-any.whl
    #	debugging/docker_env/share/python-wheels/msgpack-0.6.2-py2.py3-none-any.whl
    #	debugging/docker_env/share/python-wheels/packaging-20.3-py2.py3-none-any.whl
    #	debugging/docker_env/share/python-wheels/pep517-0.8.2-py2.py3-none-any.whl
    #	debugging/docker_env/share/python-wheels/pip-20.0.2-py2.py3-none-any.whl
    #	debugging/docker_env/share/python-wheels/pkg_resources-0.0.0-py2.py3-none-any.whl
    #	debugging/docker_env/share/python-wheels/progress-1.5-py2.py3-none-any.whl
    #	debugging/docker_env/share/python-wheels/pyparsing-2.4.6-py2.py3-none-any.whl
    #	debugging/docker_env/share/python-wheels/requests-2.22.0-py2.py3-none-any.whl
    #	debugging/docker_env/share/python-wheels/retrying-1.3.3-py2.py3-none-any.whl
    #	debugging/docker_env/share/python-wheels/setuptools-44.0.0-py2.py3-none-any.whl
    #	deb
    markspec authored and tasansal committed Mar 7, 2024
    Configuration menu
    Copy the full SHA
    f79ab7f View commit details
    Browse the repository at this point in the history
  9. Fix mdio copy.

    markspec authored and tasansal committed Mar 7, 2024
    Configuration menu
    Copy the full SHA
    07bc1e3 View commit details
    Browse the repository at this point in the history
  10. Remove duplicate tmp in .gitignore.

    markspec authored and tasansal committed Mar 7, 2024
    Configuration menu
    Copy the full SHA
    16232b1 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    0f9f63b View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    2cc8880 View commit details
    Browse the repository at this point in the history
  13. make copy work with new CLI

    tasansal committed Mar 7, 2024
    Configuration menu
    Copy the full SHA
    579baac View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    3f9b616 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    c897a40 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    8cbe3a2 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    afb2c79 View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    3c6048f View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    fb6af77 View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    2bb2fbe View commit details
    Browse the repository at this point in the history
  21. Refactor segy.py and update test_main.py

    Updated the segy.py file to import specific functions from click, rather than the entire module. The command decorator's function signatures and calls are also updated. This is to improve specificity and reduce unnecessary overhead. Additionally, modified the way command line arguments are passed in test_main.py as per the refactored changes in the main function.
    tasansal committed Mar 7, 2024
    Configuration menu
    Copy the full SHA
    3dae50c View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    4f45c98 View commit details
    Browse the repository at this point in the history
  23. Refactor import location in copy.py

    The import statement for 'MDIOReader' in the copy.py file has been moved to a more appropriate position. This change aims to maximize importing efficiency by having the import statement closer to where the imported module is being used.
    tasansal committed Mar 7, 2024
    Configuration menu
    Copy the full SHA
    0925cf4 View commit details
    Browse the repository at this point in the history
  24. Refactor MDIO info command for better code organization

    The MDIO info command is refactored to enhance code readability and maintenance. The new structure involves separate functions for 'cast_stats', 'parse_grid' and 'pretty_print' to each perform distinct tasks. This improves the clear segregation of tasks and ease of future modifications.
    tasansal committed Mar 7, 2024
    Configuration menu
    Copy the full SHA
    ecb1b57 View commit details
    Browse the repository at this point in the history
  25. Configuration menu
    Copy the full SHA
    7c3f496 View commit details
    Browse the repository at this point in the history
  26. Configuration menu
    Copy the full SHA
    727140f View commit details
    Browse the repository at this point in the history
  27. Update usage documentation for mdio commands

    The documentation for the mdio commands has been updated to reflect changes in the command syntax. Parameters for input and output files are now required positional arguments, rather than options, enhancing the clarity and readability of the commands.
    tasansal committed Mar 7, 2024
    Configuration menu
    Copy the full SHA
    51f3052 View commit details
    Browse the repository at this point in the history
  28. Configuration menu
    Copy the full SHA
    fa1fa82 View commit details
    Browse the repository at this point in the history
  29. Configuration menu
    Copy the full SHA
    316e6bd View commit details
    Browse the repository at this point in the history
  30. Configuration menu
    Copy the full SHA
    d4a0237 View commit details
    Browse the repository at this point in the history
  31. change overwrite to flag

    tasansal committed Mar 7, 2024
    Configuration menu
    Copy the full SHA
    fdf51fb View commit details
    Browse the repository at this point in the history