ComputationalThermodynamics / MAGEMinApp.jl

Graphical User Interface for MAGEMin, which runs in your web-browser.
GNU General Public License v3.0
9 stars 3 forks source link

Custom Bulk Compositions Not Loading #34

Open EricWrd1 opened 1 week ago

EricWrd1 commented 1 week ago

Hi Team,

Great package! I have been encountering an issue with loading up my custom bulk rock compositions. The .dat files are in the right format and the message appears that the compositions have been able to load successfully but then they kind of just disappear? After they load successfully, I have no way of knowing where they are and they don't appear in the dropdown so I don't know how to select them. Would appreciate your help on this.

Screenshot 2024-10-04 154347 Screenshot 2024-10-04 154514

Cheers!

NicolasRiel commented 1 week ago

Hi,

If the file was successfully loaded, it means the bulk rock compositions were loaded. If you don't see them it means that either you need to scroll down the dropdown menu (I see on your screenshot that there is at least one more entry) or they belong to another database.

If you look at the screenshot below, you can see that the bulks are linked to a database "ig", "mb" etc. ig stands for igneous, mb metabasite, mp metapelite, um, ultramafic, ume ultramafic extended. The bulk can only be accessed when the right database is selected in the top left panel from the screenshot you linked.

Screenshot from 2024-10-04 08-57-03

Hope this helps!

EricWrd1 commented 1 week ago

Hi Nicolas,

Thanks for your response. Unfortunately that hasn't worked. Despite which database I select, my custom composition does not appear despite the successful message showing. Here is my .dat file, I believe it is correct but I would love a double check if possible. Would there be any other reason it is not working? Alternatively, can I manually alter the mol_fractions after selecting one of the default options?

Dat_File

And should the custom bulk rock composition appear as the name it is given in the title section of the dat file?

Cheers!

NicolasRiel commented 1 week ago

Ah I think this is because you forgot the header. Your file should be:

title; comments; db; sysUnit; oxide; frac; frac2 Test 2;Moo et al., 2000;ig;mol;[SiO2, Al2O3, CaO, MgO, FeO, K2O, Na2O, TiO2, O, Cr2O3, H2O];[48.97, 11.76, 13.87, 4.21, 8.97, 1.66, 10.66, 1.36, 1.66, 0.01, 5.0];

The first line "title; comments; db; sysUnit; oxide; frac; frac2" is important as it tells the read function which entry is what!

I will modify the app to account for such case!

Nico

EricWrd1 commented 1 week ago

Thanks Nicolas, that has done the trick!

I misunderstood the document and thought we just had to do it in that format rather than also including it in the file itself, thanks heaps!

NicolasRiel commented 1 week ago

My bad, this is indeed confusing. I will improve that,

Thanks for letting me know it works now!