Skip to content
This repository was archived by the owner on May 12, 2021. It is now read-only.

Convert weather data to JSON#150

Closed
pavlopoul wants to merge 1 commit intoapache:masterfrom
pavlopoul:christina/queries
Closed

Convert weather data to JSON#150
pavlopoul wants to merge 1 commit intoapache:masterfrom
pavlopoul:christina/queries

Conversation

@pavlopoul
Copy link
Copy Markdown
Contributor

No description provided.


class WeatherConvertToJSON:

STATES = OrderedDict({
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Can the STATES and MONTHS variables be shared between convertors?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It looks like many of the methods here can be shared with the WeatherConvertToXML. It would be nice to have "abstract" class that is shared for each convertor. (Not sure what its called in python.)

@pavlopoul pavlopoul force-pushed the christina/queries branch 3 times, most recently from 9b9e711 to 62ca88c Compare August 29, 2016 03:59
@@ -0,0 +1,830 @@
#!/usr/bin/env python
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is this a new file or just being renamed?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

It is a new file that contains an abstract converter class. Then, according to which converter we need the methods are implemented in the corresponding converter. The two converters classes are, also contained in this file.

@pavlopoul pavlopoul closed this Jul 20, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants