Skip to content

Commit 57fb2e2

Browse files
authored
Updating black to 26.1.0 and re-running it (#1283)
1 parent b42db6b commit 57fb2e2

File tree

70 files changed

+113
-93
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+113
-93
lines changed

cloud/aws/cloudformation/FOQUS_SLM_instance_in_subnet.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@
6161
from awacs.aws import Allow, Statement, Principal, Policy, Action
6262
from awacs.sts import AssumeRole
6363

64-
6564
# Globals
6665
# bucket_name:
6766
# used by instance cloud-init scripts to grab installers, etc
@@ -76,11 +75,9 @@ def _create_template(
7675
"""returns Template instance"""
7776
t = Template()
7877
t.add_version("2010-09-09")
79-
t.add_description(
80-
"""Template to create SLM instance and bind to
78+
t.add_description("""Template to create SLM instance and bind to
8179
passed in Network Interface\
82-
"""
83-
)
80+
""")
8481

8582
keyname_param = t.add_parameter(
8683
Parameter(
@@ -398,7 +395,7 @@ def main():
398395
usage="USAGE: %prog [vpc_id] [subnet_id] [internet_gateway_id] [network_interface_id] [allocation_id]",
399396
description=main.__doc__,
400397
)
401-
(options, args) = op.parse_args()
398+
options, args = op.parse_args()
402399
# if len(args) != 1: usage()
403400
# command = args[0]
404401
# Ref(VPC)

cloud/aws/foqus_service.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
Joshua Boverhof, Lawrence Berkeley National Lab
1919
2020
"""
21+
2122
import os, sys
2223
import traceback
2324
import win32api

docs/source/_repopath.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
from sphinx.application import Sphinx as SphinxApp
2323
from sphinx.roles import EmphasizedLiteral
2424

25-
2625
_logger = logging.getLogger(f"sphinx.ext.{__name__}")
2726

2827

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,6 @@ def interpolate(npts, XX, oid):
338338
else:
339339
if y in labels:
340340
index = labels.index(y)
341-
(nSamples, inputVectors, nInputs) = getInputData(infileName)
341+
nSamples, inputVectors, nInputs = getInputData(infileName)
342342
result = interpolate(nSamples, inputVectors, index)
343343
genOutputFile(outfileName, result)

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,6 @@ def interpolate(npts, XX, oid):
338338
else:
339339
if y in labels:
340340
index = labels.index(y)
341-
(nSamples, inputVectors, nInputs) = getInputData(infileName)
341+
nSamples, inputVectors, nInputs = getInputData(infileName)
342342
result = interpolate(nSamples, inputVectors, index)
343343
genOutputFile(outfileName, result)

examples/other_files/ML_AI_Plugin/Other_MLAI_Models/mea_column_model_training_jenn.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
import pickle
2020
from types import SimpleNamespace
2121

22-
2322
# Example follows the sequence below:
2423
# 1) Code at end of file to import data and create model
2524
# 2) Call create_model() to define inputs and outputs

examples/other_files/ML_AI_Plugin/Other_MLAI_Models/mea_column_model_training_smtgenn.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
import pickle
2020
from types import SimpleNamespace
2121

22-
2322
# Example follows the sequence below:
2423
# 1) Code at end of file to import data and create model
2524
# 2) Call create_model() to define inputs and outputs

foqus_lib/core.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"""
1616
Joshua Boverhof, Lawrence Berkeley National Labs, 2024
1717
"""
18+
1819
import os, shutil, logging
1920

2021
# from foqus_lib.framework.session.session import generalSettings as FoqusSettings

foqus_lib/framework/foqusException/foqusException.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
1919
John Eslick, Carnegie Mellon University, 2014
2020
"""
21+
2122
import traceback
2223

2324

foqus_lib/framework/foqusOptions/option.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# "https://github.com/CCSI-Toolset/FOQUS".
1414
#################################################################################
1515
"""option.py
16-
16+
1717
This is an options class for FOQUS, mainly used for optimization and surrogate
1818
model plugins.
1919

0 commit comments

Comments
 (0)