Build Database Schema Documentation#

When adding a new project, first add the project to the APDBWSICONST.WSI_DATABASES dictionary. This is dataclass holds information about the projects and is used for the AstroDB.wsi_dbs_metadata dictionary. The project must be on SciServer for the package to find it and must be added to this dictionary to initialize the AstroDB SQL mapping for the project.

Warning

Trying to load the project with that class without adding it to the aforementioned dictionary will throw an error.

Once the project has been added to the dictionary and is on SciServer, the following commands can be run to create the database schema tables used for the documentation. The source files for term and table definitions are in the “./docs/database_schema/defs/yml” folder. The code below will output columns without definitions in the “terms.yml” file.

[1]:
from astropathdb.shared._docs._build_database_schema import BuildDocsSchema
from astropathdb import AstroDB
_ = BuildDocsSchema(astrodb=AstroDB())
e:\bgreen\envs\pkg_dev_env\lib\site-packages\dask\dataframe\__init__.py:31: FutureWarning: The legacy Dask DataFrame implementation is deprecated and will be removed in a future version. Set the configuration option `dataframe.query-planning` to `True` or None to enable the new Dask Dataframe implementation and silence this warning.
  warnings.warn(
xposition for table annotationinfo not defined in terms
yposition for table annotationinfo not defined in terms
xmlfile for table annotationinfo not defined in terms
rdist2 for table cellpos not defined in terms
rdist2 for table celltag not defined in terms
rdist2 for table randomcell not defined in terms
xposition for table annotationinfo not defined in terms
yposition for table annotationinfo not defined in terms
xmlfile for table annotationinfo not defined in terms
slideid1 for table xform not defined in terms
sampleid1 for table xform not defined in terms
ppscale for table xform not defined in terms
a for table xform not defined in terms
b for table xform not defined in terms
e for table xform not defined in terms
c for table xform not defined in terms
d for table xform not defined in terms
f for table xform not defined in terms
dir for table xform not defined in terms
dx00 for table xwarp not defined in terms
dx10 for table xwarp not defined in terms
dx01 for table xwarp not defined in terms
dx11 for table xwarp not defined in terms
dy00 for table xwarp not defined in terms
dy10 for table xwarp not defined in terms
dy01 for table xwarp not defined in terms
dy11 for table xwarp not defined in terms
xposition for table annotationinfo not defined in terms
yposition for table annotationinfo not defined in terms
xmlfile for table annotationinfo not defined in terms
xposition for table annotationinfo not defined in terms
yposition for table annotationinfo not defined in terms
xmlfile for table annotationinfo not defined in terms
rdist2 for table cellpos not defined in terms
rdist2 for table celltag not defined in terms
rdist2 for table randomcell not defined in terms
xposition for table annotationinfo not defined in terms
yposition for table annotationinfo not defined in terms
xmlfile for table annotationinfo not defined in terms
ki67 for table cellall not defined in terms
ki67 for table celltag not defined in terms
xposition for table annotationinfo not defined in terms
yposition for table annotationinfo not defined in terms
xmlfile for table annotationinfo not defined in terms
xposition for table annotationinfo not defined in terms
yposition for table annotationinfo not defined in terms
xmlfile for table annotationinfo not defined in terms
xposition for table annotationinfo not defined in terms
yposition for table annotationinfo not defined in terms
xmlfile for table annotationinfo not defined in terms
rdist2 for table cellpos not defined in terms
rdist2 for table celltag not defined in terms
rdist2 for table randomcell not defined in terms
xposition for table annotationinfo not defined in terms
yposition for table annotationinfo not defined in terms
xmlfile for table annotationinfo not defined in terms
xposition for table annotationinfo not defined in terms
yposition for table annotationinfo not defined in terms
xmlfile for table annotationinfo not defined in terms
xposition for table annotationinfo not defined in terms
yposition for table annotationinfo not defined in terms
xmlfile for table annotationinfo not defined in terms
xposition for table annotationinfo not defined in terms
yposition for table annotationinfo not defined in terms
xmlfile for table annotationinfo not defined in terms
ccytomembrane690 for table celltag not defined in terms
xposition for table annotationinfo not defined in terms
yposition for table annotationinfo not defined in terms
xmlfile for table annotationinfo not defined in terms
xposition for table annotationinfo not defined in terms
yposition for table annotationinfo not defined in terms
xmlfile for table annotationinfo not defined in terms