original_docstring: 
          Load curve data from resource_file in the package
          
docstring: Load curve data from resource_file in the package
docstring_tokens: Load curve data from resource_file in the package
code: def load_from_resource(self, resource_file):
          """
          Load curve data from resource_file in the package
          """
          resource_data = resource_bytes('pyfractal', resource_file)
          try:
              curve_data = json.loads(resource_data)
              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")
          except FileNotFoundError:
              print("Curve resource file not found/available")
code_tokens: def load_from_resource ( self , resource_file ) : resource_data = resource_bytes ( 'pyfractal' , resource_file ) try : curve_data = json . loads ( resource_data ) 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" ) except FileNotFoundError : print ( "Curve resource file not found/available" )
short_docstring: Load curve data from resource_file in the package
short_docstring_tokens: Load curve data from resource_file in the package
comment: """
          Load curve data from resource_file in the package
          """