Closed dotsdl closed 2 years ago
I have finished adding unit tests for the individual tabs of the generated website, along with the top compounds detail pages. In doing this, identified and fixed the following issues:
index.html
templateRacemic
filter in exactly one place in the libraryTimeStampedAnalysis
model to schemas@jchodera this is ready for review!
One shortcoming yet: the minimal dataset we have included here doesn't have any retrospective transformations generated. This should be addressed in a future PR.
Ah, good catch on GHA! The CI action was set to look only in fah_xchem/tests
, but should look in fah_xchem
. I've made this change and will merge when the CI finishes: https://github.com/choderalab/fah-xchem/actions/runs/1211037745
Addresses #141, #149.
Reduced the complexity of the giant
generate_website
function by replacing it with theWebsiteArtifactory
class. Separated individual tabs of site into their own calls for scope encapsulation. Aim is to make it easier to chase down subtle issues, such as why we don't have pagination arrows for the retrospective tab.Also, separating configuration from the generation call with attributes on the object reduces the number of args that must be passed through to called methods, and avoids the workaround used previously of functions defined within the function to take advantage of its scope.
Todos
Notable points that this PR has either accomplished or will accomplish.
WebsiteArtifactory
Status