google / gin-config

Gin provides a lightweight configuration framework for Python
Apache License 2.0
2.02k stars 120 forks source link

how to use os module in gin file #200

Open 51057913 opened 2 months ago

51057913 commented 2 months ago

I want to use module to connect url.

inside data.gin

import os DataPatient="path1" Data_no_smooth= os.path.join("~/orgindata",os.path.basename(%DataPatient)) Data_smooth= os.path.join("~/smoothdata",os.path.basename(%DataPatient))

I doesn't work.I want to know how to use python method in gin file

51057913 commented 2 months ago

readdata_v3.inter_time=60%DataInter readdata_v3.pre_time=30%DataPre

60*%DataInter error