Skip to content

Commit

Permalink
Merge pull request #638 from arunavabasu-03/naming#636
Browse files Browse the repository at this point in the history
fixed naming
  • Loading branch information
suzil authored Aug 23, 2022
2 parents 2b754ff + e01e46c commit d01263f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion frontend/src/components/CalcSpectrum.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,9 @@ export const CalcSpectrum: React.FC = () => {
data.mode = "transmittance";
}
}

const molecules = data.species.map(({ molecule }) => molecule).join("_");

setDownloadButton(true);
setLoading(true);
setError(undefined);
Expand Down Expand Up @@ -201,7 +204,7 @@ export const CalcSpectrum: React.FC = () => {
link.href = url;
link.setAttribute(
"download",
`${data.mode}_${data.min_wavenumber_range}_${data.max_wavenumber_range}.spec`
`${data.database}_${molecules}_${data.min_wavenumber_range}_${data.max_wavenumber_range}cm-1_${data.tgas}K_${data.pressure}atm.spec`
);
document.body.appendChild(link);
link.click();
Expand Down

0 comments on commit d01263f

Please sign in to comment.