Conversation
Add placeholder unit test for likelihood module
- Reformat long function calls and asset specs for clarity - Use consistent string quoting and indentation - Move assert error messages to multi-line format for readability - Add properties to SingleEventLikelihood for duration and detector names - Refactor likelihood classes for modularity and clarity
Add abstract _likelihood method to SingleEventLikelihood and refactor subclasses to implement core likelihood logic in _likelihood. Move parameter updates and fixed values to evaluate methods for clarity.
Expand unit tests for likelihood classes and add fixtures
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
| ) -> None: | ||
| ): | ||
|
|
||
| super().__init__(detectors, waveform, f_min, f_max, trigger_time) |
There was a problem hiding this comment.
The changes introduced a bug in this line. In line 93, f_min is treated as fixed_parameters and can be initialised without raising any errors. As a result, fixed_parameters ends up storing a float instead of a dict, again without triggering an error. This issue is partially addressed in #238, but further validation of fixed_parameters may still be necessary.
|
I also got an error at jim/src/jimgw/core/single_event/likelihood.py Line 602 in e6ae3d6 |
Found the problem. The fix is in #222. |
Fix HeterodynedTransientLikelihoodFD initialization
The following summary is generated by copilot
This pull request includes updates to improve code readability, maintainability, and consistency across multiple files. Key changes involve renaming a likelihood class, reformatting function calls and asset specifications for better clarity, and updating string formatting and list definitions for consistency.
Code Refactoring and Renaming:
TransientLikelihoodFDwithBaseTransientLikelihoodFDinexample/workbench.pyto align with updated naming conventions. ([[1]](https://github.com/kazewong/jim/pull/237/files#diff-dc32177a64e15860f96ba609e348511deb720d6890f1facac23d9e15f529fa80L18-R18),[[2]](https://github.com/kazewong/jim/pull/237/files#diff-dc32177a64e15860f96ba609e348511deb720d6890f1facac23d9e15f529fa80L210-L216))Reformatting for Readability:
jim_dagster/InjectionRecovery/assets.pyto improve readability and align with PEP 8 guidelines. ([[1]](https://github.com/kazewong/jim/pull/237/files#diff-e28e009932d0c7d50250726a4ad0e3202111303bac58ad22fd591f4c6eb07dbeR82-R92),[[2]](https://github.com/kazewong/jim/pull/237/files#diff-e28e009932d0c7d50250726a4ad0e3202111303bac58ad22fd591f4c6eb07dbeR135-R181),[[3]](https://github.com/kazewong/jim/pull/237/files#diff-e28e009932d0c7d50250726a4ad0e3202111303bac58ad22fd591f4c6eb07dbeR192-R326))String Formatting Consistency:
jim_dagster/RealDataCatalog/assets.pyfor consistent string formatting. ([[1]](https://github.com/kazewong/jim/pull/237/files#diff-4dd60e2a0bf43ee079f8d8445ce651bcc75dc2427252fb2a9b524bbfef75e88bR15-R29),[[2]](https://github.com/kazewong/jim/pull/237/files#diff-4dd60e2a0bf43ee079f8d8445ce651bcc75dc2427252fb2a9b524bbfef75e88bL104-R108))List and Code Block Formatting:
jim_dagster/RealDataCatalog/assets.py. ([jim_dagster/RealDataCatalog/assets.pyL297-R350](https://github.com/kazewong/jim/pull/237/files#diff-4dd60e2a0bf43ee079f8d8445ce651bcc75dc2427252fb2a9b524bbfef75e88bL297-R350))[jim_dagster/RealDataCatalog/assets.pyL175-R183](https://github.com/kazewong/jim/pull/237/files#diff-4dd60e2a0bf43ee079f8d8445ce651bcc75dc2427252fb2a9b524bbfef75e88bL175-R183))Minor Adjustments:
[[1]](https://github.com/kazewong/jim/pull/237/files#diff-e28e009932d0c7d50250726a4ad0e3202111303bac58ad22fd591f4c6eb07dbeR22),[[2]](https://github.com/kazewong/jim/pull/237/files#diff-4dd60e2a0bf43ee079f8d8445ce651bcc75dc2427252fb2a9b524bbfef75e88bR97))