Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes due to updated black #432

Merged
merged 2 commits into from Oct 19, 2023
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion Support/ceptr/.flake8
Expand Up @@ -2,7 +2,7 @@
max-line-length = 88
max-complexity = 10
select = C,E,F,W,B,B950,N,D
ignore = E203,E501,W503,C901,FS003
ignore = E203,E302,E501,W503,C901,FS003
docstring-convention = numpy
exclude =
.git,
Expand Down
1 change: 1 addition & 0 deletions Support/ceptr/ceptr/__init__.py
@@ -1,2 +1,3 @@
"""CEPTR."""

__version__ = "0.1.0"
1 change: 1 addition & 0 deletions Support/ceptr/ceptr/__main__.py
@@ -1,4 +1,5 @@
"""Executable for CEPTR package."""

import ceptr.ceptr as cp

if __name__ == "__main__":
Expand Down
1 change: 1 addition & 0 deletions Support/ceptr/ceptr/ceptr.py
@@ -1,4 +1,5 @@
"""Convert cantera mechanism to C++ files."""

import argparse
import pathlib
import time
Expand Down
1 change: 1 addition & 0 deletions Support/ceptr/ceptr/ck.py
@@ -1,4 +1,5 @@
"""CK routines."""

import ceptr.constants as cc
import ceptr.thermo as cth
import ceptr.writer as cw
Expand Down
1 change: 1 addition & 0 deletions Support/ceptr/ceptr/constants.py
@@ -1,4 +1,5 @@
"""Constants."""

import cantera as ct
from pint import UnitRegistry

Expand Down
1 change: 1 addition & 0 deletions Support/ceptr/ceptr/converter.py
@@ -1,4 +1,5 @@
"""Generate C++ files for a mechanism."""

import pathlib
import shutil
import subprocess as spr
Expand Down
1 change: 0 additions & 1 deletion Support/ceptr/ceptr/formatter.py
@@ -1,6 +1,5 @@
"""Helper functions for CPP formatting."""


def format_species(species):
"""Remove characters not allowed in preprocessor defines."""
s = species.strip()
Expand Down
1 change: 1 addition & 0 deletions Support/ceptr/ceptr/gjs.py
@@ -1,4 +1,5 @@
"""Gauss-Jordan functions."""

import ceptr.writer as cw


Expand Down
1 change: 1 addition & 0 deletions Support/ceptr/ceptr/inputs.py
@@ -1,4 +1,5 @@
"""Classes for toml input files."""

import sys

import toml
Expand Down
1 change: 1 addition & 0 deletions Support/ceptr/ceptr/jacobian.py
@@ -1,4 +1,5 @@
"""Write jacobian functions."""

import copy
import sys
from collections import Counter, OrderedDict
Expand Down
5 changes: 2 additions & 3 deletions Support/ceptr/ceptr/production.py
@@ -1,4 +1,5 @@
"""Production functions."""

import sys
from math import isclose

Expand Down Expand Up @@ -696,9 +697,7 @@ def production_rate(
f" {10 ** (-dim * 6) * low_pef.m * 10 ** 3 ** dim:.15g} ",
)
redp_smp = (
corr_smp
/ k_f_smp
* (10 ** (-dim * 6) * low_pef.m * 10 ** (3**dim))
corr_smp / k_f_smp * (10 ** (-dim * 6) * low_pef.m * 10 ** (3**dim))
)
if (low_beta == 0) and (low_ae.m == 0):
cw.writer(
Expand Down
1 change: 1 addition & 0 deletions Support/ceptr/ceptr/qssa.py
@@ -1,4 +1,5 @@
"""Generate QSSA chemistry file."""

import argparse
import pathlib
import sys
Expand Down
1 change: 1 addition & 0 deletions Support/ceptr/ceptr/qssa_converter.py
@@ -1,4 +1,5 @@
"""QSSA functions needed for conversion."""

import copy
import sys
from collections import Counter, OrderedDict, defaultdict
Expand Down
1 change: 1 addition & 0 deletions Support/ceptr/ceptr/qssa_graphs.py
@@ -1,4 +1,5 @@
"""Graph utilities for QSSA."""

import pathlib

import matplotlib.pyplot as plt
Expand Down
1 change: 1 addition & 0 deletions Support/ceptr/ceptr/qssa_info.py
@@ -1,4 +1,5 @@
"""QSSA information."""

from collections import OrderedDict


Expand Down
1 change: 1 addition & 0 deletions Support/ceptr/ceptr/qssa_reduction.py
@@ -1,4 +1,5 @@
"""QSSA utilities."""

import itertools

import ceptr.qssa_graphs as cqg
Expand Down
1 change: 1 addition & 0 deletions Support/ceptr/ceptr/reaction_info.py
@@ -1,4 +1,5 @@
"""Reaction information."""

from collections import OrderedDict

import ceptr.constants as cc
Expand Down
1 change: 1 addition & 0 deletions Support/ceptr/ceptr/sparsity.py
@@ -1,4 +1,5 @@
"""Sparsity patterns."""

import ceptr.writer as cw


Expand Down
1 change: 1 addition & 0 deletions Support/ceptr/ceptr/species_info.py
@@ -1,4 +1,5 @@
"""Species information."""

from collections import OrderedDict

import pandas as pd
Expand Down
1 change: 1 addition & 0 deletions Support/ceptr/ceptr/symbolic_math.py
@@ -1,4 +1,5 @@
"""Symbolic math for symbolic differentiation."""

import re
from collections import OrderedDict

Expand Down
1 change: 1 addition & 0 deletions Support/ceptr/ceptr/thermo.py
@@ -1,4 +1,5 @@
"""Thermodynamics functions."""

import io
import sys
from collections import OrderedDict
Expand Down
1 change: 1 addition & 0 deletions Support/ceptr/ceptr/transport.py
@@ -1,4 +1,5 @@
"""Transport routines."""

import sys
from collections import OrderedDict

Expand Down
1 change: 1 addition & 0 deletions Support/ceptr/ceptr/utilities.py
@@ -1,4 +1,5 @@
"""Utility functions used across ceptr."""

import copy
import sys
from collections import Counter
Expand Down
1 change: 0 additions & 1 deletion Support/ceptr/ceptr/writer.py
@@ -1,6 +1,5 @@
"""Helper functions for printing."""


def comment(string):
"""Comment a string."""
return f"""// {string}"""
Expand Down
1 change: 1 addition & 0 deletions Support/ceptr/tests/test_ceptr.py
@@ -1,4 +1,5 @@
"""Tests for cepter."""

import pathlib

import cantera as ct
Expand Down