Skip to content

Commit

Permalink
another round of lynting
Browse files Browse the repository at this point in the history
  • Loading branch information
scfleming committed Jan 16, 2025
1 parent c008d9a commit 00c0f72
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 17 deletions.
10 changes: 5 additions & 5 deletions astronify/simulator/sim_lc.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def simulated_lc(
sine_period=SimLcConfig.sim_lc_sine_period,
flare_time=SimLcConfig.sim_lc_flare_time,
flare_amp=SimLcConfig.sim_lc_flare_amp,
flare_halfwidth=SimLcConfig.sim_lc_flare_halfwidth
flare_halfwidth=SimLcConfig.sim_lc_flare_halfwidth,
):
"""
Create light curve with specified parameters as a `~astropy.table.Table`,
Expand Down Expand Up @@ -143,16 +143,16 @@ def simulated_lc(
hdr.append(("LCLENGTH", lc_length, "Number of fluxes."))
hdr.append(("LCYOFF", lc_yoffset, "Baseline flux value (unitless)."))
hdr.append(
"LCNOISE", lc_noise, "Std. dev. of normal dist. used to apply noise.",
("LCNOISE", lc_noise, "Std. dev. of normal dist. used to apply noise.")
)
# Record the flare parameters used if adding a flare.
if lc_type == "flare":
hdr.append(
"FLARETIM", flare_time, "Index corresponding to the peak of the flare.",
("FLARETIM", flare_time, "Index corresponding to the peak of the flare.")
)
hdr.append(("FLAREAMP", flare_amp, "Amplitude of the flare."))
hdr.append(
"FLAREWID", flare_halfwidth, "Flare half-width (number of indices).",
("FLAREWID", flare_halfwidth, "Flare half-width (number of indices).")
)
# Record the sinusoidal parameters if adding a sinusoid.
if lc_type == "sine":
Expand Down Expand Up @@ -205,5 +205,5 @@ def simulated_lc(
INPUT_ARGS.sine_period,
INPUT_ARGS.flare_time,
INPUT_ARGS.flare_amp,
INPUT_ARGS.flare_halfwidth
INPUT_ARGS.flare_halfwidth,
)
2 changes: 1 addition & 1 deletion astronify/utils/pitch_mapping.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def data_to_pitch(
pitch_range=[100, 10000],
center_pitch=440,
zero_point="median",
stretch='linear',
stretch="linear",
minmax_percent=None,
minmax_value=None,
invert=False,
Expand Down
21 changes: 12 additions & 9 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
from sphinx_astropy.conf.v1 import * # noqa
except ImportError:
print(
'ERROR: the documentation requires the sphinx-astropy package to be installed'
"ERROR: the documentation requires the sphinx-astropy package to be installed"
)
sys.exit(1)

Expand Down Expand Up @@ -110,14 +110,15 @@
# name of a builtin theme or the name of a custom theme in html_theme_path.
html_theme = "sphinx_rtd_theme"


def setup_style(app):
app.add_stylesheet("astronify.css")

master_doc="contents"
html_extra_path=["index.html", "CreateWithLight.html"]
master_doc = "contents"
html_extra_path = ["index.html", "CreateWithLight.html"]

# Custom sidebar templates, maps document names to template names.
html_sidebars = { "**": ["globaltoc.html", "localtoc.html", "searchbox.html"] }
html_sidebars = {"**": ["globaltoc.html", "localtoc.html", "searchbox.html"]}

# The name of an image file (relative to this directory) to place at the top
# of the sidebar.
Expand All @@ -130,7 +131,7 @@ def setup_style(app):

# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
# using the given strftime format.
#html_last_updated_fmt = ''
# html_last_updated_fmt = ''

# The name for this set of Sphinx documents. If None, it defaults to
# "<project> v<release> documentation".
Expand All @@ -150,16 +151,18 @@ def setup_style(app):

# Grouping the document tree into LaTeX files. List of tuples
# (source start file, target name, title, author, documentclass [howto/manual]).
latex_documents = [("index", project + ".tex", project + u" Documentation",
author, "manual")]
latex_documents = [
("index", project + ".tex", project + u" Documentation", author, "manual")
]


# -- Options for manual page output -------------------------------------------

# One entry per manual page. List of tuples
# (source start file, name, description, authors, manual section).
man_pages = [("index", project.lower(), project + u" Documentation",
[author], 1)]
man_pages = [
("index", project.lower(), project + u" Documentation", [author], 1)
]


# -- Options for the edit_on_github extension ---------------------------------
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@

setup(
use_scm_version={
'write_to': os.path.join('astronify', 'version.py'),
'write_to_template': VERSION_TEMPLATE
"write_to": os.path.join("astronify", "version.py"),
"write_to_template": VERSION_TEMPLATE
}
)

0 comments on commit 00c0f72

Please sign in to comment.