Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
instance_segmentation_classic
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
Container 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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Maciej Wielgosz
instance_segmentation_classic
Commits
81f26173
Commit
81f26173
authored
1 year ago
by
Maciej Wielgosz
Browse files
Options
Downloads
Patches
Plain Diff
zipping the output for the oracle cloud
parent
6383b409
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
run_oracle_wrapper.py
+9
-4
9 additions, 4 deletions
run_oracle_wrapper.py
with
9 additions
and
4 deletions
run_oracle_wrapper.py
+
9
−
4
View file @
81f26173
...
@@ -26,14 +26,14 @@ def run_oracle_wrapper(path_to_config_file):
...
@@ -26,14 +26,14 @@ def run_oracle_wrapper(path_to_config_file):
client
=
ObjectStorageClient
(
config
)
client
=
ObjectStorageClient
(
config
)
# read system environment variables
# read system environment variables
#
input_location = os.environ['OBJ_INPUT_LOCATION']
input_location
=
os
.
environ
[
'
OBJ_INPUT_LOCATION
'
]
#
output_location = os.environ['OBJ_OUTPUT_LOCATION']
output_location
=
os
.
environ
[
'
OBJ_OUTPUT_LOCATION
'
]
# input_location = "oci://maciej-seg-test-in@axqlz2potslu/las_files"
# input_location = "oci://maciej-seg-test-in@axqlz2potslu/las_files"
# output_location = "oci://maciej-seg-test-out@axqlz2potslu"
# output_location = "oci://maciej-seg-test-out@axqlz2potslu"
input_location
=
"
oci://forestsens_temp@axqlz2potslu/acc_6/batch_274/original_las_files
"
#
input_location = "oci://forestsens_temp@axqlz2potslu/acc_6/batch_274/original_las_files"
output_location
=
"
oci://maciej-seg-test-out@axqlz2potslu
"
#
output_location = "oci://maciej-seg-test-out@axqlz2potslu"
# doing for the input
# doing for the input
...
@@ -129,6 +129,11 @@ def run_oracle_wrapper(path_to_config_file):
...
@@ -129,6 +129,11 @@ def run_oracle_wrapper(path_to_config_file):
else
:
else
:
path_to_the_output_folder
=
config_flow_params
[
'
general
'
][
'
output_folder
'
]
path_to_the_output_folder
=
config_flow_params
[
'
general
'
][
'
output_folder
'
]
# zip the files in path_to_the_output_folder
zip_file_name
=
'
results
'
shutil
.
make_archive
(
zip_file_name
,
'
zip
'
,
path_to_the_output_folder
)
# this will be done in the current folder
shutil
.
copy
(
'
results.zip
'
,
path_to_the_output_folder
)
# get list of files in the output folder
# get list of files in the output folder
list_of_files
=
os
.
listdir
(
path_to_the_output_folder
)
list_of_files
=
os
.
listdir
(
path_to_the_output_folder
)
...
...
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