pritamd47/alphameltsData

Change in the way Data Is Stored

Closed this issue · 2 comments

As of now, Data is stored in this format:

output/
--dataForAnyPTcondition/
----Plots/
----Tables/
----Bulk_comp_tbl.csv
----Phase_main_tbl.csv
----System_main_tbl.csv

New format proposed:
output/
--dataForAnyPTcondition/
----Plots/
----Tables/
----phases.csv
----Phases_main.csv
----Bulk_comp.csv
----System_main.csv
----[data for every phase].csv

phases.csv will contain data about the available phases


  • To do this, beautifyData.py must be changed so that it creates new files for every phase
  • It must also be kept in mind that the output of the alphaMELTS software might be different than what is expected (two types of representation of phases_main_tbl.txt), and beautifyData must be able to work in both the situations.
  • Since the phases_main_tbl.txt cannot be trusted for single data structure, Phases_main.csv must be populated with data from other tables. It will contain all the data, including the bulk composition, solid composition, excluding the System Thermodynamic Data, which majorly should be a seperate file.

After Commit 0375764, beautifyData.py is more robust, since it can read both the formats in which phase_main_tbl.txt can be stored.

Now, only one easy fix remains, that is to store the database for each phase separately. This will be relatively easy.

Added Commit 2c7e22b,

New Feature: User can now choose if every phase is saved as a separate CSV file or not.