Skip to content

Python Data Fetching #103

@davidthomas5412

Description

@davidthomas5412

Problem:

  1. Fetch.csh requires C shell
  2. Have to fetch data for demos 'by hand'
  3. Have long paths, and very wide lines in editor, throughout the codebase, ex:

S = pangloss.Shearmap([PANGLOSS_DIR+'/data/GGL_los_8_0_0_N_4096_ang_4_rays_to_plane_37_f.gamma_1',PANGLOSS_DIR+'/data/GGL_los_8_0_0_N_4096_ang_4_rays_to_plane_37_f.gamma_2'],FITS=False)

Proposed Solution:
Write static python class that has methods that can (i) check whether files have been downloaded, (ii) downloads them, and (iii) has static variable for all the files. This will lead to a better user experience and only requires that the user has python.

Metadata

Metadata

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions