original_docstring: 
          Load the curve from a file
          
docstring: Load the curve from a file
docstring_tokens: Load the curve from a file
code: def load_from_file(self, filepath):
          """
          Load the curve from a file
          """
          with open(filepath, 'r') as curve_data_file:
              try:
                  curve_data = json.load(curve_data_file)
                  self.rules = curve_data["rules"]
                  self.base_length = curve_data["base_length"]
                  self.start_point = curve_data["start_point"]
                  self.recursion_depth = curve_data["recursion_depth"]
              except (json.JSONDecodeError, KeyError):
                  print("Malformed JSON data")
code_tokens: def load_from_file ( self , filepath ) : with open ( filepath , 'r' ) as curve_data_file : try : curve_data = json . load ( curve_data_file ) self . rules = curve_data [ "rules" ] self . base_length = curve_data [ "base_length" ] self . start_point = curve_data [ "start_point" ] self . recursion_depth = curve_data [ "recursion_depth" ] except ( json . JSONDecodeError , KeyError ) : print ( "Malformed JSON data" )
short_docstring: Load the curve from a file
short_docstring_tokens: Load the curve from a file
comment: """
          Load the curve from a file
          """