Friday, February 28, 2014

Changes 2/28/14

NSF:

  • Figured out the problem with finding Government interest.  It was looking for the string '<paragraph-federal-research-statement>', but in practice, these tags are always <paragraph-federal-research-statement id=xx...>, so an opening tag was never found.
  • With this fixed, however, new problems showed themselves.  Since the parser code hadn't been run since I split patparser.py into its own file, there are now a ton of missing methods.  I am trying to figure out the class system, but it seems really counter-intuitive.
  • I need a way to call methods from the instance python file (run.py) within patparser.py, but there does not seem to be a way to do this.  In java, you would just make those methods static or pass the imported class the instance class's object with the this keyword.
  • In python, there is no this, and seemingly no way to get the object of the file that instantiated another file
  • I tried putting stuff into classes, but then you have to add an additional argument self to every single method.  Really?  That's a dumb thing to force on anyone who wants to use objects.
  • No github push because the code is in pieces

No comments:

Post a Comment