Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correcting file path for the catalog when adding a new object #653

Merged
merged 2 commits into from
Nov 3, 2023
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
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
Loading