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

Add ICT to CLT conversion #271

Closed

Conversation

JesseMckinzie
Copy link
Member

  • Add function to convert ICT to CLT
  • Add ICT spec code

Copy link
Member

@vjaganat90 vjaganat90 left a comment

Choose a reason for hiding this comment

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

Might need one more round of review. Adding tests to CI is necessary.

Copy link
Member

Choose a reason for hiding this comment

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

This whole thing isn't implemented at all. Do we need to include in our repo?

Copy link
Member Author

Choose a reason for hiding this comment

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

This is implemented and is needed for casting different types to the ICT object. See the singledispatch function on line 12 with corresponding functions for different argument types on lines 19, 37, and 55.

Copy link
Member

Choose a reason for hiding this comment

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

Pretty sure this isn't needed as this generates semver for the ict_spec repo.

dict: A dictionary containing the CLT
"""

ict_local = ict if isinstance(ict, ICT) else validate(ict)
Copy link
Member

Choose a reason for hiding this comment

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

validate isn't implemented, just nuke it and raise an error here. Also see if you can eliminate some of the bloat and boiler plate.

Copy link
Member Author

Choose a reason for hiding this comment

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

Validate is implemented and needed for casting the different types of arguments to the ICT object

Copy link
Member

Choose a reason for hiding this comment

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

This is needs to redone. Follow the pattern of existing test pattern (See test_rest_core.py and test_examples.py). Also you need to add command to run these tests in runworkflows.yml so that these become part of CI.

Copy link
Member

Choose a reason for hiding this comment

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

Better if all these data objects were .json files as these aren't code. Need more descriptive folder name than just 'data', maybe 'ict_clt_data'

Copy link
Member

Choose a reason for hiding this comment

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

This is just an aesthetic thing. You should format these data files cmd+k cmd+f. Or write them out with correct indent when generating them.

@sameeul
Copy link
Member

sameeul commented Oct 2, 2024

closed in favor of #275

@sameeul sameeul closed this Oct 2, 2024
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.

3 participants