Skip to content

refactoring

refactoring #7

Re-run triggered April 30, 2024 20:01
Status Success
Total duration 21s
Artifacts

lint.yml

on: pull_request
Run linters
10s
Run linters
Fit to window
Zoom out
Zoom in

Annotations

2 errors and 1 warning
/home/runner/work/amuse-fresco/amuse-fresco/src/amuse/plot/fresco/filters.py#L123
lambda x: B_lambda(x, T), ).in_(units.W / units.m**2) print(fb) print( - (fb * (1.0 | units.RSun) ** 2 / (1.0 | units.AU) ** 2).in_( - units.W / units.m**2 - ) + (fb * (1.0 | units.RSun) ** 2 / (1.0 | units.AU) ** 2).in_(units.W / units.m**2) ) print( ( energy_flux2(5778.0 | units.K) * (1.0 | units.RSun) ** 2
/home/runner/work/amuse-fresco/amuse-fresco/src/amuse/plot/fresco/fresco.py#L52
def calculate_effective_temperature(luminosity, radius): temp = ( np.nan_to_num( ( - (luminosity / (constants.four_pi_stefan_boltzmann * radius**2)) - ** 0.25 + (luminosity / (constants.four_pi_stefan_boltzmann * radius**2)) ** 0.25 ).value_in(units.K) ) | units.K ) return temp
Run linters
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/setup-python@v4, wearerequired/lint-action@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.