Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
remote_tree_to_local_tars
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
Container Registry
Model registry
Operate
Environments
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
Gary Ruben
remote_tree_to_local_tars
Commits
4f3fa6ec
Commit
4f3fa6ec
authored
6 years ago
by
Gary Ruben
Browse files
Options
Downloads
Patches
Plain Diff
fixed file count logic
parent
56d4f677
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
asci_to_vault.py
+3
-3
3 additions, 3 deletions
asci_to_vault.py
md5_to_vault.py
+3
-3
3 additions, 3 deletions
md5_to_vault.py
with
6 additions
and
6 deletions
asci_to_vault.py
+
3
−
3
View file @
4f3fa6ec
...
...
@@ -54,7 +54,7 @@ from fabric import Connection
READ_PICKLE_FILE
=
False
EXPERIMENT_NAME
=
"
13660
b
"
EXPERIMENT_NAME
=
"
13660
a
"
PICKLE_FILENAME
=
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
"
tree_state.pickle
"
)
timestamp
=
time
.
strftime
(
"
%Y-%m-%d-%H%M%S
"
)
LOG_FILENAME
=
os
.
path
.
join
(
...
...
@@ -63,7 +63,7 @@ LOG_FILENAME = os.path.join(
)
REMOTE_LOGIN
=
"
gary.ruben@monash.edu@sftp1.synchrotron.org.au
"
SRC_PATH
=
f
"
/data/
{
EXPERIMENT_NAME
}
/asci/output
"
DEST_PATH
=
"
/home/grub0002/bapcxi/vault/IMBL_2018_Oct_McGillick
"
DEST_PATH
=
"
/home/grub0002/bapcxi/vault/IMBL_2018_Oct_McGillick
/output
"
@dataclass
...
...
@@ -116,7 +116,7 @@ def tar_and_send_directory(node):
# print(f'Connection failed on {node.src}')
# node.error = "Connection failure on initial file find"
# return
node
.
count
=
files
.
count
(
'
\n
'
)
node
.
count
=
len
(
files
.
splitlines
()
)
print
(
f
'
Node:
{
node
.
src
}
, file count:
{
node
.
count
}
'
)
if
node
.
count
==
0
:
...
...
This diff is collapsed.
Click to expand it.
md5_to_vault.py
+
3
−
3
View file @
4f3fa6ec
...
...
@@ -46,8 +46,8 @@ LOG_FILENAME = os.path.join(
f
"
md5-
{
EXPERIMENT_NAME
}
-
{
timestamp
}
.log
"
)
REMOTE_LOGIN
=
"
gary.ruben@monash.edu@sftp2.synchrotron.org.au
"
SRC_PATH
=
f
"
/data/
{
EXPERIMENT_NAME
}
/asci/
in
put
"
DEST_PATH
=
"
/home/grub0002/bapcxi/vault/IMBL_2018_Oct_McGillick
"
SRC_PATH
=
f
"
/data/
{
EXPERIMENT_NAME
}
/asci/
out
put
"
DEST_PATH
=
"
/home/grub0002/bapcxi/vault/IMBL_2018_Oct_McGillick
/output
"
@dataclass
...
...
@@ -95,7 +95,7 @@ def send_checksum(node):
echo
=
True
)
files
=
files
.
stdout
.
strip
()
node
.
count
=
files
.
count
(
'
\n
'
)
node
.
count
=
len
(
files
.
splitlines
()
)
print
(
f
'
Node:
{
node
.
src
}
, file count:
{
node
.
count
}
'
)
if
node
.
count
==
0
:
...
...
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