Add unit test for DilutePlanckianRadiationField (GSoC 2026 Eval)#3457
Add unit test for DilutePlanckianRadiationField (GSoC 2026 Eval)#3457PritamHazra2708 wants to merge 1 commit intotardis-sn:masterfrom
Conversation
|
*beep* *bop* Hi, human. I'm the @tardis-bot and couldn't find your records in my database. I think we don't know each other, or you changed your credentials recently. Please add your name and email to In case you need to map an existing alias, follow this example. |
|
*beep* *bop* Hi, human. I'm the @tardis-bot and I noticed that your email is not associated with an ORCID ID in our database. Please add your email and ORCID ID to the If you don't have an ORCID ID yet, you can create one for free at orcid.org. ORCID IDs help ensure you get proper credit for your scientific contributions. The format should be: |
|
*beep* *bop* Details1 F401 [*] unused-import
1 I001 [*] unsorted-imports
Found 2 errors.
[*] 2 fixable with the `--fix` option.
Complete output(might be large): Detailstardis/plasma/tests/test_dilute_planckian.py:1:1: I001 [*] Import block is un-sorted or un-formatted
tardis/plasma/tests/test_dilute_planckian.py:1:8: F401 [*] `pytest` imported but unused
Found 2 errors.
[*] 2 fixable with the `--fix` option.
|
|
This is not complete, you can move this to draft until then. Also can you mention the project and the idea. Also please follow the instructions, look carefully at the checklist |
📝 Description
Type: 🚦
testingThis PR adds a unit test for the
DilutePlanckianRadiationFieldclass as part of the GSoC 2026 Evaluation Task.Key Context & Implementation Details:
test_dilute_planckian_radiation_fieldintardis/plasma/tests/test_dilute_planckian.py.tardisbaserefactoring.u.Kfor temperature andu.Hzfor frequency) to ensure strict unit compliance..calculate_mean_intensity(nu=nu)method, passing the required frequency array instead of the older parameter-less.calculate()method.📌 Resources
🚦 Testing
How did you test these changes?
--generate-referenceflag along with--tardis-regression-datato ensure accurate regression matching without committing large data files to the repository.☑️ Checklist
build_docslabel