Skip to content

Commit

Permalink
flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
nenasedk committed Dec 12, 2024
1 parent 9de33f3 commit dfa6f26
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ jobs:
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
run: |
pytest tests.py
pytest radiation_unit_conversion/tests.py
3 changes: 1 addition & 2 deletions radiation_unit_conversion/tests.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import unittest
import numpy as np
import astropy.units as u
import units as units

test_flux = np.linspace(1, 10, 10)
Expand Down Expand Up @@ -175,4 +174,4 @@ def test_flambda2fnu(self):


if __name__ == "__main__":
unittest.main()
unittest.main()
3 changes: 1 addition & 2 deletions radiation_unit_conversion/units.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
import astropy.units as u



def fnu2flambda(input_flux, input_wavelength, output_units):
"""
Converts flux from the f_nu (flux per unit frequency) form to the f_lambda
Expand Down Expand Up @@ -63,7 +62,7 @@ def fnu2flambda(input_flux, input_wavelength, output_units):

def flambda2fnu(input_flux, input_wavelength, output_units):
"""
Converts flux from the f_lambda (flux per unit wavelength) form to the f_nu
Converts flux from the f_lambda (flux per unit wavelength) form to the f_nu
(flux per unit frequency) form.
Parameters:
Expand Down

0 comments on commit dfa6f26

Please sign in to comment.