larray-project / larray

N-dimensional labelled arrays in Python
https://larray.readthedocs.io/
GNU General Public License v3.0
8 stars 6 forks source link

update tutorial using get_example_filepath #1040

Closed gdementen closed 1 year ago

gdementen commented 1 year ago

It now returns a Path object so this code is not valid anymore:

csv_dir = get_example_filepath('examples')
population = read_csv(csv_dir + '/population.csv')

and should be changed to:

csv_dir = get_example_filepath('examples')
population = read_csv(csv_dir / 'population.csv')

There might be some other usage outside of the tutorial.

gdementen commented 1 year ago

done in #1047 (867528c486a34039e7bdc59461330ba666ef32fa)