-
Notifications
You must be signed in to change notification settings - Fork 6
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
Conversation
20d7dbd
to
257c4dc
Compare
257c4dc
to
5aee77e
Compare
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") |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it needs alias patchType
There was a problem hiding this comment.
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") |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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() |
There was a problem hiding this comment.
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)]
There was a problem hiding this comment.
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
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.