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

As simpler run_tardis #205

Merged

Conversation

wkerzendorf
Copy link
Member

Using the run_tardis function has been a bit annoying (one needed to first open the yml file and then give it to run_tardis). This function update hopefully made it a lot simpler (@unoebauer see if this is to your liking)

@mklauser @ssim @orbitfold one of you please sign off (or object) so we can merge this.

"""

try:
config_dict = yaml.load(open(config))
Copy link
Member Author

Choose a reason for hiding this comment

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

@mklauser You were interested in duck-typing. This is a classic example. You could do a type check to see if is as string, but one simply opts to give it to the python open command and then sees if it works. This means also unicode strings can work, or other things that open can read.

@wkerzendorf
Copy link
Member Author

@ssim while you are online - are you happy with this change (includes updated documentation)

@ssim
Copy link
Contributor

ssim commented Dec 5, 2014

This looks sensible to me. Happy to sign off - go ahead and merge, @wkerzendorf

wkerzendorf added a commit that referenced this pull request Dec 5, 2014
@wkerzendorf wkerzendorf merged commit 4ee289c into tardis-sn:master Dec 5, 2014
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.

2 participants