Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows path issues #376

Open
woldmuyn opened this issue Apr 20, 2023 · 0 comments
Open

Windows path issues #376

woldmuyn opened this issue Apr 20, 2023 · 0 comments

Comments

@woldmuyn
Copy link
Contributor

woldmuyn commented Apr 20, 2023

Issue

  • Python version: Python 3.10.6
  • Operating System: Windows

Description

Path errors on Windows when executing woldmuyn_long_COVID.py
Due to code is executing from COVID19-Model folder

Fix

os.path.join(abs_dir,file_path)

  • utils.py line 387
residence_time_distributions = pd.read_excel(os.path.join(abs_dir,'../../../data/covid19_DTM/interim/model_parameters/hospitals/',age_path,'sciensano_hospital_parameters.xlsx'), sheet_name='residence_times', index_col=0, header=[0,1])
  • utils.py line 389
bootstrap_fractions = np.load(os.path.join(abs_dir,'../../../data/covid19_DTM/interim/model_parameters/hospitals/',age_path,'sciensano_bootstrap_fractions.npy'))
  • model_parameters.py line 368
base_samples_dict = load_samples_dict(os.path.join(abs_dir,samples_path,base_dict_name), age_stratification_size=age_stratification_size)

Comment

Probably more similar issues in code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant