Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table of Contents
minLevel1
maxLevel2

...

  • Following the calls to import required packages and the code for the parsing function (Fig. 5) that should be at the head of the script, all of the remaining script needs to be indented within a function called main.

    • To do this, add a main function and indent all of the code within main.

Example:

def main():

# all the code from Jupyter notebook

if __name__ == '__main__':

    main()

Tip: You can highlight the entire block of code and hit “tab”, and it will indent all the highlighted code at one time.

...

  • In the above command, edit the “ConfigurationFileName.json” to reflect the name of your configuration file.

Tip
Success! You have completed this How-To module.

Read next: Data Output: Converting output JSON format to CSV tables

Related articles

Filter by label (Content by label)
showLabelsfalse
max5
spacescom.atlassian.confluence.content.render.xhtml.model.resource.identifiers.SpaceResourceIdentifier@23a397
sortmodified
showSpacefalse
reversetrue
typepage
cqllabel = "image_analysis" and type = "page" and space = "LH"
labelskb-how-to-article
Info

Breeding Insight is funded by USDA at Cornell University. For more information, please visit http://www.breedinginsight.org.

...