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

Support volume zones and aeroacoustic output #60

Merged
merged 5 commits into from
Oct 3, 2023

Conversation

awkrupka
Copy link
Contributor

@awkrupka awkrupka commented Oct 2, 2023

More complete volume zone tests were added, aeroacoustic output has been defined based on the JSON Schema.

Also incorporates a temporary fix causing extremely long test running times on Windows caused by log file writes - this issue needs to be addressed separately.

@awkrupka awkrupka force-pushed the maciej/support_volume_zones branch from 20d7dbd to 257c4dc Compare October 2, 2023 15:05
@awkrupka awkrupka force-pushed the maciej/support_volume_zones branch from 257c4dc to 5aee77e Compare October 2, 2023 15:07
animation_frequency: Optional[PositiveInt] = pd.Field(alias="animationFrequency")
animation_frequency_offset: Optional[int] = pd.Field(alias="animationFrequencyOffset")
patch_type: Optional[str] = pd.Field("solid", const=True)
observers: List[Coordinate] = pd.Field(alias="observers")
Copy link
Collaborator

Choose a reason for hiding this comment

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

alias seems to be redundant here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed in a01150b


animation_frequency: Optional[PositiveInt] = pd.Field(alias="animationFrequency")
animation_frequency_offset: Optional[int] = pd.Field(alias="animationFrequencyOffset")
patch_type: Optional[str] = pd.Field("solid", const=True)
Copy link
Collaborator

Choose a reason for hiding this comment

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

it needs alias patchType

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed in a01150b

>>> aeroacoustics = AeroacousticOutput()
"""

animation_frequency: Optional[PositiveInt] = pd.Field(alias="animationFrequency")
Copy link
Collaborator

Choose a reason for hiding this comment

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

animationFrequency can be positive int or -1. I think Union with Literal can work here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed in a01150b, added additional unit tests for -1 and other negative numbers


Example
-------
>>> aeroacoustics = AeroacousticOutput()
Copy link
Collaborator

Choose a reason for hiding this comment

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

lets give example that means something, for example observers=[(0, 0, 0), (0, 0, 1)]

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed in a01150b, also added minimal entries for optional parameters in the documentation

@maciej-flexcompute maciej-flexcompute merged commit 6336940 into develop Oct 3, 2023
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