Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,15 @@ repos:
- id: check-symlinks
- id: mixed-line-ending

repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.1.7
rev: v0.7.3
hooks:
# Run the linter.
- id: ruff
types_or: [ python, pyi, jupyter ]
types_or: [ python, pyi ]
args: [ --fix ]
# Run the formatter.
- id: ruff-format
types_or: [ python, pyi, jupyter ]
types_or: [ python, pyi ]
1 change: 0 additions & 1 deletion flasc/model_fitting/floris_sensitivity_analysis.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
"""_summary_."""


import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
Expand Down
1 change: 0 additions & 1 deletion flasc/model_fitting/floris_tuning.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
# Doekemeijer at Shell, as well as discussions with Diederik van Binsbergen at
# NTNU. Please see readme.txt for more information.


import numpy as np
import polars as pl

Expand Down
1 change: 1 addition & 0 deletions flasc/model_fitting/yaw_pow_fitting.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Module for fitting yaw loss power curve."""

import os

import matplotlib.pyplot as plt
Expand Down
6 changes: 3 additions & 3 deletions flasc/utilities/floris_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -421,9 +421,9 @@ def calc_floris_approx_table(
:, tindex
]
solutions_dict["wd_{:03d}".format(tindex)] = fm.wind_directions
solutions_dict[
"ti_{:03d}".format(tindex)
] = fm.core.flow_field.turbulence_intensity_field[:, tindex]
solutions_dict["ti_{:03d}".format(tindex)] = (
fm.core.flow_field.turbulence_intensity_field[:, tindex]
)
df_approx = pd.DataFrame(solutions_dict)

logger.info("Finished calculating the FLORIS solutions for the dataframe.")
Expand Down
1 change: 0 additions & 1 deletion flasc/yaw_optimizer_visualization.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
"""Module for visualizing yaw optimizer results."""


import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
Expand Down