Skip to content

Obtain --matlab-dir automatically #13

@tashrifbillah

Description

@tashrifbillah
  • Omit --matlab-dir since it is located inside Python script directory
  • Use os.path.abspath(os.path.dirname(__file__)) inside each Python script to obtain the --matlab-dir

(scroll to far right)

dplocate/dplocate0-read/parse_gps_mc.py            --phoenix-dir dplocate-phoenix --study BWH --consent-dir dplocate-phoenix/GENERAL/ --matlab-dir dplocate/dplocate0-read/ &&
dplocate/dplocate1-preprocess/preprocess_gps_mc.py --phoenix-dir dplocate-phoenix --study BWH --consent-dir dplocate-phoenix/GENERAL/ --matlab-dir dplocate/dplocate1-preprocess/ &&
dplocate/dplocate2-process/process_gps_mc.py       --phoenix-dir dplocate-phoenix --study BWH --consent-dir dplocate-phoenix/GENERAL/ --matlab-dir dplocate/dplocate2-process/ &&
dplocate/dplocate3-aggregate/aggregate_gps_mc.py   --phoenix-dir dplocate-phoenix --study BWH --consent-dir dplocate-phoenix/GENERAL/ --matlab-dir dplocate/dplocate3-aggregate/ &&
dplocate/dplocate4-plot/phone_gps_mc.py            --phoenix-dir dplocate-phoenix --study BWH --consent-dir dplocate-phoenix/GENERAL/ --matlab-dir dplocate/dplocate4-plot/

Hi @hre80 , what do you think?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions