"## Data insertion and retrieval with Django models\n",
"# Data insertion and retrieval with Django models\n",
"\n",
"In the following we show some examples in order to perform insertions and retrievals of metadata "
]
...
...
@@ -30,9 +30,20 @@
"print(instrument.telescopeName)\n"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Creating new objects\n",
"\n",
"In the following we will create a NispRawFrame object. Since the NispRawFrame must have also a DataCotainer (i.e. a file to reference to), we first create a DataContainer instance.\n",
"\n",
"We can see also that the fields that we have defined as composite fields provide some synctactic sugar when we initialize them with simple dictionaries."
In the following we will create a NispRawFrame object. Since the NispRawFrame must have also a DataCotainer (i.e. a file to reference to), we first create a DataContainer instance.
We can see also that the fields that we have defined as composite fields provide some synctactic sugar when we initialize them with simple dictionaries.