[14:27:14] I created Z18406 and I have 2 questions for the community: [14:27:15] 1) where can I describe the output unit? The description is not a good place, neither is the label nor the talk page IMO. In scientific calculations we need to know the input and output units. I cannot add a unit it seems in the current data model. [14:27:16] 2) Where can I source the multiplier used? The description is not suitable as the URL is long. The only solution I could come up with is the talk page and that seems terrible. I would like to use a QID as source for the constants in a composition like this. [14:36:09] Is there a max length for descriptions? I cannot paste a long QID in this field and it says 11 in the corner. We should be very clear in the FAQ or similar what we want user to do if they have information about a function that does not fit in the label/description IMO. : https://tools-static.wmflabs.org/bridgebot/6a272745/file_63248.jpg [15:16:47] @Jan_ainali and others: I published 7 new functions related to climate cost of journeys. See [[Wikifunctions:Catalogue#Climate_related_functions]] [15:19:09] The electric car function is specific to Sweden because different countries have different climate mix in their grids. So a mostly coal powered state in the US would have another mix compared to a mostly nuclear and dam-based grid in Sweden. [15:19:10] A generic function that allows the user to specify the multiplier would probably be a good idea. [15:31:10] I created Z18421 and added it as well. [15:36:58] I just published a 170 char description on Z18421Is that a bug? Who decided about the 100 char max that seems to be imposed when creating new functions? : https://tools-static.wmflabs.org/bridgebot/ed99b700/file_63254.jpg [15:42:48] great, thanks! (re @dpriskorn: The electric car function is specific to Sweden because different countries have different climate mix in their grids. [15:42:48] E.g. a m...) [15:43:13] this function is just a multiplication, do we really need a separate function for that? (especially as we don't have float...) (re @dpriskorn: I created Z18421 and added it as well.) [17:16:13] Isn't this for any electric equipment? What makes it car specific? (re @dpriskorn: The electric car function is specific to Sweden because different countries have different climate mix in their grids. [17:16:13] E.g. a m...) [17:18:38] Aren't some of these dependent on the efficiency of the engine? I feel that should be an input parameter too. (re @dpriskorn: @Jan_ainali and others: I published 7 new functions related to climate cost of journeys. See [[Wikifunctions:Catalogue#Climate_r...) [18:20:30] Indeed you are correct. (re @Jan_ainali: Isn't this for any electric equipment? What makes it car specific?) [18:23:41] I studied energy engineering for a few years and you are right for a precise calculation you would need to know the precise efficiency of the engine, however this is laymans lever calculating level. [18:23:42] Most people have no idea what the efficiency of their car engine is and no good way of measuring it either. 🤷‍♂️ [18:23:43] During my studies we calculated the exact energy efficiency of a large diesel engine in a lab by measuring the input fuel and the output power of a start-run-stop cycle. That was fun 😀 (re @Jan_ainali: Aren't some of these dependent on the efficiency of the engine? I feel that should be an input parameter too.) [18:53:49] For trains there are interesting differences between countries according to this table.I suggest a function that takes a country QID as a parameter. : https://tools-static.wmflabs.org/bridgebot/f3135a10/file_63269.jpg [19:09:55] Won't this change over time and thus not be deterministic? It's a bit like the currency situation. (re @dpriskorn: For trains there are interesting differences between countries according to this table. pkm = person kilometer [19:09:55] I suggest a funct...) [19:11:23] Well we can give it a year parameter and make 2024 the only one returning results :) (re @Jan_ainali: Won't this change over time and thus not be deterministic? It's a bit like the currency situation.) [19:37:02] First draft Z18424 :) [19:42:48] On the same principle, for currency, couldn't one add the the date as a parameter and then look it up i a table, for example based on the ECB? (re @dpriskorn: Well we can give it a year parameter and make 2024 the only one returning results :)) [19:52:22] for energy, a year could work [19:52:23] for currency, it should probably be a month or a day given how quickly it changes (and in highend financial market, some algorithms, need currency at the microsecond level :/ ) (re @Jan_ainali: On the same principle, for currency, couldn't one add the the date as a parameter and then look it up i a table, for example bas...) [20:02:45] European Central Bank has historic tables with day resolution. (re @Nicolas: for energy, a year could work [20:02:46] for currency, it should probably be a month or a day given how quickly it changes (and in highend ...) [20:05:26] That could work, but where would the data be stored? Commons? (re @Jan_ainali: European Central Bank has historic tables with day resolution.) [20:06:40] I haven't checked the copyright status yet, but if it's okay, we do have a Data namespace on Commons [20:09:34] Added all data from the first source. 12 countries supported (re @dpriskorn: First draft Z18424 :)) [20:10:34] So then we need a way to look up data from a function. Do we have a type proposal for that? (re @Jan_ainali: I haven't checked the copyright status yet, but if it's okay, we do have a Data namespace on Commons) [20:24:33] Is there any good way to build Wikifunctions tests with multi-line input? I can't test my function any other way [21:11:59] @Jan_ainali have you read this report (https://railroads.dot.gov/elibrary/carbon-dioxide-emissions-four-real-world-inter-city-passenger-trips-comparison-rail-air) about US train emissions? One of the pairs have higher emission from rail compared to airplane. I'm really surprised.