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

Issue when trying to remove a simulation #22

Open
Martin-Rey opened this issue Jan 29, 2018 · 2 comments
Open

Issue when trying to remove a simulation #22

Martin-Rey opened this issue Jan 29, 2018 · 2 comments

Comments

@Martin-Rey
Copy link

When trying to remove a simulation a simulation form the database (command tangos rm tutorial_ramses), I get the following error :

File "/Users/mrey/Documents/tangos/tangos/scripts/manager.py", line 189, in rem_simulation_timesteps
print(term.RED + "Delete simulation", sim, term.NORMAL)
TypeError: can't concat str to bytes

from https://github.com/pynbody/tangos/blob/master/tangos/scripts/manager.py#L189

I am struggling to understand exactly what is going on.

@apontzen
Copy link
Member

Removing a simulation is not currently supported. The facility should be removed until it can be reimplemented correctly.

In the meantime, you could investigate the rollback command instead. tangos recent-runs 5 should show you the five most recent groups added to the database, for example, then you can roll them back by giving the ids to rollback.

@apontzen
Copy link
Member

apontzen commented Feb 5, 2018

The ability to delete a simulation has now been removed. It should be reintroduced in a future release so I will leave this PR open.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants