Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions hepdata/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,9 @@ def _(x):
'GAMBIT': {
'endpoint_url': 'https://gambitbsm.org/analyses.json',
},
'SimpleAnalysis': {
'endpoint_url': 'https://simpleanalysis.docs.cern.ch/analyses.json',
},
#'ufo': {},
#'xfitter': {},
#'applgrid': {},
Expand Down
9 changes: 9 additions & 0 deletions tests/records_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -1217,6 +1217,15 @@ def test_update_analyses(app):
assert len(analysis_resources) == 1
assert analysis_resources[0].file_location == 'https://github.com/GambitBSM/gambit_2.6/blob/release_2.6/ColliderBit/src/analyses/Analysis_ATLAS_13TeV_MONOJET_139infb.cpp'

# SimpleAnalysis
import_records(['ins1597123'], synchronous=True) # 1597123 is in SimpleAnalysis JSON but doesn't have code uploaded to HEPData
analysis_resources = DataResource.query.filter_by(file_type='SimpleAnalysis').all()
assert len(analysis_resources) == 2 # 1811596 and 1847779 have SimpleAnalysis file attached
update_analyses('SimpleAnalysis')
analysis_resources = DataResource.query.filter_by(file_type='SimpleAnalysis').all()
assert len(analysis_resources) == 5 # file attached: 1811596, 1847779; JSON file: 1811596, 1847779, 1597123
assert analysis_resources[4].file_location == 'https://gitlab.cern.ch/atlas-sa/simple-analysis/-/tree/master/SimpleAnalysisCodes/src/ANA-EXOT-2018-06.cxx' # 1847779

# Call update_analysis using an endpoint with no endpoint_url
current_app.config["ANALYSES_ENDPOINTS"]["TestAnalysis"] = {}
update_analyses('TestAnalysis')
Expand Down
Loading