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

Empty config list should hide corresponding config column #60

Merged
merged 3 commits into from
Apr 9, 2024

Conversation

Marsolo1
Copy link
Collaborator

Description

As @clement-moulin-frier asked, I made so that empty configs should not break the interface.

Related Issue (if applicable)

#53

How to Test

Launch the server

python3 scripts/run_server.py

Launch the Panel interface

panel serve scripts/run_interface.py --autoreload

No changes should be visible for now

@Marsolo1 Marsolo1 added the enhancement New feature or request label Mar 25, 2024
@corentinlger
Copy link
Collaborator

To test the PR we need to either set n_objects or n_agents to 0 right ?

When I tried to do so, I still get this error :

$ python3 scripts/run_server.py --n_objects 0
Traceback (most recent call last):
  File "/home/flowers/Desktop/research_engineer/vivarium/scripts/run_server.py", line 66, in <module>
    state = set_state_from_config_dict({StateType.AGENT: agent_configs,
  File "/home/flowers/Desktop/research_engineer/vivarium/vivarium/controllers/converters.py", line 223, in set_state_from_config_dict
    params = configs[0].param_names()
IndexError: list index out of range

@Marsolo1
Copy link
Collaborator Author

To test the PR we need to either set n_objects or n_agents to 0 right ?

No it doesn't add functionnalities, it is only a set up for fixing #53 (PR #55 wasn't clean enough)

@corentinlger corentinlger merged commit 69faaa8 into main Apr 9, 2024
2 checks passed
@corentinlger corentinlger deleted the martial/hide_configs_if_empty branch April 9, 2024 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants