Skip to content

Instances import - #195

Merged
Leo-Marbehan merged 4 commits into
mainfrom
feature/instances-import
Oct 28, 2025
Merged

Leo-Marbehan merged 4 commits into
mainfrom
feature/instances-import

Conversation

@Leo-Marbehan

@Leo-Marbehan Leo-Marbehan commented Sep 28, 2025

Copy link
Copy Markdown
Collaborator

Instances import

To do

Modifications

  • Add multiple instances import (import a folder of instances folder).
  • Add instance delete.
  • Add autocomplete on instance field when starting a simulation.

Visuals

image

@Leo-Marbehan Leo-Marbehan linked an issue Sep 28, 2025 that may be closed by this pull request
@Leo-Marbehan
Leo-Marbehan force-pushed the feature/instances-import branch from 70b90e9 to e845049 Compare October 12, 2025 02:03
@Leo-Marbehan
Leo-Marbehan marked this pull request as ready for review October 12, 2025 02:05
@Leo-Marbehan

Copy link
Copy Markdown
Collaborator Author

I deployed the latest version to TestPyPI. If you want you can install it and test it :

python -m pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple multimodalsim-viewer==0.1.5.0

@pamun1

pamun1 commented Oct 16, 2025

Copy link
Copy Markdown
Collaborator

I tested the importation of multiple instances and it works well. I was wondering if, in addition to letting users import a folder of instance folders, it would be a good idea to let users select only the instance folders that they want to import (i.e., by clicking on multiple folders with Ctrl or Shift). I think this might be useful if a folder contains a lot a instance folders and the user does not want to import them all. Maybe this could be done later (in a different pull request).

@pamun1

pamun1 commented Oct 16, 2025

Copy link
Copy Markdown
Collaborator

I was not able to test the "autocomplete on instance field when starting a simulation". How does it work? What should be autocompleted? The "Data" field in the "Configure Simulation" form?

@pamun1 pamun1 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks good overall. I tested the new functionalities and they appear to be working as expected. However, I was not able to test the autocompletion feature. Please have a look at my comments.

@Leo-Marbehan

Copy link
Copy Markdown
Collaborator Author

I tested the importation of multiple instances and it works well. I was wondering if, in addition to letting users import a folder of instance folders, it would be a good idea to let users select only the instance folders that they want to import (i.e., by clicking on multiple folders with Ctrl or Shift). I think this might be useful if a folder contains a lot a instance folders and the user does not want to import them all. Maybe this could be done later (in a different pull request).

I think that there is currently no way to upload multiple folders. It works for directories but not folders. Alternatively we can provide a multi-file import for compressed instances folder.

Or another idea would be to allow the user to select the folder with all instances, and then filter which ones will be imported in a dedicated interface.

@Leo-Marbehan

Leo-Marbehan commented Oct 18, 2025

Copy link
Copy Markdown
Collaborator Author

I was not able to test the "autocomplete on instance field when starting a simulation". How does it work? What should be autocompleted? The "Data" field in the "Configure Simulation" form?

The name "autocomplete" might be misleading. The feature is that you can type in the "Data" field and the instances are filtered. I did it using Angular Material and you can read about it here.

image

@Leo-Marbehan
Leo-Marbehan requested a review from pamun1 October 18, 2025 19:59
@pamun1

pamun1 commented Oct 27, 2025

Copy link
Copy Markdown
Collaborator

I think the way the importation works is fine for now. The ideas that you suggested are good. Maybe we can look at them later.

As for the "autocomplete" feature, I see what you mean now. It seems to be working fine.

@pamun1 pamun1 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the explanations. Everything looks good.

@Leo-Marbehan
Leo-Marbehan merged commit 61c457d into main Oct 28, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Instances import

2 participants