-
Notifications
You must be signed in to change notification settings - Fork 9
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
fix: S3 and URL wrongly handled #93
Conversation
* feat(back): Add ann_type to choose between "Pre-annotation" and "Model run" * fix(ci): Update Pylint local variables limit * feat(front): Update "Ignore" pre-annotation button to "Reject" As discussed during the latest sprint demo (Fri 02/02/2024), and for consistency with documentation in inference_model.py and pre_annotation.ipynb * fix(back): Make ann_type optional * fix(front): Update Prettier config for 3.2.5 See https://github.com/prettier/prettier/blob/main/CHANGELOG.md#use-json-parser-for-tsconfigjson-by-default-16012-by-sosukesuzuki * fix(back): Merge ann_type with process_type * fix(ci): Revert Pylint local variables limit
@@ -21,3 +21,11 @@ import { schemeSet3 } from "d3-scale-chromatic"; | |||
export function ordinalColorScale(range: Iterable<string>) { | |||
return scaleOrdinal(schemeSet3).domain(range); | |||
} | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in order to better organize utils, there is a dedicated folder core/src/lib/utils
. Maybe we could create an index file which would allow to do a utils.fooFunction
?
@@ -204,7 +204,11 @@ | |||
for (const view of Object.values(selectedItem.views)) { | |||
zoomFactor[view.id] = 1; | |||
images[view.id] = new Image(); | |||
images[view.id].src = `/${view.uri}` || view.url; | |||
if (utils.isValidURL(view.uri)) { | |||
images[view.id].src = `${view.uri}` || view.url; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think || view.url
was added here during data migration to avoid bugs but should probably not be needed in the future?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
agreed, but in a future PR
* fix(back): AWS_ENDPOINT required by lancedb * fix(back): protection against incomplete embeddings table * fix(front): manage correctly url image * fix(back): typo * fix(back): incorrect doc param * chore(back): linting * feat(back): Choose Pre-annotation or Model run in InferenceModel (#91) * feat(back): Add ann_type to choose between "Pre-annotation" and "Model run" * fix(ci): Update Pylint local variables limit * feat(front): Update "Ignore" pre-annotation button to "Reject" As discussed during the latest sprint demo (Fri 02/02/2024), and for consistency with documentation in inference_model.py and pre_annotation.ipynb * fix(back): Make ann_type optional * fix(front): Update Prettier config for 3.2.5 See https://github.com/prettier/prettier/blob/main/CHANGELOG.md#use-json-parser-for-tsconfigjson-by-default-16012-by-sosukesuzuki * fix(back): Merge ann_type with process_type * fix(ci): Revert Pylint local variables limit --------- Co-authored-by: Corentin Vannier <56968251+cpvannier@users.noreply.github.com>
Fixes #95