Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
nomad-lab
nomad-FAIR
Commits
086255b7
Commit
086255b7
authored
Aug 08, 2019
by
Markus Scheidgen
Browse files
Minor linting.
parent
2965e2aa
Changes
2
Hide whitespace changes
Inline
Side-by-side
nomad/cli/client/mirror.py
View file @
086255b7
...
...
@@ -18,6 +18,7 @@ import shutil
import
json
import
os
import
os.path
from
bravado.exception
import
HTTPBadRequest
from
nomad
import
utils
,
processing
as
proc
,
search
,
config
,
files
,
infrastructure
...
...
@@ -123,7 +124,7 @@ def mirror(
continue
except
KeyError
:
pass
try
:
upload_data
=
client
.
mirror
.
get_upload_mirror
(
upload_id
=
upload_id
).
response
().
result
n_calcs
=
len
(
upload_data
.
calcs
)
...
...
ops/scripts/misc.http
View file @
086255b7
...
...
@@ -68,17 +68,24 @@ content-type: application/json
###
# Search migration unpublished calcs
GET http://localhost:19200/fairdi_nomad_
migration
/_search HTTP/1.1
GET http://localhost:19200/fairdi_nomad_
prod
/_search HTTP/1.1
Content-Type: application/json
{
"size": 0,
"query": {
"bool": {
"must_not": {
"exists": {
"field": "upload_time"
}
}
}
},
"aggs": {
"timeline": {
"date_histogram" : {
"field" : "upload_time",
"interval": "1M",
"format" : "yyyy-MM-dd"
"upload_id": {
"terms": {
"field": "upload_id"
}
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment