Skip to content

Commit

Permalink
fix line endings issue (#150)
Browse files Browse the repository at this point in the history
* mfcc rst and sc help file

* mfcc sc examples

* mfcc output

* mfcc helpfile readability

* BufMFCC udpates

* update bufonsetslice docs slightly (#87)

* fix audio transport segmentation of discussion and desc

* fix audio transport segmentation of discussion and desc (#88)

* add missing see alsos

* optional args: add to C++ wrapper

* ParamDump and python: add choices param type

* Json driver (#35)

* Make jinja rendering conditional on driver having a template

* minimal driver for raw JSON output

* cmake target for raw JSON

* fix cmake output directory

* add command line option for raw

* remove spurious item from raw driver

* add back changes that dealt with conditional template rendering

* add a github action for creating a basic API on actions

Co-authored-by: James Bradbury <[email protected]>

* Update json_api.yml

* Update json_api.yml

* Update json_api.yml

* change name of raw output to api.json

* Update json_api.yml

* remove indentation on api

* typo in UMAP

* [Docs] OnsetSlice and BufOnsetSlice (#91)

* update bufonsetslice text

* onsetslice update

* ted's changes

* copy changes to bufonsetslice also

* revamp MelBands and BufMelBands RST, update SC example code

* *melbands description

* added a hyphen

* pitch and buf pitch RST

* added link to the learn page

* edited normalize description

* pitch sc help files

* BufFlatten RST and SC examples

* buf thresh

* sc help file

* typo in fluid pitch sc example code

* bufthresh rst

* typo

* james' feedback

* add .ds_store to gitignore

* pa feedback

* pa feedback

* pa feedback

* PA feedback

* [Docs] Update Normalize Docs (#76)

* update normalize entry

* update description

* pa's requests

Co-authored-by: James Bradbury <[email protected]>

* [Docs] Slicer Feature Objects (#101)

* add skeleton of bufnoveltyfeature

* caveat novelty feature

* add onset feature

* remove space

* add bufampfeature

* realtime amp feature

* update output of AmpFeature

* clean up the language

* caveats for bufonset feature

* add onset feature

* Add JSON generators for Slicers' feature counterparts

* rt noveltyfeature

* fix various errors

* robots in disguise

* change feature -> algorithm

* cleanup noveltyfeature

* make noveltyfeature more consistent

* remove superfluous spaces

* fix description

* fix reference to buffer version in rt object

* add padding

* sc example code for slicer-features

Co-authored-by: weefuzzy <[email protected]>
Co-authored-by: Ted Moore <[email protected]>

* changing preset and interface for noveltyslice examples

* Add argument handlers for const DataSet / LabelSet

* Max/PD: Generate docs for control-in objects (input size and autosize)

* Enhance/max params (#104)

* CMake: Centralise C++ version and set to 17

* Wrapper: Handle new LongRuntimeMax parameter type

* Doc generators: Handle new LongRuntimeMax type + rules for args in Max/PD

* Add a `striprst` jinja filter for removing rst markup in templates (#107)

Such as Max object level description tags

* UMAP cmake reference to python sorted

* typo

* Wrapper and doc-gen update for new `maxFFTSize`

* Buf stats (#103)

* BufStats RST

* BufStats ⚠️

* bufstats supercollider examples

* re-organized descriptions

* added table back in

* typo

* added url

* bufcompose update (#95)

* PCA inverseTransformPoint (#97)

* PCA inverseTransformPoint

* added inverseTransform to PCA RST

* off by one white space 😠

* normalize the desc/disc of mfcc entries (#113)

* HPSS Help file (RST) and SC examples (#81)

* HPSS rst edited and SC examples created

* pa feedback

* Enhance/generate stubs (#119)

* CMake: Generate cpp stubs, smooth out API for dependent projects

* Remove old stubs and scripts

* CMake: Ensure correct MSVC runtime by default

* Correct variable setting logic in macro

* CI: Debug CMAKE_MODULE_PATH

* CMake: Try setting module path using explicit source dir for core

* CI Debug: Print core/scripts

* CMake: Correct typo

* CMake: MSVC with bigobj, tidy up messages

* set explicit UTF8 encoding when opening text

* explicitly use utf8 for writing as well as reading

* MDS RST & SC example code (#121)

* MLPClassifier SC example code

* MLPClassifier SC example code ⚠️

* MLPs SC example code and RSTs ⚠️

* ⚠️

* ⚠️

* wip

* MLP RSTs

* [FIX] this commit adds code to the SC templates to allow enums in the RST to appear in the species data

* feedback

* hidden -> hiddenLayers

* ⚠️

* sc example ⚠️

* sc example code

* bump

* typo

* removed cosine

* weefuzzy and james feedback

* fixed plot size

* MLPRegressor & MLPClassifier RSTs & SC example Code (#109)

* MLPClassifier SC example code

* MLPClassifier SC example code ⚠️

* MLPs SC example code and RSTs ⚠️

* ⚠️

* ⚠️

* wip

* MLP RSTs

* [FIX] this commit adds code to the SC templates to allow enums in the RST to appear in the species data

* feedback

* hidden -> hiddenLayers

* Standardize RST & SC examples (#117)

* Standardize RST & SC example code

* removed the 'invert' argument

* added discussion

* RobustScale (#118)

* ⚠️

* RobustScale RST

* RobustScale SC example code

* bump

* added discussion

* KNNClassifier RST and SC example code (#127)

* KNN ⚠️

* reset knnregressor.rst

* Stats RST & SC examples (#124)

* Stats RST and SC code

* stats rst and sc code

* feedback

* PCA RST and SC Examples (#116)

* PCA RST

* PCA SC example code

* sc example code with whitening example

* added discussion

* james' feedback

Co-authored-by: James Bradbury <[email protected]>

* Update Standardize.rst

Fix indentation error that caused mis-parsing

* maxFFTSize in SC driver is conditional on buffer-proc species (#129)

* BufSTFT RST and SC example code (#112)

* BufSTFT RST and SC example code

* added discussion

* typo

* [Enhance] Learn platform link generation (#120)

* update default transformer to handle learn links

* update maxref template to acount for learn link

* add link to templates discussion

* compartmentalise the learn link derivation

* update the supercollider driver which doesnt use default transform

* use a regex instead of object map

* update derivation of learn links

* add test for link derivation

* typo

* bufnmf: adding resynthmode

* resynthMode : camel case

* Change size to history (#133)

* BufNMFCross RST & SC example (#137)

* NNDSVD (#138)

* ⚠️

* BufNNDSVD RST & SC examples

* NNDSVD RST with descriptions of method

* add token for |buffer|

* feedback

Co-authored-by: James Bradbury <[email protected]>

* NMFMorph (& species transformer[0]) (#135)

* NMFMorph RST and SC examples

* NMFMorph

* NMFMorph (and species transformer[0])

* separate discussion and description

* added comment about why autoassign is set twice

Co-authored-by: James Bradbury <[email protected]>

* put bar chart back in (#123)

* KNNRegressor (#136)

* KNNRegressor RST & SC examples

* fixed sc code formatting

* separate discussion and description!

* (Buf)Transients(Slice) Family (#140)

* transients RST

* ⚠️

* ⚠️

* more sc examples for transients family

* feedback from owen and alex

* feedback round 1

* feedback

* typos in rst

* typos in knnclassifier~ (#142)

* sc example code for BufNMF now includes resynthMode

* deleted SC Guid YAML file

* put spaces around hyperlinks

* BufTransients SC example (Waveform only 2 sec.)

* BufNNDSVD -> BufNMFSeed (#141)

* change the doc

* forgot to change the code sample file name

* fix Loudness select in MLPRegressor example code

* fix bad link in nmf morph (BufNMFCross was missing the buf part)

* added inverse transform and inverse transform point to Normalize

* better code for testing all flucoma objects help files

* added argument k to KDTree RST

* fixed a bad link in KNNClassifier RST

* removed action arguments from RobustScale RST

* fixed mistakes in RobustScale RST that was causing it to not render properly

* added select argument to BufLoudness and Loudness RST (the rest coming soon...)

* added pca whitening to PCA RST

* adding select argument to appropriate RST files

it would be nicer to have them in list form... TODO

* added radius argument to KDTree RST

* added channels argument to BufSelect RST

* checked example code files that use 'select' for possible errors

* found a bit more code needing resynthMode

* [Enhance] Interp to Interplation in NMFMorph (#143)

* typos in knnclassifier~

* change interp to interpolation for nmfmorph

* SKMeans (#132)

* skmeans doc commit

* skmeans: attempt at better doc

* example code a little more explicit

* typos found in kmeans

* update from @weefuzzy feedback - less untrue in most cases :)

* <fit>transform<point> -> <fit>encode<point>

* (Buf)AmpGate RST & SC examples (#122)

* (Buf)AmpGate RST & SC examples

* BufAmpGate help file ⚠️

* drum hit example ⚠️

* ⚠️

* gitignore to ignore vs code

* pa feedback

* added BufAmpGate maxSize parameter

* [Fix] Fix Guide Links in RST (#147)

* typos in knnclassifier~

* fix guide link

* [Fix] LF line ending enforcement (#149)

* typos in knnclassifier~

* enforce newline='\n' on template writing
  • Loading branch information
James Bradbury authored Jun 15, 2022
1 parent 2db4d73 commit 0c86d59
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions flucoma/FluidRefData.py
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ def process_template(template_path,outputdir,client_data,host):

template = env.get_template(host['template'])

with open(ofile,'w') as f:
with open(ofile,'w', newline='\n') as f:
f.write(template.render(client_data))
# arguments=client_data['arguments'],
# attributes=client_data['attributes'],
Expand Down Expand Up @@ -585,7 +585,7 @@ def process_topic(topic_file,template_path,outputdir,host):
else:
raise NameError('{} not found'.format(topic_file))

with open(ofile,'w') as f:
with open(ofile,'w', newline='\n') as f:
f.write(template.render(
title=topic_data['title'],
digest=topic_data['digest'],
Expand Down
4 changes: 2 additions & 2 deletions flucoma/doc/render.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def client(client, client_index, args, driver):
client_data['messages'] = ContextView(client_data.pop('messages'))

with add_context(client):
with open(ofile,'w',encoding='utf-8') as f:
with open(ofile,'w',encoding='utf-8', newline='\n') as f:
f.write(template.render(client_data,
index=client_index,
driver = driver,
Expand All @@ -98,7 +98,7 @@ def topic(topic_data,client_index,args,driver):
template = env.get_template(driver['topic_template'])
logging.info(f"{topic_data['name']}: Making {ofile}")

with open(ofile,'w',encoding='utf-8') as f:
with open(ofile,'w',encoding='utf-8', newline='\n') as f:
f.write(template.render(
title=topic_data['title'],
digest=topic_data['digest'],
Expand Down

0 comments on commit 0c86d59

Please sign in to comment.