diff --git a/docs/tutorials/simulation.md b/docs/tutorials/simulation.md index 2f2a75d..5b839dc 100644 --- a/docs/tutorials/simulation.md +++ b/docs/tutorials/simulation.md @@ -139,7 +139,7 @@ ana = cript.Computation.create( !!! note Notice the use of `create()` here, which instantiates and saves the object in one go. -### Create and upload Files +### Create and Upload Files First, we'll instantiate our File nodes. ``` py packing_file = cript.File(project=proj, source="path/to/local/file") @@ -177,7 +177,7 @@ forcefield_data = cript.Data.create( type = "computation_forcefield", files = [forcefield_file], computations = [init], - notes = "Full forcefield defintiona and topology.", + notes = "Full forcefield definition and topology.", ) equi_snap = cript.Data.create( experiment = expt, diff --git a/docs/tutorials/synthesis.md b/docs/tutorials/synthesis.md index f1ff989..7b52956 100644 --- a/docs/tutorials/synthesis.md +++ b/docs/tutorials/synthesis.md @@ -179,7 +179,7 @@ prcs.save() ``` ### Create a File node and upload a file -First, we'll instantiate a File node and associate with the Data node created above. +First, we'll instantiate a File node and associate it with the Data node created above. ``` py path = "path/to/local/file" f = cript.File(project=proj, source=path) @@ -217,7 +217,7 @@ Next, we'll add the Data node to the new Property node. ``` py mw_n.data = sec ``` -Last, we'll add the new Property node to polystyrene then save it. +Last, we'll add the new Property node to polystyrene and then save it. ``` py polystyrene.add_property(mw_n) polystyrene.save() diff --git a/src/cript/api/rest.py b/src/cript/api/rest.py index bc429d1..cad384f 100644 --- a/src/cript/api/rest.py +++ b/src/cript/api/rest.py @@ -110,7 +110,7 @@ def post(self, url: str, data: str = None, valid_codes: list = [201]): return json.loads(response.content) @beartype - def put(self, url: str, data: str = None,valid_codes: list = [200]): + def put(self, url: str, data: str = None, valid_codes: list = [200]): """Performs an HTTP PUT request and handles errors.""" url = convert_to_api_url(url) response = self.session.put(url=url, data=data) diff --git a/src/cript/data_model/nodes/reference.py b/src/cript/data_model/nodes/reference.py index b1b4fa4..8b10493 100644 --- a/src/cript/data_model/nodes/reference.py +++ b/src/cript/data_model/nodes/reference.py @@ -66,7 +66,6 @@ def save(self, get_level: int = 1, update_existing: bool = False): """ api = get_cached_api_session(self.url) - # Create a new object via POST response = api.post( url=f"{api.url}/{self.slug}/", @@ -87,4 +86,4 @@ def save(self, get_level: int = 1, update_existing: bool = False): set_node_attributes(self, response) self._generate_nested_nodes(get_level=get_level) - logger.info(f"{self.node_name} node has been saved to the database.") \ No newline at end of file + logger.info(f"{self.node_name} node has been saved to the database.")