Skip to content

added meta.tsv, updated documentation, fixed calendar import #146

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

Closed
wants to merge 7 commits into from
Closed

added meta.tsv, updated documentation, fixed calendar import #146

wants to merge 7 commits into from

Conversation

IngoS11
Copy link

@IngoS11 IngoS11 commented Mar 29, 2018

added an example meta.tsv file that can be used for the hubble-data repository. Update the README.md to tell people that a meta.tsv file has to be present inside hubble-data. Added an Exception and print output in case there is no meta.tsv file. Fixed missing import statement in ReportPRUsage.py for calendar

Ubuntu and others added 6 commits March 29, 2018 20:56
added an example meta.tsv file that can be used for the hubble-data
repository. Update the README.md to tell people that a meta.tsv file
has to be present inside hubble-data. Added an Exception and print
output in case there is no meta.tsv file. Fixed missing inmport statement
in ReportPRUsage.py for callendar
@pluehne
Copy link
Contributor

pluehne commented Apr 6, 2018

@IngoS11: Thanks for these patches!

I believe that it would be best to handle empty meta.tsv files within the update-stats.py. This would make the users’ lives easier, because we wouldn’t need to add more steps to the documentation.

Aside from that, I’ll look into the import calendar issue. To that end, could you pleaase tell me what Python version you’re using?

@@ -20,6 +20,9 @@ def checkSchemaVersion(dataDirectory):
if row[0] == "schema-version":
schemaVersionLocal = int(row[1])
break
except IOError:
print("error: the data repository has no file named meta.tsv", file = sys.stderr)
sys.exit(1)
Copy link
Collaborator

Choose a reason for hiding this comment

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

👋 @IngoS11 ! Thanks for fixing this issue!

I wonder, couldn't we just assume the default schemaVersion in case of an IOError? That means we would set:

schemaVersionLocal = schemaVersion

here.

What do you think?

@pluehne
Copy link
Contributor

pluehne commented Apr 16, 2018

@IngoS11: Thanks for your contributions. I think that it’s nicer to add support for empty meta.tsv files to the updater than to force users to create one by themselves (which introduces another vector of potential issues).

For this reason, I decided to split your pull request into the calendar import fix (#152) and the added support for empty meta.tsv files (#153).

Again, thanks for helping us out, and I hope that you’re fine with me closing this pull request, now that it’s superseded by #152 and #153.

Just on a side note, feel free to open separate pull requests even for minor things such as the calendar import—this also allows for merging and reviewing this more quickly 🙂.

@pluehne
Copy link
Contributor

pluehne commented Apr 16, 2018

Superseded by #152 and #153.

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

Successfully merging this pull request may close these issues.

3 participants