Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
J
jr
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jiří Kalvoda
jr
Compare revisions
54b5a503d6f01de5e115557706de35d7cba696a9 to 1b6402b7de521e19688f29e8faeac0b990a8981d
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
jirikalvoda/jr
Select target project
No results found
1b6402b7de521e19688f29e8faeac0b990a8981d
Select Git revision
Branches
master
1 result
Swap
Target
jirikalvoda/jr
Select target project
jirikalvoda/jr
1 result
54b5a503d6f01de5e115557706de35d7cba696a9
Select Git revision
Branches
master
1 result
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (2)
data_mover fix user on hluk
· b6cbcb88
Jiří Kalvoda
authored
8 months ago
b6cbcb88
Add assert on zero length trip
· 1b6402b7
Jiří Kalvoda
authored
8 months ago
1b6402b7
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
prog/data_mover.py
+1
-1
1 addition, 1 deletion
prog/data_mover.py
prog/data_utils.py
+2
-0
2 additions, 0 deletions
prog/data_utils.py
with
3 additions
and
1 deletion
prog/data_mover.py
View file @
1b6402b7
...
...
@@ -10,7 +10,7 @@ import admin_server
import
data_utils
async
def
main
():
s
=
await
communication
.
SSHRunSocket
().
connect
(
'
ssh j
iri
@hluk.fnuk.eu /mnt/jr/prog/run_py admin_server.py
'
)
s
=
await
communication
.
SSHRunSocket
().
connect
(
'
ssh j
r
@hluk.fnuk.eu /mnt/jr/prog/run_py admin_server.py
'
)
c
=
admin_server
.
AdminServer
(
s
)
for
dt
in
await
c
.
list_realtime_data
(
datetime
.
datetime
(
2023
,
1
,
1
,
0
,
0
),
datetime
.
datetime
(
2100
,
1
,
1
,
0
,
0
)):
path
=
"
data/realtime/
"
+
dt_to_path
(
dt
)
...
...
This diff is collapsed.
Click to expand it.
prog/data_utils.py
View file @
1b6402b7
...
...
@@ -110,6 +110,8 @@ class TripHistory:
async
def
load_gtfs_shape
(
self
):
self
.
gtfs_shape
=
await
gtfs
.
for_date
(
self
.
trip
.
date
).
get_shape_for_trip_id
(
self
.
trip
.
trip_id
)
if
self
.
gtfs_shape
is
not
None
:
assert
len
(
self
.
gtfs_shape
),
f
"
Zero len shape for
{
self
.
trip
.
date
}
{
self
.
trip
.
trip_id
}
"
async
def
load_history
(
self
,
dt_from
,
dt_to
):
...
...
This diff is collapsed.
Click to expand it.