Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
chimet-scraper
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
SERG
chimet-scraper
Commits
d4d81ab3
Commit
d4d81ab3
authored
6 years ago
by
Alois Klink
Browse files
Options
Downloads
Patches
Plain Diff
Improve progress bar printing
Fixes typos and new line bugs
parent
4d38c5bf
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
chimet-scraper.py
+2
-2
2 additions, 2 deletions
chimet-scraper.py
with
2 additions
and
2 deletions
chimet-scraper.py
+
2
−
2
View file @
d4d81ab3
...
@@ -260,7 +260,7 @@ def make_csv(location: Locations,
...
@@ -260,7 +260,7 @@ def make_csv(location: Locations,
output_loc
=
output_dir
/
output_filename
output_loc
=
output_dir
/
output_filename
combine_csvs
(
file_name_list
,
output_loc
)
combine_csvs
(
file_name_list
,
output_loc
)
print
(
f
"
Made a CSV of
{
location
}
from date
"
tqdm
.
tqdm
.
write
(
f
"
Made a CSV of
{
location
}
from date
"
f
"
{
from_time
.
date
()
}
to
{
to_time
.
date
()
}
at
{
output_loc
}
"
)
f
"
{
from_time
.
date
()
}
to
{
to_time
.
date
()
}
at
{
output_loc
}
"
)
def
download_all
():
def
download_all
():
...
@@ -281,7 +281,7 @@ def main(args):
...
@@ -281,7 +281,7 @@ def main(args):
pbar
=
tqdm
.
tqdm
(
Locations
,
desc
=
(
"
Iterating over
"
pbar
=
tqdm
.
tqdm
(
Locations
,
desc
=
(
"
Iterating over
"
f
"
{
[
x
.
value
for
x
in
Locations
]
}
"
))
f
"
{
[
x
.
value
for
x
in
Locations
]
}
"
))
for
loc
in
pbar
:
for
loc
in
pbar
:
pbar
.
set_description
(
f
"
Do
n
wloading
{
loc
.
value
}
data.
"
)
pbar
.
set_description
(
f
"
Dow
n
loading
{
loc
.
value
}
data.
"
)
make_csv
(
loc
,
**
kwargs
)
make_csv
(
loc
,
**
kwargs
)
if
__name__
==
"
__main__
"
:
if
__name__
==
"
__main__
"
:
...
...
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