Skip to content

Commit

Permalink
update release notes && make the dicts in the loop
Browse files Browse the repository at this point in the history
  • Loading branch information
Xiangs18 committed Aug 26, 2024
1 parent 8d672d1 commit d1dd768
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 16 deletions.
2 changes: 1 addition & 1 deletion RELEASE_NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.11.7] - TBD
- The internal method `save_genome_mass` was added to facilitate the batch saving of genomes
- Genomes are now saved in batches to the workspace
- Unusable `export_genome_features_protein_to_fasta` function was removed
- The `genbanks_to_genomes` method was added to allow users to upload multiple
genome objects at once
Expand Down
31 changes: 16 additions & 15 deletions lib/GenomeFileUtil/core/GenomeInterface.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,22 +93,23 @@ def _save_genome_objects(
meta_data,
hidden_data,
):
ws_inputs = []
for ws_datatype, data_path, name, meta, hidden in zip(
ws_datatypes, data_paths, names, meta_data, hidden_data
):
ws_inputs.append(
{
'type': ws_datatype,
'data_json_file': data_path,
'name': name,
'meta': meta,
'hidden': hidden,
}
)
return self.ws_large_data.save_objects(
{'id': workspace_id, 'objects': ws_inputs}
dfu_infos = self.ws_large_data.save_objects(
{
'id': workspace_id,
'objects': [
{
'type': ws_datatype,
'data_json_file': data_path,
'name': name,
'meta': meta,
'hidden': hidden,
} for ws_datatype, data_path, name, meta, hidden in zip(
ws_datatypes, data_paths, names, meta_data, hidden_data
)
]
}
)
return dfu_infos

def _check_shock_response(self, response, errtxt):
"""
Expand Down

0 comments on commit d1dd768

Please sign in to comment.