Skip to content

Commit

Permalink
add fix for neuralfoil optimization with MX-type parameters.
Browse files Browse the repository at this point in the history
  • Loading branch information
peterdsharpe committed Mar 12, 2024
1 parent 63687db commit 8bb524f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion neuralfoil/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
bl_x_points,
)

__version__ = "0.2.0"
__version__ = "0.2.1"
8 changes: 4 additions & 4 deletions neuralfoil/gen2_architecture/_basic_data_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import aerosandbox as asb
import aerosandbox.numpy as np
from dataclasses import dataclass, field
from typing import Union, Sequence, List, Any
from typing import Union, Sequence, List, Any, Dict
from scipy import interpolate


Expand Down Expand Up @@ -64,7 +64,7 @@ class Data():
bl_x_points = compute_optimal_x_points(n_points=N)

analysis_confidence: float # Nominally 0 (no confidence) to 1 (high confidence)
af_outputs: dict[str, Any] = field(
af_outputs: Dict[str, Any] = field(
default_factory=lambda: {
"CL" : np.nan,
"CD" : np.nan,
Expand All @@ -73,14 +73,14 @@ class Data():
"Bot_Xtr": np.nan,
}
)
upper_bl_outputs: dict[str, Any] = field(
upper_bl_outputs: Dict[str, Any] = field(
default_factory=lambda: {
"theta" : np.nan * np.ones_like(Data.bl_x_points),
"H" : np.nan * np.ones_like(Data.bl_x_points),
"ue/vinf": np.nan * np.ones_like(Data.bl_x_points),
}
) # theta, H, ue/vinf
lower_bl_outputs: dict[str, Any] = field(
lower_bl_outputs: Dict[str, Any] = field(
default_factory=lambda: {
"theta" : np.nan * np.ones_like(Data.bl_x_points),
"H" : np.nan * np.ones_like(Data.bl_x_points),
Expand Down

0 comments on commit 8bb524f

Please sign in to comment.