Skip to content

Commit

Permalink
Merge pull request #266 from mwcraig/notebook-housekeeping
Browse files Browse the repository at this point in the history
Notebook housekeeping
  • Loading branch information
mwcraig authored Feb 2, 2024
2 parents a8f8b1c + 685d214 commit f6b40fa
Show file tree
Hide file tree
Showing 15 changed files with 492 additions and 1,775 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ repos:
# Per the ruff documentation, this should be before black
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.1.8
rev: v0.1.15
hooks:
# Run the linter.
- id: ruff
Expand All @@ -35,7 +35,7 @@ repos:

# Using this mirror lets us use mypyc-compiled black, which is about 2x faster
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 23.12.0
rev: 24.1.1
hooks:
- id: black
# It is recommended to specify the latest version of Python
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ include = [
[tool.black]
line-length = 88
target-version = ['py310', 'py311']
include = '\.pyi?$'
include = '\.pyi?$|\.ipynb$'
# 'extend-exclude' excludes files or directories in addition to the defaults
# extend-exclude = '''
# # A regex preceded with ^/ will apply only to files and directories
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,7 @@ def _raw_photometry_table():
expected_flux_error = (
fluxes
/ expected_comp_fluxes
* np.sqrt(
errors**2 / fluxes**2
+ comp_error_total**2 / expected_comp_fluxes**2
)
* np.sqrt(errors**2 / fluxes**2 + comp_error_total**2 / expected_comp_fluxes**2)
)

raw_table = Table(
Expand Down
247 changes: 0 additions & 247 deletions stellarphot/notebooks/comp-star-plots.ipynb

This file was deleted.

Loading

0 comments on commit f6b40fa

Please sign in to comment.