This repository was archived by the owner on Nov 27, 2023. It is now read-only.
File tree 5 files changed +18
-16
lines changed
5 files changed +18
-16
lines changed Original file line number Diff line number Diff line change 1
1
# pyfast
2
- Submodule for regression testing for NREL-supported OpenFAST: https://github.com/OpenFAST/openfast
3
2
3
+ [ ![ Python: 3.6+] ( https://img.shields.io/badge/python-3.6%2B-informational )] ( https://www.python.org/ )
4
4
[ ![ Code style: black] ( https://img.shields.io/badge/code%20style-black-000000.svg )] ( https://github.com/psf/black )
5
+
6
+ Submodule for regression testing for NREL-supported OpenFAST: https://github.com/OpenFAST/openfast
Original file line number Diff line number Diff line change 1
1
"""Initializes the package"""
2
-
3
- from pyfast import Executor , utilities
Original file line number Diff line number Diff line change 11
11
12
12
import bokeh
13
13
import numpy as np
14
- from pyfast .pyfast . utilities import (
14
+ from pyfast .utilities import (
15
15
load_output ,
16
16
validate_file ,
17
17
calculate_norms ,
Original file line number Diff line number Diff line change 1
1
"""Initializes the utility functions"""
2
2
3
3
4
- from .norm import calculate_norms
5
- from .fast_io import load_output
6
- from .plotting import create_case_summary
7
- from .utilities import *
4
+ from pyfast . utilities .norm import calculate_norms
5
+ from pyfast . utilities .fast_io import load_output
6
+ from pyfast . utilities .plotting import create_case_summary
7
+ from pyfast . utilities .utilities import *
Original file line number Diff line number Diff line change 7
7
8
8
import numpy as np
9
9
import numpy .linalg as LA
10
- from pyfast .utilities import load_output , validate_file
11
-
12
- NORM_MAP = {
13
- "max_norm" : max_norm ,
14
- "max_norm_over_range" : max_norm_over_range ,
15
- "l2_norm" : l2_norm ,
16
- "relative_l2_norm" : relative_l2_norm ,
17
- }
10
+ from pyfast .utilities .fast_io import load_output
11
+ from pyfast .utilities .utilities import validate_file
18
12
19
13
20
14
def diff (baseline : np .ndarray , test : np .ndarray , abs_val : bool = True ) -> np .ndarray :
@@ -230,6 +224,14 @@ def calculate_norms(
230
224
return norm_results
231
225
232
226
227
+ NORM_MAP = {
228
+ "max_norm" : max_norm ,
229
+ "max_norm_over_range" : max_norm_over_range ,
230
+ "l2_norm" : l2_norm ,
231
+ "relative_l2_norm" : relative_l2_norm ,
232
+ }
233
+
234
+
233
235
if __name__ == "__main__" :
234
236
235
237
parser = argparse .ArgumentParser (
You can’t perform that action at this time.
0 commit comments