-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
introduce cli using argparse. No necessity of using YAML.
- Loading branch information
Showing
26 changed files
with
704 additions
and
229 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
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 |
---|---|---|
@@ -1,2 +1,30 @@ | ||
import numpy as np | ||
class DimensionViolationException(Exception): | ||
pass | ||
pass | ||
|
||
class GmshUseBeforeInitializedException(Exception): | ||
def __init__(self, message = "Gmsh must be initialized first!"): | ||
self.message = message | ||
super().__init__(message) | ||
|
||
class DimensionInconsistencyException(Exception): | ||
def __init__(self, arr_a, arr_b): | ||
self.dim_a = np.array(arr_a).shape()[0] | ||
self.dim_b = np.array(arr_b).shape()[0] | ||
self.message = f"Dimensions are inconsistent. Got Dim A {self.dim_a}, Dim B {self.dim_b}." | ||
super().__init__(self.message) | ||
|
||
class NoDataInDatabaseException(Exception): | ||
def __init__(self, item: str): | ||
self.message = f"{item} not found." | ||
super().__init__(self.message) | ||
|
||
class InvalidFileFormatException(Exception): | ||
def __init__(self, item: str): | ||
self.message = f"Invalid file format {item} imported." | ||
super().__init__(self.message) | ||
|
||
class InsufficientDataException(Exception): | ||
def __init__(self): | ||
self.message = "Insufficient Data, exit." | ||
super().__init__(self.message) |
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
Oops, something went wrong.