Comments (1)
As of writing, without any changes, also thanks to django REST framework, the supported creation methods are the following:
Programmatically
Within Django
from challenge.models import Task
from data_taking_objects.models import Run, Lumisection
r = Runs.objects.all()
t = Task.objects.create(metadata="")
t.training_runs.set(r)
t.save()
Similarly for any of the other m2m fields of course (training_lumisections
, testing_lumisections
, testing_runs
)
Externally
import requests
r = requests.post(
"https://ml4dqm-playground.web.cern.ch/api/tasks/",
headers={"Content-Type": "application/json", "Authorization": "Token <token>"},
json={"training_runs": [1, 2, 3, 4, 5], "metadata": ""},
)
Via curl
curl -X POST -k -H 'Authorization: Token <token here>' -H 'Content-Type: application/json' -i 'https://ml4dqm-playground.web.cern.ch/api/tasks/' --data '{"metadata":"","training_runs":[1,2,4,5,6]}'
from mlplayground.
Related Issues (20)
- Fix Bootstrap `data` attributes to match Bootstrap 5.0 naming conventions
- [Data Taking Objects] Add API endpoints for Runs and Lumisections
- Add minimal plots HOT 2
- Provide Foreign Key value instead of id when using API HOT 1
- Re-assign bottom navbar for external data sources
- Add frontend for triggering kedro pipelines with Task(s) as parameters
- [API] Filtering Lumisections by `run` uses the Run's DB id instead of the actual run number
- Add API to certification
- Add CERN login for users
- [Histograms] `Lumisection1DHistogram` parsing does not calculate percentage complete properly
- [Histograms] Refactor data file parsing code
- Use the `Dockerfile` to upload a docker image (to Dockerhub?) to be used in the github workflow
- [Histogram File Manager] Allow multiple paths to be configured for looking for DQMIO files
- Unknown users can sign up for a new account via "Login with CERN" button HOT 3
- Histogram visualizer breaks when histogram does not have x_min and x_max information
- Expose functionality to initiate discovery of DQMIO files
- Histogram manager breaks when histogram name filter contains a forwardslash `/` HOT 1
- Users can access histogram lists without logging in HOT 1
- Add action-tracking information for Discovery/Parsing
- Redesign parsing of lumisection histograms HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mlplayground.