Skip to content

Commit

Permalink
Fix quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
mraspaud committed Mar 27, 2024
1 parent 52ae086 commit bc9f8fc
Show file tree
Hide file tree
Showing 23 changed files with 602 additions and 602 deletions.
34 changes: 17 additions & 17 deletions doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,33 +24,33 @@

# Add any Sphinx extension module names here, as strings. They can be extensions
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
extensions = ['sphinx.ext.autodoc', 'sphinx.ext.doctest', 'sphinx.ext.todo',
'sphinx.ext.inheritance_diagram']
extensions = ["sphinx.ext.autodoc", "sphinx.ext.doctest", "sphinx.ext.todo",
"sphinx.ext.inheritance_diagram"]

# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']
templates_path = ["_templates"]

# The suffix of source filenames.
source_suffix = '.rst'
source_suffix = ".rst"

# The encoding of source files.
#source_encoding = 'utf-8-sig'

# The master toctree document.
master_doc = 'index'
master_doc = "index"

# General information about the project.
project = u'pygac'
copyright = u'2014, Abhay Devasthale, Martin Raspaud and Adam Dybbroe'
project = u"pygac"
copyright = u"2014, Abhay Devasthale, Martin Raspaud and Adam Dybbroe"

# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
# built documents.
#
# The short X.Y version.
version = '0.1'
version = "0.1"
# The full version, including alpha/beta/rc tags.
release = '0.1'
release = "0.1"

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down Expand Up @@ -81,7 +81,7 @@
#show_authors = False

# The name of the Pygments (syntax highlighting) style to use.
pygments_style = 'sphinx'
pygments_style = "sphinx"

# A list of ignored prefixes for module index sorting.
#modindex_common_prefix = []
Expand All @@ -91,7 +91,7 @@

# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
html_theme = 'default'
html_theme = "default"

# Theme options are theme-specific and customize the look and feel of a theme
# further. For a list of options available for each theme, see the
Expand Down Expand Up @@ -120,7 +120,7 @@
# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ['_static']
html_static_path = ["_static"]

# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
# using the given strftime format.
Expand Down Expand Up @@ -164,7 +164,7 @@
#html_file_suffix = None

# Output file base name for HTML help builder.
htmlhelp_basename = 'pygacdoc'
htmlhelp_basename = "pygacdoc"


# -- Options for LaTeX output --------------------------------------------------
Expand All @@ -178,8 +178,8 @@
# Grouping the document tree into LaTeX files. List of tuples
# (source start file, target name, title, author, documentclass [howto/manual]).
latex_documents = [
('index', 'pygac.tex', u'pygac Documentation',
u'Abhay Devasthale, Martin Raspaud and Adam Dybbroe', 'manual'),
("index", "pygac.tex", u"pygac Documentation",
u"Abhay Devasthale, Martin Raspaud and Adam Dybbroe", "manual"),
]

# The name of an image file (relative to this directory) to place at the top of
Expand Down Expand Up @@ -211,6 +211,6 @@
# One entry per manual page. List of tuples
# (source start file, name, description, authors, manual section).
man_pages = [
('index', 'pygac', u'pygac Documentation',
[u'Abhay Devasthale, Martin Raspaud and Adam Dybbroe'], 1)
("index", "pygac", u"pygac Documentation",
[u"Abhay Devasthale, Martin Raspaud and Adam Dybbroe"], 1)
]
2 changes: 1 addition & 1 deletion pygac/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@
# add a NullHandler to prevent messages in sys.stderr if the using application does
# not use logging, but pygac makes logging calls of severity WARNING and greater.
# See https://docs.python.org/3/howto/logging.html (Configuring Logging for a Library)
logging.getLogger('pygac').addHandler(logging.NullHandler())
logging.getLogger("pygac").addHandler(logging.NullHandler())
8 changes: 4 additions & 4 deletions pygac/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class FileNotFoundError(OSError):
class Configuration(configparser.ConfigParser, object):
"""Configuration container for pygac."""

config_file = ''
config_file = ""

def read(self, config_file):
"""Read and parse the configuration file
Expand All @@ -70,8 +70,8 @@ def read(self, config_file):
def get(self, *args, **kwargs):
"""python 2 compatibility for fallback attribute"""
if sys.version_info.major < 3:
if 'fallback' in kwargs:
fallback = kwargs.pop('fallback')
if "fallback" in kwargs:
fallback = kwargs.pop("fallback")
else:
fallback = None
try:
Expand Down Expand Up @@ -100,7 +100,7 @@ def get_config(initialized=True):
try:
config_file = os.environ["PYGAC_CONFIG_FILE"]
except KeyError:
LOG.error('Environment variable PYGAC_CONFIG_FILE not set!')
LOG.error("Environment variable PYGAC_CONFIG_FILE not set!")
raise
_config.read(config_file)
return _config
Expand Down
2 changes: 1 addition & 1 deletion pygac/correct_tsm_issue.py
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ def std_filter(data, box_size):
# need to surround the data with NaNs to calculate values at the boundary
padded_data = np.pad(
data, (border, border),
mode='constant',
mode="constant",
constant_values=np.nan
)
windows = _rolling_window(padded_data, size)
Expand Down
Loading

0 comments on commit bc9f8fc

Please sign in to comment.