-
- Downloads
Add ability to load data sources without providing a path
Previously, to load a JSON file with the data in a separate bp file, you had to specify the directory or path of the data file in the "paths" map provided to the `DataSetReader` read methods. This is a problem because it makes the file formant not self-descriptive. When loading data in an application like ParaView, you have to type in the directory to the bp file attached to a magic string defined somewhere in the JSON file. Every. Damn. Time. This change allows you to specify a relative path to the data source .bp file within the JSON file. If you do not specify a matching path, the reader will look for the .bp file relative to the JSON file. If you do provide a path, then that path is used. Thus, the old behavior is preserved.
Showing
- docs/dev/changelog/data-source-no-path.md 16 additions, 0 deletionsdocs/dev/changelog/data-source-no-path.md
- fides/Array.cxx 5 additions, 40 deletionsfides/Array.cxx
- fides/DataModel.cxx 1 addition, 8 deletionsfides/DataModel.cxx
- fides/DataSetReader.cxx 29 additions, 30 deletionsfides/DataSetReader.cxx
- fides/DataSetReader.h 9 additions, 3 deletionsfides/DataSetReader.h
- fides/DataSource.cxx 32 additions, 0 deletionsfides/DataSource.cxx
- fides/DataSource.h 18 additions, 0 deletionsfides/DataSource.h
- fides/Value.cxx 8 additions, 64 deletionsfides/Value.cxx
Loading