Refactor JSON serialization for distributions#1276
Refactor JSON serialization for distributions#1276ayushk687 wants to merge 2 commits intoNOAA-FIMS:devfrom
Conversation
Refactored duplicated JSON serialization logic for normal and log_normal distributions into a reusable helper function to reduce maintenance burden.
|
Thank you for contributing to FIMS and opening your first PR here! We are happy to have your contributions. Please ensure that the PR is made to the dev branch and let us know if you need any help! Also, we encourage you to introduce yourself to the community on the introduction thread in our Discussions. |
Refactored the JSON serialization logic to eliminate duplication for normal and log_normal distributions.
|
@ayushk687 thank you for opening this PR. Unfortunately, the PR needs to be made to dev and not to main. Can you please rebase your branch to the dev branch and I can change the PR to main on my end. Then I can review it properly. Thank you and please let me know if you need any guidance rebasing. |
|
I am planning on reviewing this tomorrow but I do not see the changes? There is one file that was added with information about the PR but I cannot see any changes to the code in the files. |
|
@kellijohnson-NOAA yaa,sure will soon change the pr with nessary changes |
|
@ayushk687 do you plan on revamping this PR? |
|
@kellijohnson-NOAA mam,have made changes in pr ,plese allow to draft propasal for projects |
|
@ayushk687 thank you for your interest in FIMS. I am going to close this Pull Request because it has been open for two weeks and I still haven't seen any progress on it. If you would like to continue to help with the FIMS project, which we welcome, I suggest that you work through a much smaller issue to show that you understand how git and GitHub work. We are happy to help with learning this but both this Pull Request and #1308 indicate to me that working through some GitHub tutorials before opening additional Pull Requests in open source repositories could be helpful. Thank you, Kelli |

🚀 refactor: remove duplication in distribution JSON serialization
closes #1260
📌 Summary
Refactors duplicated JSON serialization logic for
normalandlog_normaldistributions into a single reusable helper function.This reduces maintenance overhead and improves consistency while keeping behavior unchanged.
🧩 Problem
Both distributions implemented nearly identical JSON serialization logic, differing only in
"module_type".This duplication:
✅ Solution
build_density_json(...)"module_type"🔧 Implementation