Skip to content

Commit

Permalink
Correcting file path for the catalog when adding a new object (alan-t…
Browse files Browse the repository at this point in the history
…uring-institute#653)

* Correcting file path for the catalog when adding a new object. It was missing 'src'

* Updating other places where the file path was incorrecting, i.e. missing 'src'
  • Loading branch information
IFenton authored Nov 3, 2023
1 parent c59a378 commit 443c755
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions docs/contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ Once your model submission is accepted, it will become available to other users

This section describes how to add a catalog entry by hand. These steps are an alternative to using the form above.

Fork the [scivision repository](https://github.com/alan-turing-institute/scivision) and on your new branch, add metadata for your computer vision model to the end of `models.json` found in (`scivision/scivision/catalog/data/`), with the following format, under `"entries"`.
Fork the [scivision repository](https://github.com/alan-turing-institute/scivision) and on your new branch, add metadata for your computer vision model to the end of `models.json` found in (`scivision/src/scivision/catalog/data/`), with the following format, under `"entries"`.

```
{
Expand Down Expand Up @@ -132,7 +132,7 @@ This section describes how to add a catalog entry by hand. These steps are an a

On a new branch of the scivision repository, add your dataset to the end of `datasources.json`, with the following format, incrementing the data number by from the most recent entry. After you are done, create a pull request with the changes.

Fork the [scivision repository](https://github.com/alan-turing-institute/scivision) and on your new branch, add your dataset to the end of `datasources.json` (found in `scivision/scivision/catalog/data/`), with the following format, under `"entries"`.
Fork the [scivision repository](https://github.com/alan-turing-institute/scivision) and on your new branch, add your dataset to the end of `datasources.json` (found in `scivision/src/scivision/catalog/data/`), with the following format, under `"entries"`.

```
{
Expand Down
2 changes: 1 addition & 1 deletion docs/data_repository_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ When viewing the dataset in [sci.vision](https://sci.vision/#/datasource-grid) a
- It must be a 256x256 PNG or JPEG file
- The file name should be the name of the dataset as in the catalog

Once you have identified a suitable thumbnail please upload it to the [thumbnail datasources folder](https://github.com/alan-turing-institute/scivision/tree/main/scivision/catalog/data/thumbnails/datasources).
Once you have identified a suitable thumbnail please upload it to the [thumbnail datasources folder](https://github.com/alan-turing-institute/scivision/tree/main/src/scivision/catalog/data/thumbnails/datasources).

Once you have identified a suitable thumbnail, follow the :ref:`how-to-contribute` guide to open a pull request to the Scivision GitHub repo which adds the thumbnail image in the `scivision/catalog/data/thumbnails/datasources` folder.

Expand Down
4 changes: 2 additions & 2 deletions docs/model_repository_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,9 @@ When viewing the model in [sci.vision](https://sci.vision/#/model-grid) a model
- It must be a 256x256 PNG or JPEG file
- The file name should be the name of the model as in the catalog

Once you have identified a suitable thumbnail please upload it to the [thumbnail models folder](https://github.com/alan-turing-institute/scivision/tree/main/scivision/catalog/data/thumbnails/models).
Once you have identified a suitable thumbnail please upload it to the [thumbnail models folder](https://github.com/alan-turing-institute/scivision/tree/main/src/scivision/catalog/data/thumbnails/models).

Once you have identified a suitable thumbnail, follow the :ref:`how-to-contribute` guide to open a pull request to the Scivision GitHub repo which adds the thumbnail image in the `scivision/catalog/data/thumbnails/models` folder.
Once you have identified a suitable thumbnail, follow the :ref:`how-to-contribute` guide to open a pull request to the Scivision GitHub repo which adds the thumbnail image in the `src/scivision/catalog/data/thumbnails/models` folder.

.. _additional:

Expand Down
4 changes: 2 additions & 2 deletions frontend/src/DatasourceNew.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,8 @@ export default function DatasourceNew({ gh_logged_in }) {
sessionStorage.setItem("new-datasource-thumbnail/jpeg", imgData)
}
catalog_kind="datasource"
catalog_path="scivision/catalog/data/datasources.json"
thumbnail_directory="scivision/catalog/data/thumbnails/datasources"
catalog_path="src/scivision/catalog/data/datasources.json"
thumbnail_directory="src/scivision/catalog/data/thumbnails/datasources"
download_filename="one-datasource.json"
/>
)}
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/ModelNew.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,8 @@ export default function ModelNew({ gh_logged_in }) {
sessionStorage.setItem("new-model-thumbnail/jpeg", imgData)
}
catalog_kind="model"
catalog_path="scivision/catalog/data/models.json"
thumbnail_directory="scivision/catalog/data/thumbnails/models"
catalog_path="src/scivision/catalog/data/models.json"
thumbnail_directory="src/scivision/catalog/data/thumbnails/models"
download_filename="one-model.json"
/>
)}
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/ProjectNew.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ export default function ProjectNew({ gh_logged_in }) {
sessionStorage.setItem("new-project-thumbnail/jpeg", imgData)
}
catalog_kind="project"
catalog_path="scivision/catalog/data/projects.json"
thumbnail_directory="scivision/catalog/data/thumbnails/projects/"
catalog_path="src/scivision/catalog/data/projects.json"
thumbnail_directory="src/scivision/catalog/data/thumbnails/projects/"
download_filename="one-project.json"
/>
</Col>
Expand Down

0 comments on commit 443c755

Please sign in to comment.