Skip to content

Commit 295119e

Browse files
Bump black from 22.3.0 to 24.3.0 (#1206)
* Bump black from 22.3.0 to 24.3.0 Bumps [black](https://github.com/psf/black) from 22.3.0 to 24.3.0. - [Release notes](https://github.com/psf/black/releases) - [Changelog](https://github.com/psf/black/blob/main/CHANGES.md) - [Commits](psf/black@22.3.0...24.3.0) --- updated-dependencies: - dependency-name: black dependency-type: direct:development ... Signed-off-by: dependabot[bot] <support@github.com> * Format using Black 24.3.0 * Run Black 24.3.0 also on files outside foqus_lib --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Ludovico Bianchi <lbianchi@lbl.gov>
1 parent 8c98cfa commit 295119e

20 files changed

Lines changed: 59 additions & 51 deletions

examples/2020-shmtg/CompDemo/Flowsheet-UQ-SM/MEA_SSM_Part2_files/Ensemble_201008152339/Analysis_201009204103/alamo_surrogate_uq.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
import math
3535
import json
3636

37+
3738
# ==================================================
3839
# Function to get input data for interpolation
3940
# ==================================================
@@ -81,6 +82,8 @@ def genOutputFile(outFileName, outData):
8182
indexes = [5, 6, 1]
8283
nInputs = 6
8384
nOutputs = 3
85+
86+
8487
# ==================================================
8588
# Interpolate function for ALAMO
8689
# ==================================================

examples/2020-shmtg/CompDemo/Flowsheet-UQ-SM/MEA_SSM_Part2_files/Ensemble_201008152339/Analysis_201009204306/alamo_surrogate_uq.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
import math
3535
import json
3636

37+
3738
# ==================================================
3839
# Function to get input data for interpolation
3940
# ==================================================
@@ -81,6 +82,8 @@ def genOutputFile(outFileName, outData):
8182
indexes = [5, 6, 1]
8283
nInputs = 6
8384
nOutputs = 3
85+
86+
8487
# ==================================================
8588
# Interpolate function for ALAMO
8689
# ==================================================

examples/other_files/ML_AI_Plugin/generate_gradient_data.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@
3535

3636
# set seed values for reproducibility
3737
os.environ["PYTHONHASHSEED"] = "0"
38-
os.environ[
39-
"CUDA_VISIBLE_DEVICES"
40-
] = "" # changing "" to "0" or "-1" may solve import issues
38+
os.environ["CUDA_VISIBLE_DEVICES"] = (
39+
"" # changing "" to "0" or "-1" may solve import issues
40+
)
4141
np.random.seed(46)
4242
rn.seed(1342)
4343
tf.random.set_seed(62)

examples/other_files/ML_AI_Plugin/mea_column_model.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,14 @@
1919

2020
# set seed values for reproducibility
2121
os.environ["PYTHONHASHSEED"] = "0"
22-
os.environ[
23-
"CUDA_VISIBLE_DEVICES"
24-
] = "" # changing "" to "0" or "-1" may solve import issues
22+
os.environ["CUDA_VISIBLE_DEVICES"] = (
23+
"" # changing "" to "0" or "-1" may solve import issues
24+
)
2525
np.random.seed(46)
2626
rn.seed(1342)
2727
tf.random.set_seed(62)
2828

29+
2930
# custom class to define Keras NN layers
3031
@tf.keras.utils.register_keras_serializable()
3132
class mea_column_model(tf.keras.layers.Layer):

examples/other_files/ML_AI_Plugin/mea_column_model_customnormform.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919

2020
# set seed values for reproducibility
2121
os.environ["PYTHONHASHSEED"] = "0"
22-
os.environ[
23-
"CUDA_VISIBLE_DEVICES"
24-
] = "" # changing "" to "0" or "-1" may solve import issues
22+
os.environ["CUDA_VISIBLE_DEVICES"] = (
23+
"" # changing "" to "0" or "-1" may solve import issues
24+
)
2525
np.random.seed(46)
2626
rn.seed(1342)
2727
tf.random.set_seed(62)

examples/other_files/ML_AI_Plugin/mea_column_model_customnormform_json.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919

2020
# set seed values for reproducibility
2121
os.environ["PYTHONHASHSEED"] = "0"
22-
os.environ[
23-
"CUDA_VISIBLE_DEVICES"
24-
] = "" # changing "" to "0" or "-1" may solve import issues
22+
os.environ["CUDA_VISIBLE_DEVICES"] = (
23+
"" # changing "" to "0" or "-1" may solve import issues
24+
)
2525
np.random.seed(46)
2626
rn.seed(1342)
2727
tf.random.set_seed(62)

examples/other_files/ML_AI_Plugin/mea_column_model_customnormform_savedmodel.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919

2020
# set seed values for reproducibility
2121
os.environ["PYTHONHASHSEED"] = "0"
22-
os.environ[
23-
"CUDA_VISIBLE_DEVICES"
24-
] = "" # changing "" to "0" or "-1" may solve import issues
22+
os.environ["CUDA_VISIBLE_DEVICES"] = (
23+
"" # changing "" to "0" or "-1" may solve import issues
24+
)
2525
np.random.seed(46)
2626
rn.seed(1342)
2727
tf.random.set_seed(62)

examples/other_files/ML_AI_Plugin/mea_column_model_training.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@
2020

2121
# set seed values for reproducibility
2222
os.environ["PYTHONHASHSEED"] = "0"
23-
os.environ[
24-
"CUDA_VISIBLE_DEVICES"
25-
] = "" # changing "" to "0" or "-1" may solve import issues
23+
os.environ["CUDA_VISIBLE_DEVICES"] = (
24+
"" # changing "" to "0" or "-1" may solve import issues
25+
)
2626
np.random.seed(46)
2727
rn.seed(1342)
2828
tf.random.set_seed(62)
@@ -36,6 +36,7 @@
3636
# 4) Back to create_model() to compile and train model
3737
# 5) Back to code at end of file to save, load and test model
3838

39+
3940
# custom class to define Keras NN layers
4041
@tf.keras.utils.register_keras_serializable()
4142
class mea_column_model(tf.keras.layers.Layer):

examples/other_files/ML_AI_Plugin/mea_column_model_training_customnormform.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@
2020

2121
# set seed values for reproducibility
2222
os.environ["PYTHONHASHSEED"] = "0"
23-
os.environ[
24-
"CUDA_VISIBLE_DEVICES"
25-
] = "" # changing "" to "0" or "-1" may solve import issues
23+
os.environ["CUDA_VISIBLE_DEVICES"] = (
24+
"" # changing "" to "0" or "-1" may solve import issues
25+
)
2626
np.random.seed(46)
2727
rn.seed(1342)
2828
tf.random.set_seed(62)

examples/other_files/ML_AI_Plugin/mea_column_model_training_customnormform_json.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@
2020

2121
# set seed values for reproducibility
2222
os.environ["PYTHONHASHSEED"] = "0"
23-
os.environ[
24-
"CUDA_VISIBLE_DEVICES"
25-
] = "" # changing "" to "0" or "-1" may solve import issues
23+
os.environ["CUDA_VISIBLE_DEVICES"] = (
24+
"" # changing "" to "0" or "-1" may solve import issues
25+
)
2626
np.random.seed(46)
2727
rn.seed(1342)
2828
tf.random.set_seed(62)

0 commit comments

Comments
 (0)