Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: OxWearables/biobankAccelerometerAnalysis
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v7.4.0
Choose a base ref
...
head repository: OxWearables/biobankAccelerometerAnalysis
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v7.5.0
Choose a head ref
  • 2 commits
  • 2 files changed
  • 1 contributor

Commits on Nov 9, 2025

  1. refactor: change default output folder to outputs/{filename}/

    - Change default --outputFolder from same directory as input file to 'outputs/'
    - Output files now organized in subdirectories: outputs/{inputFileName}/
    - Simplify code by setting default in argparse instead of conditional logic
    
    Changes to src/accelerometer/accProcess.py:
    - Set default='outputs' in parser.add_argument for --outputFolder
    - Remove conditional check for None, create subdirectory path directly
    - Maintain backward compatibility: users can still override with --outputFolder flag
    chanshing committed Nov 9, 2025
    Configuration menu
    Copy the full SHA
    32d1958 View commit details
    Browse the repository at this point in the history
  2. feat: add batch processing support for processing multiple files

    Add comprehensive batch processing functionality to process multiple
    accelerometer files from a folder in a single command.
    
    Changes to src/accelerometer/accProcess.py:
    - Add matchesExtension() to match file extensions with compression support
    - Add discoverFiles() to discover files by extension with recursive option
    - Add processSingleFile() extracted from main() for reusability
    - Add processBatch() to orchestrate batch processing with error handling
    - Add --fileExtensions argument (required for batch mode)
    - Add --recursive argument for subdirectory search
    - Refactor main() to detect and route file vs directory input
    - Implement try-finally cleanup to ensure intermediate files deleted on error
    - Catch SystemExit exceptions to prevent device.py sys.exit() from killing batch
    - Detect duplicate basenames and exit with error to prevent data loss
    - Exit with non-zero code when no files found or any files fail
    - Respect --verbose flag for detailed error reporting in batch mode
    - Remove unused atexit dependency (cleanup now in finally block)
    
    Changes to README.md:
    - Add batch processing usage section with examples
    - Update output paths to reflect new outputs/{filename}/ structure
    - Document --fileExtensions and --recursive options
    - Explain compression format auto-detection
    
    Key features:
    - Serial processing with per-file error isolation
    - Comprehensive batch summary with success/failure counts
    - Exit codes: 255 for no files/duplicates, 1 for any failures
    - Smart extension matching (case-insensitive, compression aware)
    - Duplicate basename detection prevents output overwrites
    - Backward compatible: single file mode unchanged
    chanshing committed Nov 9, 2025
    Configuration menu
    Copy the full SHA
    d91c004 View commit details
    Browse the repository at this point in the history
Loading