Skip to content

Support volume zones and aeroacoustic output - #60

Merged
maciej-flexcompute merged 5 commits into
developfrom
maciej/support_volume_zones
Oct 3, 2023
Merged

Support volume zones and aeroacoustic output#60
maciej-flexcompute merged 5 commits into
developfrom
maciej/support_volume_zones

Conversation

@awkrupka

@awkrupka awkrupka commented Oct 2, 2023

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
@benflexcompute
benflexcompute deleted the maciej/support_volume_zones branch July 17, 2025 19: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.

3 participants