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

Refactor / rewrite / remove convert.py #24

Merged
merged 68 commits into from
Mar 19, 2015
Merged

Refactor / rewrite / remove convert.py #24

merged 68 commits into from
Mar 19, 2015

Conversation

bewt85
Copy link
Contributor

@bewt85 bewt85 commented Mar 17, 2015

As suggested, I've mostly focused on convert.py and made minimal changes elsewhere.

I've gone for something a like a Factory without going too class mad. I could probably have added something like FeatureFactory or Attributes or an AttributeFactory but I don't think it would make things any readable yet.

There is probably a little bit more that could be done in EMBLWriter. I'd consider little changes like passing around file handles rather than filenames which means that you could use a StringIO in the tests (rather than writing to disk).

Comments / suggested changes are welcome though :)

bewt85 added 30 commits March 11, 2015 10:55
as part of refactor
These help test the EMBLFeature methods without involving the
__init__ method
@bewt85
Copy link
Contributor Author

bewt85 commented Mar 17, 2015

As discussed

  • I'm going to make the organism in the header wrap if it is too long
  • In fact I'll get it to error if any of the lines is more than 80 characters long
  • I'll also bump the version number

@bewt85 bewt85 closed this Mar 17, 2015
bewt85 added 4 commits March 17, 2015 13:22
For some reason, despite deleting convert.py, the tests kept passing
until I did a git clean.  Must be a *.pyc thing.
The source feature within the EMBLHeader is now an actual EMBLFeature.
This is so that it wraps nicely onto the next line just like other features
@bewt85
Copy link
Contributor Author

bewt85 commented Mar 17, 2015

Made updates as discussed above

@bewt85 bewt85 reopened this Mar 17, 2015
andrewjpage added a commit that referenced this pull request Mar 19, 2015
Refactor / rewrite / remove convert.py
@andrewjpage andrewjpage merged commit 446df52 into sanger-pathogens:master Mar 19, 2015
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