nhsdigital / rap_example_pipeline_python Goto Github PK
View Code? Open in Web Editor NEWAn example pipeline made in a RAP friendly way, using Python
License: MIT License
An example pipeline made in a RAP friendly way, using Python
License: MIT License
I recommend using type definitions in function definitions. It means the code is more self-documenting and can really aid development
def configure_logging(log_folder: Path, config: Dict[str, Any]) -> None:
This changed would be something that should be propegated to the rest of the repository, if it is a standard you want to adopt.
Originally posted by @josephwilson8-nhs in #6 (comment)
use Path objects from the pathlib library for all paths so they will be correct on different OSs
We need to get rid of this whole "adapting for your project" section
Originally posted by @SamHollings in #6 (comment)
Add logging to the new sections we've added
Have you checked the formatting off all other docstrings in the repo, do they match this style?
Originally posted by @josephwilson8-nhs in #6 (comment)
ah we should probably remove this conda section
Originally posted by @SamHollings in #6 (comment)
Hi, I am getting the following error:
Java not found and JAVA_HOME environment variable is not set.
Install Java and set JAVA_HOME to point to the Java installation directory.
Do I need Java to be installed? I have done:
python -m pip install -r requirements.txt
Add tests where possible:
If making the test is too difficult, just add an "empty" placeholder - to show that we at least are aware it needs testing.
Use Pytest as the framework - see the examples.
Update imports to import whole module as alias and update function references throughout.
A la Joe's suggestion:
This is more of a personal style choice, but I like to import the file under an alias, rather than the function
from src.utils import file_paths as paths, logging_config as logs, spark
from src.data_ingestion import get_data as data, reading_data as read
from src.processing import aggregate_counts as agg
from src.data_exports import write_csv as write
You will need to change function calls e.g. get_config will become paths.get_config, but it will be more clear where the function is from
Originally posted by @josephwilson8-nhs in #6 (comment)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.