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

Openandorder refactor #36

Merged
merged 4 commits into from
Aug 2, 2022
Merged

Conversation

t-young31
Copy link
Member

@t-young31 t-young31 commented Jul 21, 2022

Refactors openandorder. This PR adds:

  • A few simple tests of the CLI
  • Changes NULL to nullptr (a clangtidy suggestion)
  • Extracts some of the main function into functions and argument parser class for readability
  • Extracts and argument parser and grid initialiser class

@t-young31 t-young31 marked this pull request as draft July 22, 2022 10:21
@t-young31 t-young31 marked this pull request as ready for review July 22, 2022 20:35
tdms/CMakeLists.txt Outdated Show resolved Hide resolved
@t-young31 t-young31 requested a review from giordano July 22, 2022 20:47
Copy link
Member

@giordano giordano left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any way to test the introduced features, like argument parsing?

tdms/tests/system/test_cli.py Show resolved Hide resolved
tdms/src/queuelinked.cpp Show resolved Hide resolved
tdms/src/argument_parser.cpp Outdated Show resolved Hide resolved
@t-young31
Copy link
Member Author

Any way to test the introduced features, like argument parsing?

At the moment I'd say there are more important things to do than unit testing the argument parsing that has some system tests, but could be persuaded otherwise!

@t-young31 t-young31 mentioned this pull request Jul 27, 2022
Rename


Add argument parser class


Extract function


Delete non required standard specification


Include stdecept


Remove unused header file


Refactor saveoutput


Refactor openandorder


Extract class [skip actions]


Extract matrix collections


Include stdexcept 


More stdexcept


More function extraction


include cstring


Extract functions


Extract class


Include stdexcept


Self review changes


tmp


t
@t-young31 t-young31 requested review from willGraham01 and removed request for giordano August 1, 2022 09:08
Copy link
Member

@dstansby dstansby left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I haven't looked at detail into ftdd_grid_initialiser.cpp, matrix_collection.cpp, or openandorder.cpp as they seem copy/pasted and changing the code is outside scope of this PR. Otherwise looks 👍 with some minor suggestions

As a general comment, would be good to get a linter to enforce consisted code style asap. I'm happy to open an issue for that?

tdms/CMakeLists.txt Outdated Show resolved Hide resolved
tdms/include/openandorder.h Outdated Show resolved Hide resolved
tdms/src/argument_parser.cpp Outdated Show resolved Hide resolved
tdms/src/argument_parser.cpp Outdated Show resolved Hide resolved
tdms/src/argument_parser.cpp Show resolved Hide resolved
tdms/src/argument_parser.cpp Show resolved Hide resolved
tdms/src/argument_parser.cpp Show resolved Hide resolved
tdms/src/utils.cpp Show resolved Hide resolved
tdms/tests/system/utils.py Outdated Show resolved Hide resolved
tdms/tests/system/utils.py Outdated Show resolved Hide resolved
@dstansby
Copy link
Member

dstansby commented Aug 2, 2022

Oh, also a rebase onto main to get a CI run in would be good

t-young31 and others added 2 commits August 2, 2022 11:29
Co-authored-by: David Stansby <dstansby@gmail.com>
tdms/tests/system/utils.py Show resolved Hide resolved
@t-young31 t-young31 merged commit 9a8e5ac into UCL:main Aug 2, 2022
@t-young31 t-young31 deleted the openandorder_refactor branch August 2, 2022 12:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants