Closed Oufattole closed 3 months ago
The changes introduce new configuration options for specifying a directory and filename for storing window statistics, enhancing output handling capabilities. The main function has been updated to include logic for creating directories and writing the result DataFrame to a Parquet file when specified paths are provided. Additionally, a new test function has been implemented to validate the command-line interface for processing medication data and ensure the correct functionality of output file generation.
File | Change Summary |
---|---|
src/aces/__main__.py |
Added conditional blocks to check for window_stats_filepath and window_stats_dir , writing result DataFrame to a specified Parquet file. |
src/aces/configs/aces.yaml |
Introduced window_stats_dir , window_stats_filename , and modified window_stats_filepath for configurable output file handling. |
tests/test_meds.py |
Added test_meds_window_storage function to validate CLI handling of medication data and output file generation. |
🐇 In the fields where data flows,
A new path for stats now grows.
With files that gleam in Parquet's light,
Our rabbit code hops to new heights.
Testing the meds with joy and cheer,
Output's clear, the vision's near! 🥕✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
This is meant to save the original structs for the contrastive learning use case mentioned earlier right?
Edit: oops sorry, I missed this at the top, yes it resolves #97.
Resolves issue #97
Summary by CodeRabbit
New Features
Tests