-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #26 from SynBioDex/3-Package-the-functions-into-a-…
…Library initial setup to support issue #15
- Loading branch information
Showing
12 changed files
with
115 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
|
||
class PartLibraryConverter(object): | ||
|
||
DARPA_TEMPLATE = '' | ||
def __init__(self): | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
|
||
class Template(object): | ||
|
||
def __init__(self): | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
class TemplateFactory(object): | ||
|
||
def __init__(self): | ||
pass | ||
|
||
def create_darpa_template(self): | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,37 @@ | ||
import excel2sbol.main as tool | ||
import os | ||
import unittest | ||
|
||
class GoldenFileTest(unittest.TestCase): | ||
|
||
def setup(self): | ||
@classmethod | ||
def setUpClass(cls): | ||
pass | ||
|
||
def setUp(self): | ||
curr_path = os.path.dirname(os.path.realpath(__file__)) | ||
self.data_dir = os.path.join(curr_path, 'data') | ||
|
||
def tearDown(self): | ||
pass | ||
|
||
def test_library_file(self): | ||
pass | ||
@classmethod | ||
def tearDownClass(cls): | ||
pass | ||
|
||
def test_convert_part_library(self): | ||
file = 'darpa_template.xlsx' | ||
input_file_path = os.path.join(self.data_dir, file) | ||
template_file = os.path.join(self.data_dir, 'darpa_template_blank.xlsx') | ||
output_doc = tool.convert_part_library(template_file=template_file, input_excel=input_file_path) | ||
self.assertTrue(output_doc) | ||
|
||
dna_parts = output_doc.componentDefinitions | ||
self.assertEqual(5, len(dna_parts)) | ||
|
||
def test_convert_composition_reading(self): | ||
file = 'darpa_template.xlsx' | ||
input_file_path = os.path.join(self.data_dir, file) | ||
template_file = os.path.join(self.data_dir, 'darpa_template_blank.xlsx') | ||
output_doc = tool.convert_composition_reading(template_file=template_file, input_excel=input_file_path) | ||
self.assertTrue(output_doc) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
sbol2==1.0b8 | ||
pandas==1.0.1 | ||
numpy==1.18.1 | ||
xlrd >= 1.0.0 |