Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SVLT
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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
ALMF
SVLT
Commits
6cda6fdf
Commit
6cda6fdf
authored
3 months ago
by
Christopher Randolph Rhodes
Browse files
Options
Downloads
Patches
Plain Diff
Revert "Option to parse coordinates from filename"
This reverts commit
3332573d
.
parent
3332573d
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
model_server/clients/batch_runner.py
+1
-11
1 addition, 11 deletions
model_server/clients/batch_runner.py
with
1 addition
and
11 deletions
model_server/clients/batch_runner.py
+
1
−
11
View file @
6cda6fdf
from
collections
import
OrderedDict
import
json
from
pathlib
import
Path
import
re
import
shutil
import
pandas
as
pd
...
...
@@ -143,17 +142,11 @@ class FileBatchRunnerClient(HttpClient):
where_remote
=
Path
(
self
.
remote_paths
[
'
input
'
])
/
inp
[
'
directory
'
]
def
_get_file_info
(
filename
):
info
=
{
return
{
'
remote_path
'
:
(
where_remote
/
filename
).
as_posix
(),
'
local_path
'
:
where_local
/
filename
,
'
is_multiposition
'
:
is_multiposition
,
}
if
(
coord_regex
:
=
inp
.
get
(
'
coord_regex
'
))
is
not
None
:
for
coord_k
,
coord_v
in
re
.
search
(
coord_regex
,
filename
).
groupdict
().
items
():
if
coord_k
.
lower
()
not
in
[
'
well
'
,
'
position
'
,
'
time
'
]:
raise
InvalidStackCoordinateKeyError
(
f
'
Cannot interpret coordinate
{
coord_k
}
'
)
info
[
f
'
coord_
{
coord_k
.
lower
()
}
'
]
=
int
(
coord_v
)
return
info
paths
=
paths
+
[
_get_file_info
(
f
)
for
f
in
files
]
if
max_count
is
not
None
:
df
=
pd
.
DataFrame
(
paths
).
head
(
min
(
max_count
,
len
(
paths
)))
...
...
@@ -276,7 +269,4 @@ class WatchPathVerificationError(Error):
pass
class
TasksRemainingError
(
Error
):
pass
class
InvalidStackCoordinateKeyError
(
Error
):
pass
\ No newline at end of file
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