Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
NIRS_Workflow
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CEFE
PACE
NIRS_Workflow
Commits
04ee857c
Commit
04ee857c
authored
6 months ago
by
DIANE
Browse files
Options
Downloads
Patches
Plain Diff
pushing modifications
parent
a9eda16e
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/pages/2-model_creation.py
+1
-31
1 addition, 31 deletions
src/pages/2-model_creation.py
with
1 addition
and
31 deletions
src/pages/2-model_creation.py
+
1
−
31
View file @
04ee857c
...
...
@@ -144,7 +144,7 @@ match file:
spectra
=
pd
.
DataFrame
else
:
st
.
error
(
'
Error: The data has not been loaded successfully, please consider tuning the dialect settings
!
'
)
st
.
error
(
'
Error: The data has not been loaded successfully, please consider tuning the dialect settings!
'
)
# Load .dx file
case
'
dx
'
:
...
...
@@ -564,33 +564,3 @@ if Reg:
################################################### BEGIN : Download results ####################################################
date_time
=
datetime
.
datetime
.
now
().
strftime
(
'
_%y_%m_%d_%H_%M_
'
)
# 1-
# 2-
# 3-
# 4-
#5-
if
Reg
:
@st.cache_data
def
download_res
(
file
,
sam
):
zipname
=
f
'
results
{
date_time
}
subset_selection_
{
file
.
name
.
split
(
'
.
'
)[
0
]
}
.zip
'
# name of the zipfile
with
open
(
'
./temp/fname.json
'
,
'
w
'
)
as
f
:
# dump filename and save it as a .json file
json
.
dump
(
zipname
,
f
)
shutil
.
make_archive
(
base_name
=
zipname
.
split
(
'
.
'
)[
0
],
format
=
"
zip
"
,
root_dir
=
"
./Report
"
,
base_dir
=
"
figures
"
)
# create zip containing figures and report
st
.
subheader
(
'
Download the Analysis Results
'
)
# st.download_button('Download', data = fp, file_name = zipname, mime ="application/zip",
# args = None, kwargs = None,type = "primary",use_container_width = True)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment