-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
27 changed files
with
74 additions
and
168 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,24 @@ | ||
__version__ = "1.5.2" | ||
|
||
from .pyAero_problem import AeroProblem | ||
from .pyTransi_problem import TransiProblem | ||
from .pyStruct_problem import StructProblem | ||
from .pyAeroStruct_problem import AeroStructProblem | ||
|
||
from .pyAero_solver import AeroSolver | ||
from .BaseSolver import BaseSolver | ||
|
||
from .pyMission_problem import MissionProblem | ||
from .pyMission_problem import MissionProfile | ||
from .pyMission_problem import MissionSegment | ||
|
||
from .pyWeight_problem import WeightProblem | ||
from .pyWeight_problem import FuelCase | ||
|
||
from .FluidProperties import FluidProperties | ||
from .ICAOAtmosphere import ICAOAtmosphere | ||
from .pyEngine_problem import EngineProblem | ||
|
||
from .pyFieldPerformance_problem import FieldPerformanceProblem | ||
|
||
from .pyLG_problem import LGProblem | ||
|
||
from .py3Util import getPy3SafeString | ||
from .BaseRegTest import BaseRegTest | ||
from .problems import ( | ||
AeroProblem, | ||
TransiProblem, | ||
StructProblem, | ||
AeroStructProblem, | ||
MissionProblem, | ||
MissionProfile, | ||
MissionSegment, | ||
WeightProblem, | ||
FuelCase, | ||
FluidProperties, | ||
ICAOAtmosphere, | ||
EngineProblem, | ||
FieldPerformanceProblem, | ||
LGProblem, | ||
) | ||
|
||
from .solvers import BaseSolver, AeroSolver | ||
|
||
from .utils import getPy3SafeString | ||
|
||
from .testing import BaseRegTest, getTol |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
from .pyAero_problem import AeroProblem | ||
from .pyTransi_problem import TransiProblem | ||
from .pyStruct_problem import StructProblem | ||
from .pyAeroStruct_problem import AeroStructProblem | ||
from .pyMission_problem import MissionProblem, MissionProfile, MissionSegment | ||
from .pyWeight_problem import WeightProblem, FuelCase | ||
from .FluidProperties import FluidProperties | ||
from .ICAOAtmosphere import ICAOAtmosphere | ||
from .pyEngine_problem import EngineProblem | ||
from .pyFieldPerformance_problem import FieldPerformanceProblem | ||
from .pyLG_problem import LGProblem |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
pyAero_problem | ||
""" | ||
from .utils import Error | ||
from ..utils import Error | ||
|
||
|
||
class TransiProblem: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
from .BaseSolver import BaseSolver | ||
from .pyAero_solver import AeroSolver |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
from .pyRegTest import BaseRegTest, getTol | ||
from .decorators import require_mpi |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
from .containers import CaseInsensitiveSet, CaseInsensitiveDict | ||
from .error import Error | ||
from .py3Util import getPy3SafeString |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
class Error(Exception): | ||
""" | ||
Format the error message in a box to make it clear this | ||
was a explicitly raised exception. | ||
""" | ||
|
||
def __init__(self, message): | ||
self.message = message | ||
msg = "\n+" + "-" * 78 + "+" + "\n" + "| Error: " | ||
i = 8 | ||
for word in message.split(): | ||
if len(word) + i + 1 > 78: # Finish line and start new one | ||
msg += " " * (78 - i) + "|\n| " + word + " " | ||
i = 1 + len(word) + 1 | ||
else: | ||
msg += word + " " | ||
i += len(word) + 1 | ||
msg += " " * (78 - i) + "|\n" + "+" + "-" * 78 + "+" + "\n" | ||
super().__init__(msg) |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters