-
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
Double instantiation warning on running tests #23
Labels
bug
Something isn't working
good first issue
Good for newcomers
help wanted
Extra attention is needed
Comments
gomezzz
added
bug
Something isn't working
help wanted
Extra attention is needed
good first issue
Good for newcomers
labels
Oct 19, 2022
I cannot reproduce this error. |
I just launched the test and got a warning, not an error, that there was an attempt to instantiate PASESOS twice. |
I fail to reproduce this on my machine
|
@GabrieleMeoni when do you get it? |
(I tested with PR #26 ) |
Seems this only happens when you run the tests manually as then paseos is loaded over and over again for each test. So not a bug. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
bug
Something isn't working
good first issue
Good for newcomers
help wanted
Extra attention is needed
Issue
Problem Description
Running tests leads to double instantiation of paseos which throws a warning.
Expected Behavior
No warning
What Needs to be Done
Change init or tests so this doesn't trigger a warning.
How Can It Be Tested or Reproduced
After checking out PR #26
python .\init_test.py
17:43:55|PASEOS-DEBUG| Setting LogLevel to DEBUG
17:43:55|PASEOS-DEBUG| Loaded module.
17:43:55|PASEOS-DEBUG| Added orbit to actor sat1
17:43:55|PASEOS-DEBUG| Added power device. MaxBattery=10000Ws, CurrBattery=500Ws, ChargingRate=1W to actor sat1
17:43:55|PASEOS-DEBUG| Initializing simulation.
17:43:55|PASEOS-DEBUG| Loading default cfg...
17:43:55|PASEOS-DEBUG| Added orbit to actor sat1
17:43:55|PASEOS-DEBUG| Added power device. MaxBattery=10000Ws, CurrBattery=500Ws, ChargingRate=1W to actor sat1
17:43:55|PASEOS-DEBUG| Initializing simulation.
17:43:55|PASEOS-WARNING| Tried to create another instance of PASEOS simulation.Keeping original one...
17:43:55|PASEOS-DEBUG| Loading default cfg...
As you can see I get this warning. I am not sure if this is a problem or this test actually is to check if this warning is raised.
17:43:55|PASEOS-DEBUG| Added orbit to actor sat1
The text was updated successfully, but these errors were encountered: